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. ob_start('optimize');
  17. include_once('../config/define.php');
  18.  
  19. // check if session is not expired
  20. $l21auth->isActive();
  21.  
  22. distInclude(THEME_PUBLIC_PATH.SQL.'.inc.php'THEME_PUBLIC_DIST);
  23. include_once('../admin/'.SQL.'.inc.php');
  24. distInclude(THEME_PUBLIC_PATH.'filters.php'THEME_PUBLIC_DIST);
  25. distInclude(THEME_PUBLIC_PATH.'display.php'THEME_PUBLIC_DIST);
  26.  
  27.  
  28. if(isset($Dbg)) {
  29.   $debug_line->setEndTime();
  30.   $debug_line $Dbg->add('... loading Main templates from <b>'.THEME_PUBLIC_PATH.'</b>');
  31.   $debug_line->setStartTime();
  32. }
  33.  
  34. // update workgroups ID if needed - only if workgroup section and user logged-in
  35. if(isset($_REQUEST['rub']&& isset($_SESSION['authenticated']&& $_REQUEST['rub'== $GLOBALS['links'][U_L]['workgroup']['linkvalue']$GLOBALS['l21auth']->updateCookieWorkshop();
  36.  
  37. // we include comment functions
  38. include_once(override('../comment/display.php'));
  39. include_once(THEME_PUBLIC_PATH."index.php");
  40.  
  41. if(isset($Dbg)) {
  42.   $debug_line->setEndTime();
  43. }
  44.  
  45. $GLOBALS['sql_object'-> DBClose();
  46. ?>

Documentation generated on Thu, 20 Mar 2014 16:48:05 +0100 by phpDocumentor 1.4.1