diff --git a/website/public/API/deletePost.php b/website/public/API/deletePost.php
index fffadf5..37f89a1 100644
--- a/website/public/API/deletePost.php
+++ b/website/public/API/deletePost.php
@@ -3,10 +3,10 @@ session_start();
require_once "../../queries/post.php";
require_once "../../queries/user.php";
-
-if (isset($_SESSION["userID"]) and
- getRoleByID($_SESSION["userID"]) != 'frozen' and
- getRoleByID($_SESSION["userID"]) != 'banned') {
+if (!isset($_SESSION["userID"])) {
+ echo "logged out";
+} else if (getRoleByID($_SESSION["userID"]) != 'frozen' and
+ getRoleByID($_SESSION["userID"]) != 'banned') {
if (empty($_POST["postID"]) or empty($_SESSION["userID"])) {
header('HTTP/1.1 500 Non enough arguments');
diff --git a/website/public/API/postComment.php b/website/public/API/postComment.php
index 3864cc8..c9f8a53 100644
--- a/website/public/API/postComment.php
+++ b/website/public/API/postComment.php
@@ -7,10 +7,10 @@ require_once("../../queries/connect.php");
require_once("../../queries/checkInput.php");
require_once("../../queries/user.php");
-
-if (isset($_SESSION["userID"]) &&
- getRoleByID($_SESSION["userID"]) != 'frozen' &&
- getRoleByID($_SESSION["userID"]) != 'banned') {
+if (!isset($_SESSION["userID"])) {
+ echo "logged out";
+} else if (getRoleByID($_SESSION["userID"]) != 'frozen' &&
+ getRoleByID($_SESSION["userID"]) != 'banned') {
if ($_POST['button'] == 'reaction') {
if (empty($_POST['newcomment-content'])) {
echo 0;
diff --git a/website/public/API/postPost.php b/website/public/API/postPost.php
index 241bda6..2d703d3 100644
--- a/website/public/API/postPost.php
+++ b/website/public/API/postPost.php
@@ -8,9 +8,10 @@ require_once("../../queries/connect.php");
require_once("../../queries/checkInput.php");
require_once("../../queries/user.php");
-if (isset($_SESSION["userID"]) &&
- getRoleByID($_SESSION["userID"]) != 'frozen' &&
- getRoleByID($_SESSION["userID"]) != 'banned') {
+if (!isset($_SESSION["userID"])) {
+ echo "logged out";
+} else if (getRoleByID($_SESSION["userID"]) != 'frozen' &&
+ getRoleByID($_SESSION["userID"]) != 'banned') {
if (empty($_SESSION["userID"])) {
header('HTTP/1.1 500 Non enough arguments');
diff --git a/website/public/API/sendMessage.php b/website/public/API/sendMessage.php
index c6e3231..a2d411b 100644
--- a/website/public/API/sendMessage.php
+++ b/website/public/API/sendMessage.php
@@ -7,9 +7,10 @@ require_once("../../queries/checkInput.php");
require_once("../../queries/user.php");
// Check if the user is allowed to send a message.
-if (isset($_SESSION["userID"]) &&
- getRoleByID($_SESSION["userID"]) != 'frozen' &&
- getRoleByID($_SESSION["userID"]) != 'banned') {
+if (!isset($_SESSION["userID"])) {
+ echo "logged out";
+} else if (getRoleByID($_SESSION["userID"]) != 'frozen' &&
+ getRoleByID($_SESSION["userID"]) != 'banned') {
if (!empty(test_input($_POST["destination"])) &&
!empty(test_input($_POST["content"]))
) {
diff --git a/website/public/apple-touch-icon-114x114-precomposed.png b/website/public/apple-touch-icon-114x114-precomposed.png
new file mode 100644
index 0000000..8ff3015
Binary files /dev/null and b/website/public/apple-touch-icon-114x114-precomposed.png differ
diff --git a/website/public/apple-touch-icon-120x120-precomposed.png b/website/public/apple-touch-icon-120x120-precomposed.png
new file mode 100644
index 0000000..ef42d75
Binary files /dev/null and b/website/public/apple-touch-icon-120x120-precomposed.png differ
diff --git a/website/public/apple-touch-icon-144x144-precomposed.png b/website/public/apple-touch-icon-144x144-precomposed.png
new file mode 100644
index 0000000..dd01202
Binary files /dev/null and b/website/public/apple-touch-icon-144x144-precomposed.png differ
diff --git a/website/public/apple-touch-icon-152x152-precomposed.png b/website/public/apple-touch-icon-152x152-precomposed.png
new file mode 100644
index 0000000..d4a1679
Binary files /dev/null and b/website/public/apple-touch-icon-152x152-precomposed.png differ
diff --git a/website/public/apple-touch-icon-180x180-precomposed.png b/website/public/apple-touch-icon-180x180-precomposed.png
new file mode 100644
index 0000000..d33355b
Binary files /dev/null and b/website/public/apple-touch-icon-180x180-precomposed.png differ
diff --git a/website/public/apple-touch-icon-57x57-precomposed.png b/website/public/apple-touch-icon-57x57-precomposed.png
new file mode 100644
index 0000000..6b35bb3
Binary files /dev/null and b/website/public/apple-touch-icon-57x57-precomposed.png differ
diff --git a/website/public/apple-touch-icon-60x60-precomposed.png b/website/public/apple-touch-icon-60x60-precomposed.png
new file mode 100644
index 0000000..ffa2250
Binary files /dev/null and b/website/public/apple-touch-icon-60x60-precomposed.png differ
diff --git a/website/public/apple-touch-icon-72x72-precomposed.png b/website/public/apple-touch-icon-72x72-precomposed.png
new file mode 100644
index 0000000..ab6b967
Binary files /dev/null and b/website/public/apple-touch-icon-72x72-precomposed.png differ
diff --git a/website/public/apple-touch-icon-76x76-precomposed.png b/website/public/apple-touch-icon-76x76-precomposed.png
new file mode 100644
index 0000000..691b53c
Binary files /dev/null and b/website/public/apple-touch-icon-76x76-precomposed.png differ
diff --git a/website/public/apple-touch-icon-precomposed.png b/website/public/apple-touch-icon-precomposed.png
new file mode 100644
index 0000000..c4d8103
Binary files /dev/null and b/website/public/apple-touch-icon-precomposed.png differ
diff --git a/website/public/browserconfig.xml b/website/public/browserconfig.xml
new file mode 100755
index 0000000..21d8570
--- /dev/null
+++ b/website/public/browserconfig.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+ #000000
+
+
+
\ No newline at end of file
diff --git a/website/public/createGroup.php b/website/public/createGroup.php
new file mode 100644
index 0000000..ffeb6e3
--- /dev/null
+++ b/website/public/createGroup.php
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website/public/favicon-1.png b/website/public/favicon-1.png
new file mode 100644
index 0000000..5595296
Binary files /dev/null and b/website/public/favicon-1.png differ
diff --git a/website/public/favicon-2.png b/website/public/favicon-2.png
new file mode 100644
index 0000000..59929a0
Binary files /dev/null and b/website/public/favicon-2.png differ
diff --git a/website/public/favicon-3.png b/website/public/favicon-3.png
new file mode 100644
index 0000000..833ff6f
Binary files /dev/null and b/website/public/favicon-3.png differ
diff --git a/website/public/favicon-4.png b/website/public/favicon-4.png
new file mode 100644
index 0000000..fac373a
Binary files /dev/null and b/website/public/favicon-4.png differ
diff --git a/website/public/favicon.ico b/website/public/favicon.ico
new file mode 100644
index 0000000..44ef012
Binary files /dev/null and b/website/public/favicon.ico differ
diff --git a/website/public/fb-callback.php b/website/public/fb-callback.php
deleted file mode 100644
index 0ed0369..0000000
--- a/website/public/fb-callback.php
+++ /dev/null
@@ -1,71 +0,0 @@
- $appID, // Replace {app-id} with your app id
- 'app_secret' => $appSecret,
- 'default_graph_version' => 'v2.2',
-]);
-
-$helper = $fb->getRedirectLoginHelper();
-
-try {
- $accessToken = $helper->getAccessToken();
-} catch(Facebook\Exceptions\FacebookResponseException $e) {
- // When Graph returns an error
- echo 'Graph returned an error: ' . $e->getMessage();
- exit;
-} catch(Facebook\Exceptions\FacebookSDKException $e) {
- // When validation fails or other local issues
- echo 'Facebook SDK returned an error: ' . $e->getMessage();
- exit;
-}
-
-if (! isset($accessToken)) {
- if ($helper->getError()) {
- header('HTTP/1.0 401 Unauthorized');
- echo "Error: " . $helper->getError() . "\n";
- echo "Error Code: " . $helper->getErrorCode() . "\n";
- echo "Error Reason: " . $helper->getErrorReason() . "\n";
- echo "Error Description: " . $helper->getErrorDescription() . "\n";
- } else {
- header('HTTP/1.0 400 Bad Request');
- echo 'Bad request';
- }
- exit;
-}
-
-// Logged in
-echo '
Access Token
';
-var_dump($accessToken->getValue());
-
-// The OAuth 2.0 client handler helps us manage access tokens
-$oAuth2Client = $fb->getOAuth2Client();
-
-// Get the access token metadata from /debug_token
-$tokenMetadata = $oAuth2Client->debugToken($accessToken);
-echo '
Metadata
';
-var_dump($tokenMetadata);
-
-// Validation (these will throw FacebookSDKException's when they fail)
-$tokenMetadata->validateAppId($appID); // Replace {app-id} with your app id
-// If you know the user ID this access token belongs to, you can validate it here
-//$tokenMetadata->validateUserId('123');
-$tokenMetadata->validateExpiration();
-
-if (! $accessToken->isLongLived()) {
- // Exchanges a short-lived access token for a long-lived one
- try {
- $accessToken = $oAuth2Client->getLongLivedAccessToken($accessToken);
- } catch (Facebook\Exceptions\FacebookSDKException $e) {
- echo "