-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
36 lines (26 loc) · 1.02 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
$stmt = $conn->prepare("SELECT * FROM config LIMIT 1");
$stmt->execute();
$stmt->bind_result($GLOBALS["SITE_NAME"], $GLOBALS['SITE_DESC'], $GLOBALS["SITE_TAGS"], $GLOBALS["SITE_AUTH"], $GLOBALS["FEATURED"], $GLOBALS["registration_enabled"],$GLOBALS['SOCIAL_FACEBOOK'],$GLOBALS['SOCIAL_TWITTER'],$GLOBALS['SOCIAL_INSTAGRAM'],$GLOBALS['SOCIAL_PINTEREST']);
$stmt->fetch();
$stmt->close();
//SITE DIRS CONFIG
$GLOBALS['CSS_DIR'] = "/css/";
$GLOBALS['JS_DIR'] = "/js/";
//SITE STYLES
$styles[] = $GLOBALS["CSS_DIR"] . "base.css";
$styles[] = $GLOBALS["CSS_DIR"] . "vendor.css";
$styles[] = $GLOBALS["CSS_DIR"] . "main.css";
//SITE SCRIPTS
$scripts[] = $GLOBALS["JS_DIR"] . "modernizr.js";
$scripts[] = $GLOBALS["JS_DIR"] . "pace.js";
//OTHER STUFF
$menus[] = "Home";
//$menus[] = "Users";
$menu_link[] = "/";
//$menu_link[] = "#0";
$menu_child[] = ""; //Home child
//$menu_child[] = ["Login", "Register"];
$menu_childl[] = ""; //Home child links
//$menu_childl[] = ["/login", "/register"]; //Home child links
?>