cacheFilesIndexes( $config_db ); $oFile =& Files::getInstance( ); $oPage = new Pages( ); $oProduct = new Products( ); $oOrder = new Orders( ); $content = null; $sTheme = null; $sBanner = null; $sRssMeta = null; if( !isset( $_SESSION['iCustomer'.LANGUAGE] ) ){ if( isset( $_COOKIE['sCustomer'.LANGUAGE] ) && !empty( $_COOKIE['sCustomer'.LANGUAGE] ) ){ $iOrder = $oOrder->throwSavedOrderId( $_COOKIE['sCustomer'.LANGUAGE] ); if( isset( $iOrder ) && is_numeric( $iOrder ) ){ $_SESSION['iCustomer'.LANGUAGE] = $iOrder; $oOrder->generateBasket( ); } } if( !isset( $_SESSION['iCustomer'.LANGUAGE] ) ) $_SESSION['iCustomer'.LANGUAGE] = time( ).rand( 100, 999 ); } $sKeywords = $config['keywords']; $sDescription = $config['description']; ob_start( 'changeCharset' ); if( isset( $aActions ) && is_file( 'actions_client/'.$aActions['f'].'.php' ) ) require 'actions_client/'.$aActions['f'].'.php'; $iOrderProducts = isset( $_SESSION['iOrderQuantity'.LANGUAGE] ) ? $_SESSION['iOrderQuantity'.LANGUAGE] : 0; $fOrderSummary = isset( $_SESSION['fOrderSummary'.LANGUAGE] ) ? displayPrice( $_SESSION['fOrderSummary'.LANGUAGE] ) : displayPrice( 0 ); if( $aActions['f'] == 'banners' && isset( $a ) && is_numeric( $a ) ){ goToBannerLink( $a ); } if( isset( $sTheme ) && !empty( $sTheme ) && is_file( DIR_THEMES.$sTheme ) ){ require DIR_THEMES.$sTheme; } else{ if( is_file( DIR_THEMES.$aActions['f'].'-'.$aActions['a'].'.php' ) ){ require DIR_THEMES.$aActions['f'].'-'.$aActions['a'].'.php'; } else{ require DIR_THEMES.$config['default_theme']; } } ob_end_flush( ); ?>