phpDocumentor PHPShopInc
[ class tree: PHPShopInc ] [ all elements ]

Source for file autoload.inc.php

Documentation is available at autoload.inc.php

  1. <?php
  2. /**
  3.  * Загрузчик
  4.  * @author PHPShop Software
  5.  * @version 1.0
  6.  * @package PHPShopInc
  7.  */
  8.  
  9.  
  10. // Библиотека
  11. $_classPath='../phpshop/';
  12.  
  13. // Определяем переменные
  14. $SysValue['other']['telNum']=$PHPShopSystem->getValue('tel');
  15. $SysValue['other']['name']=$PHPShopSystem->getValue('name');
  16. $SysValue['other']['company']=$PHPShopSystem->getValue('company');
  17. $SysValue['other']['mail'=$PHPShopSystem->getValue('mail');
  18. $SysValue['other']['pageCss']=$SysValue['dir']['templates'].chr(47).$_SESSION['skin'].chr(47).$SysValue['css']['default'];
  19. $SysValue['other']['serverName']=$_SERVER['SERVER_NAME'];
  20. $SysValue['other']['path']=$PHPShopSystem->getValue('path');
  21.  
  22. // Загрузка модулей
  23. include($SysValue['class']['modules']);
  24. $PHPShopModules new PHPShopModules();
  25. $PHPShopModules->doLoad();
  26.  
  27. // Горизонтальное меню
  28. $PHPShopTextElement &new PHPShopTextElement();
  29. $PHPShopTextElement->init('topMenu');
  30.  
  31. // Выбор шаблона
  32. $PHPShopSkinElement &new PHPShopSkinElement();
  33. $PHPShopSkinElement->init('skinSelect');
  34.  
  35. // Каталог
  36. $PHPShopCatalogElement &new PHPShopCatalogElement();
  37. $PHPShopCatalogElement->init('mainMenuPage');
  38.  
  39. // Подключение ядра
  40. if(!empty($SysValue['nav']['path'])) {
  41.     $core_file="./phpshop/core/".$PHPShopNav->getPath().".core.php";
  42.     if(!$PHPShopModules->doLoadPath($SysValue['nav']['path']))
  43.     if(is_file($core_file)) {
  44.         include_once($core_file);
  45.         $classname 'PHPShop'.ucfirst($SysValue['nav']['path']);
  46.         if(class_exists($classname)) {
  47.             $PHPShopCore new $classname ();
  48.             $PHPShopCore->loadActions();
  49.         }else echo PHPShopCore::setError($classname,"не определен класс phpshop/core/$classname.core.php");
  50.     }else {
  51.         header("HTTP/1.0 404 Not Found");
  52.         header("Status: 404 Not Found");
  53.         $SysValue['other']['DispShop']=ParseTemplateReturn($SysValue['templates']['error_page_forma']);
  54.         ParseTemplate($SysValue['templates']['shop']);
  55.     }
  56.  
  57. }
  58.  
  59. ?>

Documentation generated on Mon, 25 Jun 2012 15:09:38 +0400 by phpDocumentor 1.4.3