Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00032
00033
00034 $jump_to = 'index.php';
00035
00036
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 ?>