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. distInclude(THEME_PUBLIC_PATH.SQL.'.inc.php'THEME_PUBLIC_DIST);
  20. include_once('../admin/'.SQL.'.inc.php');
  21. distInclude(THEME_PUBLIC_PATH.'filters.php'THEME_PUBLIC_DIST);
  22. include_once('../lib/functions_auth.php');
  23. distInclude(THEME_PUBLIC_PATH.'display.php'THEME_PUBLIC_DIST);
  24.  
  25. ////////////////////////////////////////
  26. /// Connexion SQL
  27. ///////////////////
  28. include_once('../class/system/class.'.SQL.'.php');
  29. $sql_entity=SQL;
  30. $GLOBALS['sql_object'new $sql_entity;
  31. $GLOBALS['sql_object'-> DBInitialise();
  32. $GLOBALS['sql_object'-> DBConnexion();
  33. ///////////////////
  34.  
  35. if(isset($Dbg)) {
  36.   $debug_line->setEndTime();
  37.   $debug_line $Dbg->add('... loading Main templates from <b>'.THEME_PUBLIC_PATH.'</b>');
  38.   $debug_line->setStartTime();
  39. }
  40.  
  41. // update workgroups ID if needed - only if workgroup section and user logged-in
  42. if(isset($_REQUEST['rub']&& isset($_COOKIE['linea21']['id']&& $_REQUEST['rub'== $GLOBALS['links'][U_L]['workgroup']['linkvalue']updateCookieWorkshop();
  43.  
  44. // we include comment functions
  45. include_once(themePath('../comment/display.php'));
  46. include_once(THEME_PUBLIC_PATH."index.php");
  47.  
  48. if(isset($Dbg)) {
  49.   $debug_line->setEndTime();
  50. }
  51.  
  52. $GLOBALS['sql_object'-> DBClose();
  53. ?>

Documentation generated on Thu, 03 May 2012 15:05:09 +0200 by phpDocumentor 1.4.1