Source for file index.php
Documentation is available at index.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
$title = implode(' - ', $GLOBALS['current_title']);
session_start(); // necessary for adding a new entry in yellowpages
include_once('../config/define.php');
include_once('../admin/'. SQL. '.inc.php');
include_once('../lib/functions_auth.php');
////////////////////////////////////////
include_once('../class/system/class.'. SQL. '.php');
$GLOBALS['sql_object'] = new $sql_entity;
$GLOBALS['sql_object'] -> DBInitialise();
$GLOBALS['sql_object'] -> DBConnexion();
$debug_line->setEndTime();
$debug_line = $Dbg->add('... loading Main templates from <b>'. THEME_PUBLIC_PATH. '</b>');
$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();
// we include comment functions
include_once(themePath('../comment/display.php'));
include_once(THEME_PUBLIC_PATH. "index.php");
$debug_line->setEndTime();
$GLOBALS['sql_object'] -> DBClose();
|