• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

studip_referrer.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 2005 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00024 
00032 /* ILIAS Version 3.7.0stable */
00033 
00034 $jump_to = 'index.php';
00035 
00036 // redirect to specified page
00037 $redirect = false;
00038 switch($_GET['target'])
00039 {
00040         case 'start': 
00041                 switch($_GET['type'])
00042                 {
00043                         case 'lm':
00044                                 $_GET['baseClass'] = 'ilLMPresentationGUI'; 
00045                                 $jump_to = 'ilias.php';
00046                         break;
00047                         case 'tst':
00048                                 $_GET['cmd'] = 'infoScreen';
00049                                 $_GET['baseClass'] = 'ilObjTestGUI'; 
00050                                 $jump_to = 'ilias.php';
00051                         break;
00052                         case 'sahs':
00053                                 $_GET['baseClass'] = 'ilSAHSPresentationGUI'; 
00054                                 $jump_to = 'ilias.php';
00055                         break;
00056                         case 'htlm':
00057                                 $_GET['baseClass'] = 'ilHTLMPresentationGUI'; 
00058                                 $jump_to = 'ilias.php';
00059                                 break;
00060                         default:
00061                                 unset($jump_to);
00062                 }
00063         break;
00064         case 'new':     
00065                 $_POST['new_type'] = $_GET['type'];
00066                 $_POST['cmd']['create'] = 'add';
00067                 $_GET['cmd'] = 'post';
00068                 $jump_to = 'repository.php';
00069         break;
00070         case 'edit':
00071                 switch($_GET['type'])
00072                         {
00073                                 case 'lm':
00074                                         $_GET['baseClass'] = 'ilLMEditorGUI'; 
00075                                         $jump_to = 'ilias.php';
00076                                 break;
00077                                 case 'tst':
00078                                         $_GET['cmd'] = '';
00079                                         $_GET['baseClass'] = 'ilObjTestGUI'; 
00080                                         $jump_to = 'ilias.php';
00081                                 break;
00082                                 case 'sahs':
00083                                         $_GET['baseClass'] = 'ilSAHSEditGUI'; 
00084                                         $jump_to = 'ilias.php';
00085                                 break;
00086                                 case 'htlm':
00087                                         $_GET['baseClass'] = 'ilHTLMEditorGUI'; 
00088                                         $jump_to = 'ilias.php';
00089                                 break;
00090                                 default:
00091                                         unset($jump_to);
00092                         }
00093         break;
00094         case 'login':
00095         break;
00096         default:
00097         unset($jump_to);
00098 }
00099 
00100 if (isset($_GET['sess_id']))
00101 {       
00102         setcookie('PHPSESSID',$_GET['sess_id']);
00103         $_COOKIE['PHPSESSID'] = $_GET['sess_id'];
00104 } else {
00105         unset($jump_to);
00106 }
00107 
00108 if (isset($_GET['client_id']))
00109 {       
00110         setcookie('ilClientId',$_GET['client_id']);
00111         $_COOKIE['ilClientId'] = $_GET['client_id'];
00112 } else {
00113         unset($jump_to);
00114 }
00115 
00116 if ($redirect)
00117 {
00118         header("Location: ".$jump_to);
00119         exit();
00120 }
00121 elseif(isset($jump_to)) 
00122         include($jump_to);
00123 ?>

Generated on Fri Dec 13 2013 17:57:03 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1