Setting loadin, settings update, db is now global

This commit is contained in:
Marijn Jansen
2017-01-17 16:47:49 +01:00
parent 1edf051dc2
commit 11f2297d5a
6 changed files with 99 additions and 31 deletions

View File

@@ -1,7 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<?php include("../views/head.php"); ?>
<?php
include("../views/head.php");
$_SESSION["userID"] = 2;
include_once("../queries/connect.php");
include_once("../queries/settings.php");
?>
<style>
@import url("styles/settings.css");
</style>
@@ -12,13 +17,20 @@
* This view adds the main layout over the screen.
* Header and menu.
*/
include("../views/main.php");
if ($_SERVER["REQUEST_METHOD"] == "POST") {
updateSettings();
}?>
<?php
/* Add your view files here. */
include("../views/settings-view.php");
/* This adds the footer. */
include("../views/footer.php");
?>
</body>
</html>