-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
executable file
·62 lines (60 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
<?php
require_once(dirname(__FILE__).'/model/settings/include.php');CheckUrl::url();
print_r(Cart::getRow('saleCart'));
if(isset($_SESSION["mutasyon_login"])){
switch (Get::getValue("u")) {
case "products" :
Products::build();
break;
case "products/detail" :
Products::build("detail");
break;
case "cart" :
Cart::build();
break;
case "buyCart" :
Cart::build("buyCart");
break;
case "customers" :
Customers::build();
break;
case "customers/detail" :
Customers::build("detail");
break;
case "providers" :
Providers::build();
break;
case "providers/detail" :
Providers::build('detail');
break;
case "sellers" :
Seller::build();
break;
case "seller/detail" :
Seller::build('detail');
break;
case "invoices" :
Invoice::build('list');
break;
case "invoices/detail" :
Invoice::build('detail');
break;
case "addServiceInvoice" :
Services::build('addServiceInvoice');
break;
case "service/detail" :
Services::build('service/detail');
break;
case "settings" :
Settings::build();
break;
default:
Mainpage::build();
}
}
else{
if(@$_SESSION["loginKey"]){$key = @$_SESSION["loginKey"];}else{$key = Key::loginKey();}
$smarty->assign(array('loginKey' => $key));
$smarty->display ( 'view/login/login.html' );
}
?>