Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (74 sloc) 2.43 KB
<?php
/**
* Çàãðóç÷èê ÿäðà
* @author PHPShop Software
* @version PHPShop.CMS Free 5.3
* @copyright PHPShop LLC © 2004-2020
* @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.2) {
exit("PHP " . phpversion() . " is not supported");
}
// Çàïóñêàåì ñåññèþ
session_start();
// Âêëþ÷àåì òàéìåð
$start_time = microtime(true);
// Ïàðñèðóåì óñòàíîâî÷íûé ôàéë
include("./phpshop/class/base.class.php");
$PHPShopBase = new PHPShopBase("./phpshop/inc/config.ini", true, true);
// Ôàéëû ëîêàëèçàöèè
$GLOBALS['_localePath'] = 'phpshop/locale/';
// Ñæàòèå äàííûõ GZIP
if ($SysValue['my']['gzip'] == "true")
include($SysValue['file']['gzip']);
// Ïîäêëþ÷àåì áèáëèîòåêè
include($SysValue['class']['obj']);
include($SysValue['class']['array']);
include($SysValue['class']['category']);
include($SysValue['class']['system']);
include($SysValue['class']['nav']);
include($SysValue['class']['security']);
include($SysValue['class']['core']);
include($SysValue['class']['elements']);
include($SysValue['class']['lang']);
include($SysValue['class']['date']);
include($SysValue['class']['debug']);
include($SysValue['class']['analitica']);
// Ñèñòåìíûå íàñòðîéêè
$PHPShopSystem = new PHPShopSystem();
// Íàâèãàöèÿ
$PHPShopNav = new PHPShopNav();
// Îòëàäêà
$PHPShopDebug = new PHPShopDebug();
// Ïîäêëþ÷àåì ìîäóëè
include($SysValue['file']['elements']);
include($SysValue['file']['catalog']);
// Ïîäêëþ÷àåì ìîäóëè autoload
if(is_array($SysValue['autoload']))
foreach ($SysValue['autoload'] as $val)
if (is_file($val))
include_once($val);
// Çàãðóçêà îñíîâíîé ëîãèêè
include($SysValue['file']['autoload']);
// Ðàñõîä ïàìÿòè
$_MEM = null;
if (function_exists('memory_get_usage')) {
$_MEM = round(memory_get_usage() / 1024, 2) . " Kb";
}
// Ïàíåëü îòëàäêè
if ($SysValue['my']['debug'] == "true")
$PHPShopDebug->compile();
// Benchmark
if ($SysValue['my']['benchmark'] == "true")
echo "<!-- ÁÄ " . $SysValue['sql']['num'] . " çàïðîñà ~ " . substr(microtime(true) - $start_time, 0, 6) . " " . $_MEM . ", Ñáîðêà " . $SysValue['upload']['version'] . " -->";
// Âñòàâêà ðåéòèíãîâ è ñ÷åò÷èêîâ
include_once($SysValue['file']['footer']);
// Ñæàòèå äàííûõ GZIP
if ($SysValue['my']['gzip'] == "true")
GzDocOut($SysValue['my']['gzip_level'], $SysValue['my']['gzip_debug']);
?>
You can’t perform that action at this time.