/* * Quick.Cms by OpenSolution.org * www.OpenSolution.org */ extract( $_GET ); define( 'CUSTOMER_PAGE', true ); require 'config/general.php'; require DB_CONFIG_LANG; if( HIDDEN_SHOWS === true ) session_start( ); require_once DIR_LANG.LANGUAGE.'.php'; header( 'Content-Type: text/html; charset='.$config['charset'] ); require_once DIR_LIBRARIES.'TplParser.php'; require_once DIR_LIBRARIES.'FileJobs.php'; require_once DIR_LIBRARIES.'FlatFiles.php'; require_once DIR_LIBRARIES.'Trash.php'; require_once DIR_PLUGINS.'plugins.php'; require_once DIR_CORE.'pages.php'; require_once DIR_CORE.'files.php'; $aActions = isset( $p ) ? getAction( $p ) : getUrlFromGet( ); if( isset( $aActions['f'] ) && $aActions['f'] == 'p' ) $iContent = ( isset( $aActions['a'] ) && is_numeric( $aActions['a'] ) ) ? $aActions['a'] : $config['start_page']; else $iContent = null; $oFF =& FlatFiles::getInstance( ); $oTpl =& TplParser::getInstance( DIR_TEMPLATES, $config['embed_php'] ); $oFF->cacheFilesIndexes( $config_db ); $oFile =& Files::getInstance( ); $oPage =& Pages::getInstance( ); $content = null; $sTheme = null; $sBanner = null; $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'; 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( ); ?>