linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage public
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10. function optimize($buffer) {
  11.   $title = implode(' - ', $GLOBALS['current_title']);
  12.  
  13.   $buffer=trim(str_replace('##TITLE##', $title, $buffer));
  14.   return trim(str_replace('##BREADCRUMB##', getBreadcrumb(), $buffer));
  15. }
  16. session_start(); // necessary for adding a new entry in yellowpages
  17. ob_start('optimize');
  18. include_once('../config/define.php');
  19.  
  20. // check if session is not expired
  21. $l21auth->isActive();
  22.  
  23. distInclude(THEME_PUBLIC_PATH.SQL.'.inc.php', THEME_PUBLIC_DIST);
  24. include_once('../admin/'.SQL.'.inc.php');
  25. distInclude(THEME_PUBLIC_PATH.'filters.php', THEME_PUBLIC_DIST);
  26. distInclude(THEME_PUBLIC_PATH.'display.php', THEME_PUBLIC_DIST);
  27.  
  28.  
  29. if(isset($Dbg)) {
  30.   $debug_line->setEndTime();
  31.   $debug_line = $Dbg->add('... loading Main templates from <b>'.THEME_PUBLIC_PATH.'</b>');
  32.   $debug_line->setStartTime();
  33. }
  34.  
  35. // update workgroups ID if needed - only if workgroup section and user logged-in
  36. if(isset($_REQUEST['rub']) && isset($_SESSION['authenticated']) && $_REQUEST['rub'] == $GLOBALS['links'][U_L]['workgroup']['linkvalue']) $GLOBALS['l21auth']->updateCookieWorkshop();
  37.  
  38. // we include comment functions
  39. include_once(override('../comment/display.php'));
  40. include_once(THEME_PUBLIC_PATH."index.php");
  41.  
  42. if(isset($Dbg)) {
  43.   $debug_line->setEndTime();
  44. }
  45.  
  46. $GLOBALS['sql_object'] -> DBClose();
  47. ?>

Documentation generated on Mon, 08 Apr 2013 18:14:41 +0200 by phpDocumentor 1.4.1