implemented spaces, fixed login and signup, thought creation and space creation.
This commit is contained in:
+4
-5
@@ -12,14 +12,13 @@ require_once 'functions/user.php';
|
||||
require_once 'functions/post.php';
|
||||
require_once 'functions/space.php';
|
||||
|
||||
/**/
|
||||
// Set SESSION variable.
|
||||
if (!isset($_SESSION['initialized'])) {
|
||||
$_SESSION['initialized'] = true;
|
||||
$_SESSION['theme'] = 'dark';
|
||||
$_SESSION['initialized'] = true;
|
||||
$_SESSION['theme'] = 'dark';
|
||||
} else if (isset($_POST['theme'])) {
|
||||
$_SESSION['theme'] = $_POST['theme'];
|
||||
unset($_POST['theme']);
|
||||
$_SESSION['theme'] = $_POST['theme'];
|
||||
unset($_POST['theme']);
|
||||
}
|
||||
|
||||
define('owner', 1);
|
||||
|
||||
Reference in New Issue
Block a user