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

Source for file index.php

Documentation is available at index.php

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

Documentation generated on Fri, 16 Oct 2009 09:34:12 +0200 by phpDocumentor 1.4.1