forked from ElzeroWebSchool/eCommerceCourse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
31 lines (19 loc) · 603 Bytes
/
init.php
File metadata and controls
31 lines (19 loc) · 603 Bytes
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
<?php
// Error Reporting
ini_set('display_errors', 'On');
error_reporting(E_ALL);
include 'admin/connect.php';
$sessionUser = '';
if (isset($_SESSION['user'])) {
$sessionUser = $_SESSION['user'];
}
// Routes
$tpl = 'includes/templates/'; // Template Directory
$lang = 'includes/languages/'; // Language Directory
$func = 'includes/functions/'; // Functions Directory
$css = 'layout/css/'; // Css Directory
$js = 'layout/js/'; // Js Directory
// Include The Important Files
include $func . 'functions.php';
include $lang . 'english.php';
include $tpl . 'header.php';