30 ) require DIR_PLUGINS.'plugins.php'; require_once DIR_CORE.'categories-'.$config['db_type'].'.php'; require_once DIR_CORE.'categories.php'; require_once DIR_CORE.'other.php'; $tpl = new TplParser; $oFoto = new FotoJobs; $oFF = new FlatFiles; $content = null; $tpl->setDir( TPL.TEMPLATE ); if( filesize( DIR_PLUGINS.'client.php' ) > 30 ) require DIR_PLUGINS.'client.php'; if( isset( $_GET['sWord'] ) && !empty( $_GET['sWord'] ) ) $_GET['sWord'] = htmlspecialchars( changeSpecialChars( $_GET['sWord'] ) ); if( isset( $_GET['sSort'] ) && !empty( $_GET['sSort'] ) ) $_GET['sSort'] = htmlspecialchars( changeSpecialChars( $_GET['sSort'] ) ); if( isset( $_GET['sPriceFrom'] ) && !empty( $_GET['sPriceFrom'] ) ) $_GET['sPriceFrom'] = htmlspecialchars( changeSpecialChars( $_GET['sPriceFrom'] ) ); if( isset( $_GET['sPriceTo'] ) && !empty( $_GET['sPriceTo'] ) ) $_GET['sPriceTo'] = htmlspecialchars( changeSpecialChars( $_GET['sPriceTo'] ) ); getAction( $p, 'client/' ); if( is_file( $sActionFile ) ) require_once $sActionFile; else{ require_once DIR_CORE.'files-'.$config['db_type'].'.php'; require_once DIR_CORE.'files.php'; if( !isset( $bDisplayedPage ) ){ if( strlen( $p ) > 2 ) $iCategory = substr( $p, 2 ); if( !is_numeric( $iCategory ) ) $iCategory = $config['contact_page']; $sContentLeft = throwCategoryContent( $iCategory ); if( !isset( $sContentLeft ) ){ $iCategory = $config['contact_page']; $sContentLeft = throwCategoryContent( $iCategory ); } $sSubcategories = listCategoriesChildren( $iCategory, 'content_list_sub.tpl', true ); if( $iCategory == $config['contact_page'] ){ if( isset( $send ) ) $sContentRight = sendEmail( $_POST, 'contact_send.tpl' ); else $sContentRight = $tpl->tHtml( 'contact_form.tpl' ); $content .= $tpl->tHtml( 'contact.tpl' ); } else{ $aFilesContent = listFiles( $iCategory, 'content_list.tpl', 2 ); $sContentRight = null; if( isset( $aFilesContent['default_photo'] ) ) $sContentRight = $aFilesContent['default_photo']; if( isset( $aFilesContent['photos'] ) ) $sContentRight .= $aFilesContent['photos']; if( isset( $sContentRight ) && !empty( $sContentRight ) ) $content .= $tpl->tHtml( 'columns_two.tpl' ); else $content .= $tpl->tHtml( 'columns_one.tpl' ); } } } if( ereg( 'Window', $p ) ){ echo $tpl->tHtml( 'head_print.tpl' ).$content.$tpl->tHtml('footer_print.tpl'); } else{ if( !isset( $sMenuCategories ) ) $sMenuCategories= listCategories( 'categories_menu.tpl', 1, true, $iCategory ); if( !isset( $sContentSites ) ) $sContentSites = listCategories( 'content_list.tpl', 2, true, $iCategory ); echo $tpl->tHtml( 'head.tpl' ).$content.$tpl->tHtml('footer.tpl'); } ?>