-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorders.php
More file actions
28 lines (26 loc) · 778 Bytes
/
orders.php
File metadata and controls
28 lines (26 loc) · 778 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
<?php
require_once "bootstrap.php";
//require_once 'model/Signup.php';
include_once("config.php");
require_once 'classes/Session.class.php';
$session = new Session();
if (isset($_GET['filter'])) {
if ($_GET['filter'] == 'lib') {
$session->setSession('filter_orders','lib' );
}
if ($_GET['filter'] == 'ent') {
$session->setSession('filter_orders','ent' );
}
}else{
$session->setSession('filter_orders','' );
}
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);
if ($session->getSession("user") != "" || $session->getSession("user") != null) {
include 'html/orders.php';
} else {
header("Location:index.php");
}
?>