extract( $_GET ); define( 'CUSTOMER_PAGE', true ); require 'config/general.php'; require DB_CONFIG_LANG; if( HIDDEN_SHOWS === true ) session_start( ); if( !isset( $p ) || $p == '' ) $p = 'p_'.$config['start_page']; else $p = htmlspecialchars( $p ); if( ereg( 'Gallery', $p ) ){ $p = ereg_replace( 'Gallery', '', $p ); $sBlockPage = '_GALLERY'; } require_once DIR_LANG.LANGUAGE.'.php'; require_once DIR_LIBRARIES.'TplParser.php'; require_once DIR_LIBRARIES.'FileJobs.php'; require_once DIR_LIBRARIES.'FlatFiles.php'; require_once DIR_LIBRARIES.'Trash.php'; ob_start( 'changeCharset' ); /* * Add-ons functions */ if( filesize( DIR_PLUGINS.'plugins.php' ) > 30 ) require_once DIR_PLUGINS.'plugins.php'; require_once DIR_CORE.'other.php'; require_once DIR_CORE.'files.php'; require_once DIR_CORE.'files-ff.php'; require_once DIR_CORE.'pages.php'; require_once DIR_CORE.'pages-ff.php'; $tpl = new TplParser; $oFF = new FlatFiles; $tpl->setDir( TPL ); $content = null; if( !isset( $iContent ) || !is_numeric( $iContent ) ) $iContent = substr( $p, 2 ); if( !is_numeric( $iContent ) ) $iContent = $config['start_page']; /* * Add-ons actions */ if( filesize( DIR_PLUGINS.'actions_client.php' ) > 30 ) require_once DIR_PLUGINS.'actions_client.php'; getAction( $p, 'actions_client/' ); if( is_file( $sActionFile ) ) require $sActionFile; if( empty( $content ) ) $content .= $tpl->tbHtml( 'messages.tpl', 'NOT_EXISTS' ); if( !isset( $sBlockPage ) ){ $sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 0 ); $sMenu2 = throwMenu( 'menu_2.tpl', 2, $iContent, 0 ); $sMenu3 = throwMenu( 'menu_3.tpl', 3, $iContent, 0 ); $sBlockPage = null; } echo $tpl->tbHtml( 'page.tpl', 'HEAD' ).$tpl->tbHtml( 'page.tpl', 'BODY'.$sBlockPage ).$content.$tpl->tbHtml( 'page.tpl', 'FOOT'.$sBlockPage ); ob_end_flush( ); ?>