• Main Page
  • Related Pages
  • Classes
  • Files
  • Directories
  • File List
  • File Members

index.php

Go to the documentation of this file.
00001 <?php
00002 
00003 // Setting error reporting mode
00004     error_reporting( E_ALL ^ E_NOTICE );
00005 
00006 //Know exactly where in the code the event occurred.
00007 //Zend platform only.
00008 if (function_exists('monitor_set_aggregation_hint') && isset($_REQUEST['cl'])) {
00009     $sAgregationHint = htmlentities($_REQUEST['cl'], ENT_QUOTES, 'UTF-8') . '/';
00010     if (isset($_REQUEST['fnc']))
00011         $sAgregationHint .= htmlentities($_REQUEST['fnc'], ENT_QUOTES, 'UTF-8');
00012     monitor_set_aggregation_hint($sAgregationHint);
00013 }
00014 
00015 
00016 //setting basic configuration parameters
00017 ini_set('session.name', 'sid' );
00018 ini_set('session.use_cookies', 0 );
00019 ini_set('session.use_trans_sid', 0);
00020 ini_set('url_rewriter.tags', '');
00021 ini_set('magic_quotes_runtime', 0);
00022 
00028 function getShopBasePath()
00029 {
00030     return dirname(__FILE__).'/';
00031 }
00032 
00033 
00034 if ( !function_exists( 'isAdmin' )) {
00040     function isAdmin()
00041     {
00042         return false;
00043     }
00044 }
00045 
00046 // custom functions file
00047 require getShopBasePath() . 'modules/functions.php';
00048 
00049 // Generic utility method file
00050 require_once getShopBasePath() . 'core/oxfunctions.php';
00051 
00052 
00053 // set the exception handler already here to catch everything, also uncaught exceptions from the config or utils
00054 
00055 // initializes singleton config class
00056 $myConfig = oxConfig::getInstance();
00057 
00058 //strips magics quote if any
00059 oxUtils::getInstance()->stripGpcMagicQuotes();
00060 
00061 // reset it so it is done with oxnew
00062 $iDebug = $myConfig->getConfigParam('iDebug');
00063 set_exception_handler(array(oxNew('oxexceptionhandler', $iDebug), 'handleUncaughtException'));
00064 // Admin handling
00065 if ( isAdmin() ) {
00066     $myConfig->setConfigParam( 'blAdmin', true );
00067     $myConfig->setConfigParam( 'blTemplateCaching', false );
00068     if ($sAdminDir)
00069         $myConfig->setConfigParam( 'sAdminDir', $sAdminDir );
00070     else
00071         $myConfig->setConfigParam( 'sAdminDir', "admin" );
00072 }
00073 
00074 //Invoked over search engine URLs
00075 if (isSearchEngineUrl()) {
00076     oxNew('oxSeoDecoder')->processSeoCall();
00077 }
00078 
00079 //Starting the shop
00080 $oShopControl = oxNew('oxShopControl');
00081 $oShopControl->start();

Generated by  doxygen 1.7.1