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. distInclude(THEME_PUBLIC_PATH.'layout.php'THEME_PUBLIC_DIST);
  23. include_once('../lib/functions_auth.php');
  24. distInclude(THEME_PUBLIC_PATH.'display.php'THEME_PUBLIC_DIST);
  25.  
  26. ////////////////////////////////////////
  27. /// Connexion SQL
  28. ///////////////////
  29. include_once('../class/system/class.'.SQL.'.php');
  30. $sql_entity=SQL;
  31. $GLOBALS['sql_object'new $sql_entity;
  32. $GLOBALS['sql_object'-> DBInitialise();
  33. $GLOBALS['sql_object'-> DBConnexion();
  34. ///////////////////
  35.  
  36. if(isset($Dbg)) {
  37.   $debug_line->setEndTime();
  38.   $debug_line $Dbg->add('... loading Main templates from <b>'.THEME_PUBLIC_PATH.'</b>');
  39.   $debug_line->setStartTime();
  40. }
  41.  
  42. // update workgroups ID if needed - only if workgroup section and user logged-in
  43. if(isset($_REQUEST['rub']&& isset($_COOKIE['linea21']['id']&& $_REQUEST['rub'== $GLOBALS['links'][U_L]['workgroup']['linkvalue']updateCookieWorkshop();
  44.  
  45.  
  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 Fri, 01 Apr 2011 09:31:36 +0200 by phpDocumentor 1.4.1