diff --git a/website/mysql_config.xml b/website/mysql_config.xml deleted file mode 100644 index de2d929..0000000 --- a/website/mysql_config.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - localhost - myhyvesbookplus - mhbp - qdtboXhCHJyL2szC - \ No newline at end of file diff --git a/website/public/.htaccess b/website/public/.htaccess new file mode 100644 index 0000000..f08898a --- /dev/null +++ b/website/public/.htaccess @@ -0,0 +1,12 @@ +Options +FollowSymLinks +RewriteEngine On + +ErrorDocument 404 /error404.jpg + +RewriteCond %{SCRIPT_FILENAME} !-d +RewriteCond %{SCRIPT_FILENAME} !-f + +# Resolve .php file for extensionless php urls +RewriteRule ^([^/.]+)$ $1.php [L] + +RewriteRule ^profile/([A-z0-9]+)$ profile.php?username=$1 [NC] \ No newline at end of file diff --git a/website/public/API/loadMessages.php b/website/public/API/loadMessages.php index fef9db7..e30acc8 100644 --- a/website/public/API/loadMessages.php +++ b/website/public/API/loadMessages.php @@ -1,13 +1,13 @@ \ +
Current page:
+ +
- -
Als vriend toevoegen
=$user["bio"]?>
fetch()) { - echo ""; + while($friend = $profile_friends->fetch()) { + echo ""; } - if($friends->rowCount() === 0) { + + if($profile_friends->rowCount() === 0) { echo "
Deze gebruiker heeft nog geen vrienden gemaakt.
fetch()) { - echo ""; + while($group = $profile_groups->fetch()) { + echo ""; } - if($groups->rowCount() === 0) { + if($profile_groups->rowCount() === 0) { echo "
Deze gebruiker is nog geen lid van een groep.