-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
88 lines (64 loc) · 1.68 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
require_once ("include/initialize.php");
// if(isset($_SESSION['IDNO'])){
// redirect(web_root.'index.php');
// }
$content='home.php';
$view = (isset($_GET['q']) && $_GET['q'] != '') ? $_GET['q'] : '';
switch ($view) {
case 'product' :
$title="Products";
$content='menu.php';
break;
case 'cart' :
$title="Cart List";
$content='cart.php';
break;
case 'profile' :
$title="Profile";
$content='customer/profile.php';
break;
case 'trackorder' :
$title="Track Order";
$content='customer/trackorder.php';
break;
case 'orderdetails' :
If(!isset($_SESSION['orderdetails'])){
$_SESSION['orderdetails'] = "Order Details";
}
$content='customer/orderdetails.php';
if( isset($_SESSION['orderdetails'])){
if (@count($_SESSION['orderdetails'])>0){
$title = 'Cart List' . '| <a href="">Order Details</a>';
}
}
break;
case 'billing' :
If(!isset($_SESSION['billingdetails'])){
$_SESSION['billingdetails'] = "Order Details";
}
$content='customer/customerbilling.php';
if( isset($_SESSION['billingdetails'])){
if (@count($_SESSION['billingdetails'])>0){
$title = 'Cart List' . '| <a href="">Billing Details</a>';
}
}
break;
// case 'contact' :
// $title="Contact Us";
// $content='contact.php';
// break;
case 'single-item' :
$title="Product";
$content='single-item.php';
break;
case 'recoverpassword' :
$title="Recover Password";
$content='passwordrecover.php';
break;
default :
$title="Home";
$content ='home.php';
}
require_once("theme/templates.php");
?>