[ PHPXref.com ] [ Generated: Sun Jul 20 16:58:20 2008 ] [ Claroline 1.7.5 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> index.php (source)

   1  <?php // $Id: index.php,v 1.29 2005/09/30 07:42:15 seb Exp $
   2  /**
   3   * CLAROLINE
   4   *
   5   * This is  the  home page of a campus
   6   *
   7   * @version 1.7 $Revision: 1.29 $
   8   *
   9   * @copyright (c) 2001-2005 Universite catholique de Louvain (UCL)
  10   *
  11   * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
  12   *
  13   * @author claroline Team <cvs@claroline.net>
  14   *
  15   * @package CLINDEX
  16   *
  17   */
  18  
  19  unset($includePath);
  20  
  21  /* 
  22   * Flag forcing the 'current course' reset,
  23   * as we're not anymore inside a course 
  24   */
  25  
  26  $cidReset = TRUE;
  27  $tidReset = TRUE;
  28  
  29  /*
  30   * Include Library and configuration file
  31   */
  32  
  33  require  './claroline/inc/claro_init_global.inc.php'; // main init
  34  if (file_exists($includePath . '/conf/CLHOME.conf.php'))
  35  {
  36      require $includePath . '/conf/CLHOME.conf.php'; // conf file
  37  }
  38  else 
  39  {
  40      // Perhapas  it's better to add here a die("Upgrade your campus");
  41  }
  42  
  43  // logout request : delete session data
  44  
  45  if (isset($_REQUEST['logout'])) session_destroy();
  46  
  47  /*
  48   * DB tables definition
  49   */
  50  
  51  $tbl_mdb_names = claro_sql_get_main_tbl();
  52  $tbl_admin             = $tbl_mdb_names['admin'            ];
  53  $tbl_courses           = $tbl_mdb_names['course'           ];
  54  $tbl_link_user_courses = $tbl_mdb_names['rel_course_user'  ];
  55  $tbl_courses_nodes     = $tbl_mdb_names['category'         ];
  56  $tbl_user              = $tbl_mdb_names['user'             ];
  57  $tbl_trackLogin        = $tbl_mdb_names['track_e_login'    ];
  58  
  59  /*
  60   * CLAROLINE HEADER AND BANNER
  61   */
  62  
  63  require $includePath . '/claro_init_header.inc.php';
  64  
  65  if ( isset($_uid) )
  66  {
  67      /*
  68       * AUTHENTICATED USER SECTION
  69       */
  70  
  71      require $includePath . '/index_authenticated.inc.php';
  72  }
  73  else
  74  {
  75      /*
  76       * ANONYMOUS (DEFAULT) SECTION
  77       */
  78  
  79      event_open();
  80      require $includePath . '/index_anonymous.inc.php';
  81  }
  82  
  83  /*
  84   * CLAROLINE FOOTER
  85   */
  86  
  87  require $includePath . '/claro_init_footer.inc.php';
  88  
  89  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]