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 content
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  *  'Content' 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.  
  19.  
  20.  
  21. include_once('../class/class.contents.php');
  22. if(isset($_POST['type']))    $type=$_POST['type'];
  23. if(isset($_GET['type']))    $type=$_GET['type'];
  24.  
  25. if(isset($_POST['parent']))    $parent=$_POST['parent'];
  26. if(isset($_GET['parent']))    $parent=$_GET['parent'];
  27.  
  28. if(isset($_POST['res']))    $res=$_POST['res'];
  29. if(isset($_GET['res']))        $res=$_GET['res'];
  30.  
  31. if($type=='P')  {
  32.     $mod_inc='publication';
  33.     $rub_link='?rub='.$mod_inc;
  34.     $cancel_link='index.php?rub=publication&amp;todo=det&amp;id='.$parent;
  35. }
  36. if($type=='W') {
  37.     $mod_inc='workshop';
  38.     $rub_link='?rub='.$mod_inc;
  39.     $cancel_link='index.php?rub=workshoprep&amp;todo=det&amp;id='.$parent;
  40. }
  41.  
  42. //////////// Check Droits utilisateur ////////////
  43. if (!HaveRight($mod_inc)) ReloadIndex('admin');
  44. ///////////
  45.  
  46. $todopage=$dir."/";
  47.     switch ($todo) 
  48.     {
  49.         case 'add':
  50.         $todopage.="add.php";
  51.         break;
  52.         case 'mod':
  53.         $todopage.="mod.php";
  54.         break;
  55.         case 'sup':
  56.         $todopage.="sup.php";
  57.         break;
  58.         case 'det':
  59.         $todopage.="det.php";
  60.         break;
  61.         default:
  62.         $todopage.="add.php";            
  63.     }
  64. include_once($todopage);    
  65. ?>

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