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 admin
  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. include_once("../lib/functions_auth.php");
  11. include_once("../lib/no_cache.php");
  12. if(!isset($_SESSION['authenticated'])) {
  13.   if(!empty($_SERVER["QUERY_STRING"])) $page "login.php?page="rawurlencode("index.php?"$_SERVER["QUERY_STRING"]);
  14.   else $page "login.php";
  15.   header("Location: "$page);
  16.   exit();
  17. }
  18.  
  19. if(isset($_REQUEST['rub']))    $rub=$_REQUEST['rub'];
  20. if(!isset($_REQUEST['todo'])) {
  21.   $todo="list";
  22. else {
  23.   $todo=$_REQUEST['todo'];
  24. }
  25.  
  26. include_once("../config/define.php");
  27.  
  28.  
  29. /**
  30.  * Section include if dir exists
  31.  **/
  32.  
  33. if(isset($rub)) {
  34.   if(is_dir('../'.$rub)) $dir='../'.$rub;
  35.   else ReloadIndex('admin');
  36. else {
  37.   $dir='../home';
  38.   $rub='home';
  39. }
  40.  
  41. /**
  42.  * language include
  43.  **/
  44.  
  45.  
  46. include_once("../class/system/class.".SQL.".php");
  47.  
  48. if(isset($Dbg)) {
  49.   $debug_line->setEndTime();
  50.   $debug_line $Dbg->add('... loading SQL files');
  51.   $debug_line->setStartTime();
  52. }
  53.  
  54. $sql_entity=SQL;
  55. $sql_object new $sql_entity;
  56. $sql_object -> DBInitialise();
  57. $sql_object -> DBConnexion();
  58. $rub_link="index.php?rub=".$rub;
  59.  
  60. include_once(SQL.'.inc.php');
  61. $sql_inc_file=$dir."/".SQL.".inc.php";
  62. if(file_exists($sql_inc_file)) include_once($sql_inc_file);
  63.  
  64. if(isset($Dbg)) {
  65.   $debug_line->setEndTime();
  66. }
  67.  
  68. include_once(THEME_ADMIN_PATH."index.php");
  69.  
  70. $sql_object -> DBClose();
  71. if(isset($Dbg)) $Dbg->display();
  72. ?>

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