Setting loadin, settings update, db is now global
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user