| [ PHPXref.com ] | [ Generated: Thu Jul 24 15:16:34 2008 ] | [ ILIAS 3.6.2 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 +-----------------------------------------------------------------------------+ 4 | ILIAS open source | 5 +-----------------------------------------------------------------------------+ 6 | Copyright (c) 1998-2001 ILIAS open source, University of Cologne | 7 | | 8 | This program is free software; you can redistribute it and/or | 9 | modify it under the terms of the GNU General Public License | 10 | as published by the Free Software Foundation; either version 2 | 11 | of the License, or (at your option) any later version. | 12 | | 13 | This program is distributed in the hope that it will be useful, | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 | GNU General Public License for more details. | 17 | | 18 | You should have received a copy of the GNU General Public License | 19 | along with this program; if not, write to the Free Software | 20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 21 +-----------------------------------------------------------------------------+ 22 */ 23 24 /** 25 * redirection script 26 * todo: (a better solution should control the processing 27 * via a xml file) 28 * 29 * $_GET["target"] should be of format <type>_<id> 30 * 31 * @author Alex Killing <alex.killing@gmx.de> 32 * @package ilias-core 33 * @version $Id: goto.php,v 1.11.2.6 2006/04/18 06:54:04 akill Exp $ 34 */ 35 36 //var_dump ($_SESSION); 37 //var_dump ($_COOKIE); 38 39 // this should bring us all session data of the desired 40 // client 41 if (isset($_GET["client_id"])) 42 { 43 setcookie("ilClientId",$_GET["client_id"]); 44 $_COOKIE["ilClientId"] = $_GET["client_id"]; 45 } 46 //echo "1"; 47 require_once "./include/inc.header.php"; 48 //echo "2"; 49 $target_arr = explode("_", $_GET["target"]); 50 $target_type = $target_arr[0]; 51 $target_id = $target_arr[1]; 52 $target_ref_id = $target_arr[2]; // optional for pages 53 54 switch($target_type) 55 { 56 // learning module pages 57 case "pg": 58 require_once ("content/classes/class.ilLMPageObject.php"); 59 ilLMPageObject::_goto($target_id, $target_ref_id); 60 include ("ilias.php"); 61 break; 62 63 // learning module chapters 64 case "st": 65 require_once ("content/classes/class.ilStructureObject.php"); 66 ilStructureObject::_goto($target_id); 67 include ("ilias.php"); 68 break; 69 70 // glossar entries 71 case "glo": 72 case "git": 73 require_once ("content/classes/class.ilGlossaryTerm.php"); 74 ilGlossaryTerm::_goto($target_id,$target_type); 75 break; 76 77 case "lm": 78 case "dbk": 79 require_once ("./content/classes/class.ilObjContentObject.php"); 80 ilObjContentObject::_goto($target_id); 81 include ("ilias.php"); 82 break; 83 84 case "htlm": 85 require_once ("./content/classes/class.ilObjFileBasedLM.php"); 86 ilObjFileBasedLM::_goto($target_id); 87 break; 88 89 case "frm": 90 require_once ("./classes/class.ilObjForum.php"); 91 $target_thread = $target_arr[2]; 92 ilObjForum::_goto($target_id, $target_thread); 93 break; 94 95 case "exc": 96 require_once ("./classes/class.ilObjExercise.php"); 97 ilObjExercise::_goto($target_id); 98 break; 99 100 case "tst": 101 require_once ("./assessment/classes/class.ilObjTest.php"); 102 ilObjTest::_goto($target_id); 103 break; 104 105 case "svy": 106 require_once ("./survey/classes/class.ilObjSurvey.php"); 107 if (array_key_exists("accesscode", $_GET)) 108 { 109 ilObjSurvey::_goto($target_id, $_GET["accesscode"]); 110 } 111 else 112 { 113 ilObjSurvey::_goto($target_id); 114 } 115 break; 116 117 case "webr": 118 require_once ("./link/classes/class.ilObjLinkResource.php"); 119 ilObjLinkResource::_goto($target_id); 120 break; 121 122 case "chat": 123 require_once ("./chat/classes/class.ilObjChat.php"); 124 ilObjChat::_goto($target_id); 125 break; 126 127 case "cat": 128 require_once ("classes/class.ilObjCategory.php"); 129 ilObjCategory::_goto($target_id); 130 include ("repository.php"); 131 break; 132 133 case "crs": 134 require_once ("course/classes/class.ilObjCourse.php"); 135 ilObjCourse::_goto($target_id); 136 include ("repository.php"); 137 break; 138 139 case "grp": 140 require_once ("classes/class.ilObjGroup.php"); 141 ilObjGroup::_goto($target_id); 142 include ("repository.php"); 143 break; 144 145 case "file": 146 require_once ("classes/class.ilObjFile.php"); 147 ilObjFile::_goto($target_id); 148 include ("repository.php"); 149 break; 150 151 } 152 153 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |