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
00036 require_once "./include/inc.header.php";
00037 require_once "classes/class.ilObjUser.php";
00038 require_once "classes/class.ilMail.php";
00039 require_once "classes/class.ilPersonalDesktopGUI.php";
00040
00041
00042
00043 if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
00044 {
00045 $ilias->raiseError($lng->txt("msg_not_available_for_anon"),$ilias->error_obj->MESSAGE);
00046 }
00047
00048 switch($_GET["cmd"])
00049 {
00050 case "dropItem":
00051 $ilias->account->dropDesktopItem($_GET["id"], $_GET["type"]);
00052 break;
00053
00054 case "removeMember":
00055
00056
00057
00058 if (strlen($err_msg) > 0)
00059 $ilias->raiseError($lng->txt($err_msg),$ilias->error_obj->MESSAGE);
00060 break;
00061
00062 }
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074 $tpl->addBlockFile("CONTENT", "content", "tpl.usr_personaldesktop.html");
00075 $tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
00076 $tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
00077
00078
00079
00080 $tpl->setVariable("TXT_LOCATOR",$lng->txt("locator"));
00081 $tpl->setCurrentBlock("locator_item");
00082 $tpl->setVariable("ITEM", $lng->txt("personal_desktop"));
00083 $tpl->setVariable("LINK_ITEM", "usr_personaldesktop.php");
00084 $tpl->parseCurrentBlock();
00085
00086
00087 sendInfo();
00088
00089 infoPanel();
00090
00091
00092 include "./include/inc.personaldesktop_buttons.php";
00093
00094 $tpl->setCurrentBlock("content");
00095 $tpl->setVariable("TXT_PAGEHEADLINE", $lng->txt("personal_desktop"));
00096 $tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114 $deskgui =& new ilPersonalDesktopGUI();
00115
00116 $deskgui->displaySelectedItems();
00117 $deskgui->displaySystemMessages();
00118 $deskgui->displayMails();
00119 $deskgui->displayUsersOnline();
00120 $deskgui->displayBookmarks();
00121
00122
00123
00124 $tpl->show();
00125 ?>