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 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 (!class_exists('auth')){
  13.     include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. //////////// Check Droits utilisateur ////////////
  19. if (!$l21auth->hasRight('news')) ReloadIndex('admin');
  20. ////////////
  21.  
  22. include_once('../class/class.comment.php');
  23. include_once(override('../comment/display.php'));
  24.  
  25. $todopage=$dir."/";
  26. switch ($todo)
  27. {
  28.   case 'det':
  29.     $todopage.="det.php";
  30.     break;
  31.   case 'list':
  32.     $todopage.="list.php";
  33.     break;
  34.   default:
  35.     $todopage.="list.php";
  36. }
  37. include_once(override($todopageTHEME_ADMIN_PATH));
  38. ?>

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