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 resources
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  *  'Resource' module is used by 'Publication' and 'Workshop' modules
  10.  */
  11.  
  12. //////////// Check Inclusion de pages ////////////
  13. if (!function_exists('AuthenthificationProcess')) {
  14.     include_once("../lib/lib_common.php");
  15.     ReloadIndex('admin');
  16. ////////////
  17.  
  18. include_once('../class/class.resources.php');
  19.  
  20. if(isset($_POST['type']))    $type=$_POST['type'];
  21. if(isset($_GET['type']))    $type=$_GET['type'];
  22.  
  23. if(isset($_POST['parent']))    $parent=$_POST['parent'];
  24. if(isset($_GET['parent']))    $parent=$_GET['parent'];
  25.  
  26. if(isset($_POST['res']))    $res=$_POST['res'];
  27. if(isset($_GET['res']))        $res=$_GET['res'];
  28.  
  29. if($type=='P')  {
  30.     $mod_inc='publication';
  31.     $rub_link='?rub='.$mod_inc;
  32.     $cancel_link='index.php?rub=publication&amp;todo=det&amp;id='.$parent;
  33. }
  34. if($type=='W'{
  35.     $mod_inc='workshop';
  36.     $rub_link='?rub='.$mod_inc;
  37.     $cancel_link='index.php?rub=workshoprep&amp;todo=det&amp;id='.$parent;
  38. }
  39.  
  40. //////////// Check Droits utilisateur ////////////
  41. if (!HaveRight($mod_inc)) ReloadIndex('admin');
  42. ///////////
  43.  
  44. $todopage=$dir."/";
  45.     switch ($todo
  46.     {
  47.         case 'add_l':
  48.         $todopage.="add_link.php";
  49.         break;
  50.         case 'add_m':
  51.         $todopage.="add_multi.php";
  52.         break;
  53.         case 'add_b':
  54.         $todopage.="add_biblio.php";
  55.         break;
  56.         case 'mod_l':
  57.         $todopage.="mod_link.php";
  58.         break;
  59.         case 'mod_m':
  60.         $todopage.="mod_multi.php";
  61.         break;
  62.         case 'mod_b':
  63.         $todopage.="mod_biblio.php";
  64.         break;
  65.         case 'sup':
  66.         $todopage.="sup.php";
  67.         break;
  68.         default:
  69.         $todopage.="add.php";            
  70.     }
  71. include_once($todopage);    
  72. ?>

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