00001 <?php 00002 /* 00003 +-----------------------------------------------------------------------------+ 00004 | ILIAS open source | 00005 +-----------------------------------------------------------------------------+ 00006 | Copyright (c) 1998-2001 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 00036 if (isset($_GET["client_id"])) 00037 { 00038 setcookie("ilClientId",$_GET["client_id"]); 00039 $_COOKIE["ilClientId"] = $_GET["client_id"]; 00040 } 00041 00042 require_once "./include/inc.header.php"; 00043 00044 $target_arr = explode("_", $_GET["target"]); 00045 $target_type = $target_arr[0]; 00046 $target_id = $target_arr[1]; 00047 00048 switch($target_type) 00049 { 00050 // learning module pages 00051 case "pg": 00052 require_once("content/classes/class.ilLMPageObject.php"); 00053 ilLMPageObject::_goto($target_id); 00054 break; 00055 00056 // learning module chapters 00057 case "st": 00058 require_once("content/classes/class.ilStructureObject.php"); 00059 ilStructureObject::_goto($target_id); 00060 break; 00061 // glossar entries 00062 case "glo": 00063 case "git": 00064 require_once("content/classes/class.ilGlossaryTerm.php"); 00065 ilGlossaryTerm::_goto($target_id,$target_type); 00066 break; 00067 case "lm": 00068 require_once("./content/classes/class.ilObjContentObject.php"); 00069 ilObjContentObject::_goto($target_id); 00070 break; 00071 00072 case "frm": 00073 require_once("./classes/class.ilObjForum.php"); 00074 ilObjForum::_goto($target_id); 00075 break; 00076 00077 case "exc": 00078 require_once("./classes/class.ilObjExercise.php"); 00079 ilObjExercise::_goto($target_id); 00080 break; 00081 00082 case "tst": 00083 require_once("./assessment/classes/class.ilObjTest.php"); 00084 ilObjTest::_goto($target_id); 00085 break; 00086 00087 case "svy": 00088 require_once("./survey/classes/class.ilObjSurvey.php"); 00089 ilObjSurvey::_goto($target_id); 00090 break; 00091 } 00092 00093 ?>
1.7.1