1 Commits

Author SHA1 Message Date
Marijn Jansen
a6690a8930 Readme.md 2017-02-03 19:05:45 +01:00
7 changed files with 27 additions and 16 deletions

20
readme.md Normal file
View File

@@ -0,0 +1,20 @@
#MyHyvesbook+
## Samenstelling van Groep
- Lars van Hijfte (11291680)
- Hendrik Huang (11342374)
- Marijn Jansen (11166932)
- Kevin Nobel (11319801)
- Joey Lai (11057122)
## URL naar website
[MyHyvesbook+](https://myhyvesbookplus.nl/)
## Inloggegevens
Username `NakijkAdmin`
Password `HgzCVGHh7fdR`
## Site draaiend krijgen op een server
De map `public` moet de `root`-folder zijn van de website.
Een map daarboven moeten de `queries` en `views` geplaatst worden.
De gegevens om met de database te verbinden staan in `/var/mysql_config.xml`.
De map `uploads` (en alles daarin) in de `public`-folder is eigendom van `www-data` zodat de server hier naar kan schrijven.

View File

@@ -120,7 +120,7 @@ function masonry(mode) {
$form.append($("<input class=\"newpost\" name=\"title\" placeholder=\"Titel\" type=\"text\">"));
$form.append($("<textarea class=\"newpost\" name=\"content\" placeholder=\"Schrijf een berichtje...\" maxlength='1000'></textarea><span></span>"));
$form.append($("<button type=\"submit\"><i class='fa fa-sticky-note-o'></i> Plaats!</button>"));
$form.append($("<input value=\"Plaats!\" type=\"submit\">"));
columns[0][1].append($postInput);
columns[0][0] = $postInput.height() + margin;

View File

@@ -34,4 +34,6 @@ function deletePost(postID) {
});
closeModal();
masonry(masonryMode);
}

View File

@@ -108,7 +108,7 @@ div.posts .post form input, div.posts .post form textarea {
width: calc(100% - 15px);
}
div.posts .post form input[type="submit"], .post button{
div.posts .post form input[type="submit"] {
width: 100%;
}

View File

@@ -18,8 +18,7 @@ function getSettings() {
`bio`,
`profilepicture`,
`showBday`,
`showEmail`,
`showProfile`
`showEmail`
FROM
`user`
WHERE
@@ -65,8 +64,7 @@ function updateSettings() {
`birthdate` = :bday,
`bio` = :bio,
`showEmail` = :showEmail,
`showBday` = :showBday,
`showProfile` = :showProfile
`showBday` = :showBday
WHERE
`userID` = :userID
");
@@ -81,7 +79,6 @@ function updateSettings() {
$stmt->bindValue(":bio", test_input($_POST["bio"]));
$stmt->bindValue(":showEmail", (array_key_exists("showEmail", $_POST) ? "1" : "0"));
$stmt->bindValue(":showBday", (array_key_exists("showBday", $_POST) ? "1" : "0"));
$stmt->bindValue(":showProfile", (array_key_exists("showProfile", $_POST) ? "1" : "0"));
$stmt->bindValue(":userID", $_SESSION["userID"]);
$stmt->execute();

View File

@@ -30,7 +30,7 @@ $fullname = $post['fname'] . " " . $post['lname'] . " (" . $post['username'] . "
<form id="newcommentform" onsubmit="return false;">
<input type="hidden" id="newcomment-textarea" name="postID" value="<?= $postID ?>">
<textarea id="newcomment" name="newcomment-content" placeholder="Laat een reactie achter..." maxlength="1000"></textarea><span></span> <br>
<button onclick="postComment('reaction')" name="button" value="reaction" class="green"><i class="fa fa-comment"></i> Reageer!</button>
<button onclick="postComment('reaction')" name="button" value="reaction">Reageer!</button>
<button onclick="postComment('nietslecht')" name="button" value="nietslecht" class="nietslecht">
<?php
if (checkNietSlecht($postID, $_SESSION["userID"])) {

View File

@@ -96,14 +96,6 @@ $settings = getSettings();
<?=($settings["showEmail"] ? "checked" : "")?>
>
</li>
<li>
<label for="showProfile">Publiek profiel</label>
<input type="checkbox"
name="showProfile"
id="showProfile"
<?=($settings["showProfile"] ? "checked" : "")?>
>
</li>
<li>
<label for="bio">Bio</label>
<textarea name="bio"