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

usr_personaldesktop.php

Go to the documentation of this file.
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 
00024 
00038 echo "deprecated. use ilias.php?baseClass=ilPersonalDesktopGUI instead"; exit;
00039 
00040 /*
00041 require_once "./include/inc.header.php";
00042 require_once "classes/class.ilObjUser.php";
00043 require_once "classes/class.ilMail.php";
00044 require_once "classes/class.ilPersonalDesktopGUI.php";
00045 
00046 
00047 // catch hack attempts
00048 if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
00049 {
00050     $ilias->raiseError($lng->txt("msg_not_available_for_anon"),$ilias->error_obj->MESSAGE);
00051 }
00052 
00053 switch($_GET["cmd"])
00054 {
00055     case "dropItem":
00056         $ilias->account->dropDesktopItem($_GET["id"], $_GET["type"]);
00057         break;
00058 
00059     case "removeMember":
00060         //$groupObj = $ilias->obj_factory->getInstanceByRefId($_GET["id"]);
00061         //$groupObj = new ilGroupGUI($a_data, $_GET["id"], false);
00062         //$err_msg = $groupObj->removeMember($ilias->account->getId());
00063         if (strlen($err_msg) > 0)
00064             $ilias->raiseError($lng->txt($err_msg),$ilias->error_obj->MESSAGE);
00065         break;
00066                 
00067         case "showSelectedItemsDetails":
00068                 $ilUser->writePref("pd_selected_items_details", "y");
00069                 break;
00070 
00071         case "hideSelectedItemsDetails":
00072                 $ilUser->writePref("pd_selected_items_details", "n");
00073                 break;
00074 
00075 }
00076 
00077 //add template for content
00078 $tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
00079 $tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
00080 $tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
00081 //$tpl->addBlockFile("CONTENT", "content", "tpl.usr_personaldesktop.html");
00082 $tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.usr_personaldesktop.html");
00083 //$tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
00084 
00085 // set locator
00086 $tpl->setVariable("TXT_LOCATOR",$lng->txt("locator"));
00087 $tpl->setCurrentBlock("locator_item");
00088 $tpl->setVariable("ITEM", $lng->txt("personal_desktop"));
00089 $tpl->setVariable("LINK_ITEM", "usr_personaldesktop.php");
00090 $tpl->parseCurrentBlock();
00091 
00092 // catch feedback message
00093 sendInfo();
00094 // display infopanel if something happened
00095 infoPanel();
00096 
00097 // display tabs
00098 //include "./include/inc.personaldesktop_buttons.php";
00099 
00100 $tpl->setCurrentBlock("adm_content");
00101 $tpl->setVariable("HEADER", $lng->txt("personal_desktop"));
00102 include "./include/inc.personaldesktop_buttons.php";
00103 //$tpl->setVariable("TABS", "KK");
00104 $tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
00105 
00106 
00107 $deskgui =& new ilPersonalDesktopGUI();
00108 
00109 $deskgui->displaySelectedItems();
00110 $deskgui->displaySystemMessages();
00111 $deskgui->displayMails();
00112 $deskgui->displayUsersOnline();
00113 $deskgui->displayBookmarks();
00114 //$deskgui->displayTests();             // see display selected items
00115 
00116 // output
00117 $tpl->show();
00118 */
00119 ?>

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