Go to the documentation of this file.00001 <?php
00002
00003
00004 error_reporting( E_ALL ^ E_NOTICE );
00005
00006
00007
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
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
00047 require getShopBasePath() . 'modules/functions.php';
00048
00049
00050 require_once getShopBasePath() . 'core/oxfunctions.php';
00051
00052
00053
00054
00055
00056 $myConfig = oxConfig::getInstance();
00057
00058
00059 oxUtils::getInstance()->stripGpcMagicQuotes();
00060
00061
00062 $iDebug = $myConfig->getConfigParam('iDebug');
00063 set_exception_handler(array(oxNew('oxexceptionhandler', $iDebug), 'handleUncaughtException'));
00064
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
00075 if (isSearchEngineUrl()) {
00076 oxNew('oxSeoDecoder')->processSeoCall();
00077 }
00078
00079
00080 $oShopControl = oxNew('oxShopControl');
00081 $oShopControl->start();