-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
59 lines (49 loc) · 1.49 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
<?php
/**
* Çàãðóç÷èê ÿäðà
* @author PHPShop Software
* @version PHPShop.CMS Micro 5.0
* @copyright PHPShop © 2004-2021
* @license https://www.phpshopcms.ru/doc/license.html
*/
// UTF-8 Default Charset Fix
if (stristr(ini_get("default_charset"), "utf")) {
ini_set("default_charset", "cp1251");
}
// PHP Version Warning
if (floatval(phpversion()) < 5.3) {
exit("PHP " . phpversion() . " is not supported");
}
// Çàïóñêàåì ñåññèþ
session_start();
// Ïàðñèðóåì óñòàíîâî÷íûé ôàéë
include("./phpshop/class/base.class.php");
$PHPShopBase = new PHPShopBase("./phpshop/inc/config.ini");
// Ñæàòèå äàííûõ GZIP
if ($SysValue['my']['gzip'] == "true")
include($SysValue['file']['gzip']);
// Ïîäêëþ÷àåì áèáëèîòåêè
include($SysValue['class']['obj']);
include($SysValue['class']['system']);
include($SysValue['class']['nav']);
include($SysValue['class']['security']);
include($SysValue['class']['core']);
include($SysValue['class']['elements']);
include($SysValue['class']['date']);
// Ñèñòåìíûå íàñòðîéêè
$PHPShopSystem = new PHPShopSystem();
// Íàâèãàöèÿ
$PHPShopNav = new PHPShopNav();
// Ýëåìåíòû
include($SysValue['file']['elements']);
include($SysValue['file']['catalog']);
// Ïîäêëþ÷àåì ìîäóëè autoload
foreach ($SysValue['autoload'] as $val)
if (is_file($val))
include_once($val);
// Çàãðóçêà îñíîâíîé ëîãèêè
include($SysValue['file']['autoload']);
// Ñæàòèå äàííûõ GZIP
if ($SysValue['my']['gzip'] == "true")
GzDocOut($SysValue['my']['gzip_level'], $SysValue['my']['gzip_debug']);
?>