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

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