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
00033
00034
00035 if (isset($_POST["sess_id"]))
00036 $_GET["sess_id"] = $_POST["sess_id"];
00037 if (isset($_GET["sess_id"]))
00038 {
00039 setcookie("PHPSESSID",$_GET["sess_id"]);
00040 $_COOKIE["PHPSESSID"] = $_GET["sess_id"];
00041 }
00042
00043 if (isset($_GET["client_id"]))
00044 $_POST["client_id"] = $_GET["client_id"];
00045 if (isset($_POST["client_id"]))
00046 {
00047 setcookie("ilClientId",$_POST["client_id"]);
00048 $_COOKIE["ilClientId"] = $_POST["client_id"];
00049 }
00050
00051
00052
00053 switch($_GET['target'])
00054 {
00055 case "login":
00056 $return_to="";
00057 break;
00058 case "start":
00059 if ($_GET["type"] == "lm")
00060 $return_to = "ilias.php?baseClass=ilLMPresentationGUI&ref_id=" . $_GET["ref_id"];
00061 if ($_GET["type"] == "tst")
00062 $return_to = "ilias.php?baseClass=ilObjTestGUI&ref_id=" . $_GET["ref_id"] . "&cmd=infoScreen";
00063 if ($_GET["type"] == "sahs")
00064 $return_to = "content/sahs_presentation.php?ref_id=" . $_GET["ref_id"];
00065 if ($_GET["type"] == "htlm")
00066 $return_to = "content/fblm_presentation.php?ref_id=" . $_GET["ref_id"];
00067 break;
00068 case "new":
00069 $return_to = "repository.php?ref_id=" . $_GET["ref_id"] . "&cmd=create&new_type=" . $_GET["type"];
00070 $_POST["new_type"] = $_GET["type"];
00071 break;
00072 case "edit":
00073 if ($_GET["type"] == "lm")
00074 $return_to = "ilias.php?baseClass=ilLMEditorGUI&ref_id=" . $_GET["ref_id"];
00075 if ($_GET["type"] == "tst")
00076 $return_to = "ilias.php?baseClass=ilObjTestGUI&ref_id=" . $_GET["ref_id"] . "&cmd=";
00077 if ($_GET["type"] == "sahs")
00078 $return_to = "content/sahs_edit.php?ref_id=" . $_GET["ref_id"];
00079 if ($_GET["type"] == "htlm")
00080 $return_to = "content/fblm_edit.php?ref_id=" . $_GET["ref_id"];
00081 break;
00082 }
00083
00084 if ($return_to != "none")
00085 {
00086 $_GET["script"] = $return_to;
00087 include("start.php");
00088 }
00089 ?>