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 //var_dump ($_SESSION); 00037 //var_dump ($_COOKIE); 00038 00039 // this should bring us all session data of the desired 00040 // client 00041 if (isset($_GET["client_id"])) 00042 { 00043 setcookie("ilClientId",$_GET["client_id"]); 00044 $_COOKIE["ilClientId"] = $_GET["client_id"]; 00045 } 00046 //echo "1"; 00047 require_once "./include/inc.header.php"; 00048 //echo "2"; 00049 $target_arr = explode("_", $_GET["target"]); 00050 $target_type = $target_arr[0]; 00051 $target_id = $target_arr[1]; 00052 00053 switch($target_type) 00054 { 00055 // learning module pages 00056 case "pg": 00057 require_once("content/classes/class.ilLMPageObject.php"); 00058 ilLMPageObject::_goto($target_id); 00059 break; 00060 00061 // learning module chapters 00062 case "st": 00063 require_once("content/classes/class.ilStructureObject.php"); 00064 ilStructureObject::_goto($target_id); 00065 break; 00066 // glossar entries 00067 case "glo": 00068 case "git": 00069 require_once("content/classes/class.ilGlossaryTerm.php"); 00070 ilGlossaryTerm::_goto($target_id,$target_type); 00071 break; 00072 case "lm": 00073 require_once("./content/classes/class.ilObjContentObject.php"); 00074 ilObjContentObject::_goto($target_id); 00075 break; 00076 00077 case "frm": 00078 require_once("./classes/class.ilObjForum.php"); 00079 ilObjForum::_goto($target_id); 00080 break; 00081 00082 case "exc": 00083 require_once("./classes/class.ilObjExercise.php"); 00084 ilObjExercise::_goto($target_id); 00085 break; 00086 00087 case "tst": 00088 require_once("./assessment/classes/class.ilObjTest.php"); 00089 ilObjTest::_goto($target_id); 00090 break; 00091 00092 case "svy": 00093 require_once("./survey/classes/class.ilObjSurvey.php"); 00094 if (array_key_exists("accesscode", $_GET)) 00095 { 00096 ilObjSurvey::_goto($target_id, $_GET["accesscode"]); 00097 } 00098 else 00099 { 00100 ilObjSurvey::_goto($target_id); 00101 } 00102 break; 00103 00104 case "webr": 00105 require_once("./link/classes/class.ilObjLinkResource.php"); 00106 ilObjLinkResource::_goto($target_id); 00107 break; 00108 00109 } 00110 00111 ?>