• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

studip_referrer.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 2005 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 
00024 
00033 /* ILIAS Version 3.6.1 */
00034 // start correct session and client
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 // redirect to specified page
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 ?>

Generated on Fri Dec 13 2013 11:58:01 for ILIAS Release_3_6_x_branch .rev 46809 by  doxygen 1.7.1