linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage project
  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.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!class_exists('auth')) {
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18.  
  19. //////////// Check Droits utilisateur ////////////
  20. if (!$l21auth->isSuperAdmin()) ReloadIndex('admin');
  21. ////////////
  22.  
  23. include_once($dir."/".SQL.".inc.php");
  24. include_once('../class/class.project.php');
  25.  
  26. $todopage=$dir."/";
  27. switch ($todo)
  28. {
  29.   case 'add':
  30.     $todopage.="add.php";
  31.     break;
  32.   case 'mod':
  33.     $todopage.="mod.php";
  34.     break;
  35.   case 'sup':
  36.     $todopage.="sup.php";
  37.     break;
  38.   case 'list':
  39.     $todopage.="list.php";
  40.     break;
  41.   case 'det':
  42.     $todopage.="det.php";
  43.     break;
  44.   default:
  45.     $todopage.="add.php";
  46. }
  47. include_once(override($todopageTHEME_ADMIN_PATH));
  48. ?>

Documentation generated on Thu, 20 Mar 2014 16:48:05 +0100 by phpDocumentor 1.4.1