Source for file autoload.inc.php
Documentation is available at autoload.inc.php
* @author PHPShop Software
$_classPath= '../phpshop/';
$SysValue['other']['telNum']= $PHPShopSystem->getValue('tel');
$SysValue['other']['name']= $PHPShopSystem->getValue('name');
$SysValue['other']['company']= $PHPShopSystem->getValue('company');
$SysValue['other']['mail'] = $PHPShopSystem->getValue('mail');
$SysValue['other']['pageCss']= $SysValue['dir']['templates']. chr(47). $_SESSION['skin']. chr(47). $SysValue['css']['default'];
$SysValue['other']['serverName']= $_SERVER['SERVER_NAME'];
$SysValue['other']['path']= $PHPShopSystem->getValue('path');
include($SysValue['class']['modules']);
$PHPShopModules->doLoad();
$PHPShopTextElement->init('topMenu');
$PHPShopSkinElement->init('skinSelect');
$PHPShopCatalogElement->init('mainMenuPage');
if(!empty($SysValue['nav']['path'])) {
$core_file= "./phpshop/core/". $PHPShopNav->getPath(). ".core.php";
if(!$PHPShopModules->doLoadPath($SysValue['nav']['path']))
include_once($core_file);
$classname = 'PHPShop'. ucfirst($SysValue['nav']['path']);
$PHPShopCore = new $classname ();
$PHPShopCore->loadActions();
}else echo PHPShopCore::setError($classname,"не определен класс phpshop/core/$classname.core.php");
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
$SysValue['other']['DispShop']= ParseTemplateReturn($SysValue['templates']['error_page_forma']);
ParseTemplate($SysValue['templates']['shop']);
|