* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ function optimize($buffer) { $title = implode(' - ', $GLOBALS['current_title']); $buffer=trim(str_replace('##TITLE##', $title, $buffer)); return trim(str_replace('##BREADCRUMB##', getBreadcrumb(), $buffer)); } session_start(); // necessary for adding a new entry in yellowpages ob_start('optimize'); include_once('../config/define.php'); distInclude(THEME_PUBLIC_PATH.SQL.'.inc.php', THEME_PUBLIC_DIST); include_once('../admin/'.SQL.'.inc.php'); distInclude(THEME_PUBLIC_PATH.'filters.php', THEME_PUBLIC_DIST); distInclude(THEME_PUBLIC_PATH.'layout.php', THEME_PUBLIC_DIST); include_once('../lib/functions_auth.php'); distInclude(THEME_PUBLIC_PATH.'display.php', THEME_PUBLIC_DIST); ActiveItem(); securityCheck(); IncludeLang(); //////////////////////////////////////// /// Connexion SQL /////////////////// include_once('../class/system/class.'.SQL.'.php'); $sql_entity=SQL; $GLOBALS['sql_object'] = new $sql_entity; $GLOBALS['sql_object'] -> DBInitialise(); $GLOBALS['sql_object'] -> DBConnexion(); /////////////////// if(isset($Dbg)) { $debug_line->setEndTime(); $debug_line = $Dbg->add('... loading Main templates from '.THEME_PUBLIC_PATH.''); $debug_line->setStartTime(); } // update workgroups ID if needed - only if workgroup section and user logged-in if(isset($_REQUEST['rub']) && isset($_COOKIE['linea21']['id']) && $_REQUEST['rub'] == $GLOBALS['links'][U_L]['workgroup']['linkvalue']) updateCookieWorkshop(); include_once(THEME_PUBLIC_PATH."index.php"); if(isset($Dbg)) { $debug_line->setEndTime(); } $GLOBALS['sql_object'] -> DBClose(); ob_end_flush(); ?>