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

Documentation generated on Fri, 01 Apr 2011 09:31:37 +0200 by phpDocumentor 1.4.1