ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilPCFileListGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once("./Services/COPage/classes/class.ilPCFileList.php");
5require_once("./Services/COPage/classes/class.ilPageContentGUI.php");
6
18{
19
24 function ilPCFileListGUI(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id = "")
25 {
26 parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
27 $this->setCharacteristics(array("FileListItem" => $this->lng->txt("cont_FileListItem")));
28 }
29
33 function &executeCommand()
34 {
35 // get next class that processes or forwards current command
36 $next_class = $this->ctrl->getNextClass($this);
37
38 $this->getCharacteristicsOfCurrentStyle("flist_li"); // scorm-2004
39
40 // get current command
41 $cmd = $this->ctrl->getCmd();
42
43 switch($next_class)
44 {
45 default:
46 $ret =& $this->$cmd();
47 break;
48 }
49
50 return $ret;
51 }
52
56 function insert()
57 {
58 global $ilUser, $ilTabs;
59
60 if ($_GET["subCmd"] == "insertNew")
61 {
62 $_SESSION["cont_file_insert"] = "insertNew";
63 }
64 if ($_GET["subCmd"] == "insertFromRepository")
65 {
66 $_SESSION["cont_file_insert"] = "insertFromRepository";
67 }
68 if ($_GET["subCmd"] == "insertFromWorkspace")
69 {
70 $_SESSION["cont_file_insert"] = "insertFromWorkspace";
71 }
72 if (($_GET["subCmd"] == "") && $_SESSION["cont_file_insert"] != "")
73 {
74 $_GET["subCmd"] = $_SESSION["cont_file_insert"];
75 }
76
77 switch ($_GET["subCmd"])
78 {
79 case "insertFromWorkspace":
80 $this->insertFromWorkspace();
81 break;
82
83 case "insertFromRepository":
84 $this->insertFromRepository();
85 break;
86
87 case "selectFile":
88 $this->selectFile();
89 break;
90
91 default:
92 $this->setTabs();
93 $ilTabs->setSubTabActive("cont_new_file");
94
96
97 $form = $this->initEditForm("create");
98 $this->tpl->setContent($form->getHTML());
99 break;
100 }
101
102 }
103
107 function selectFile()
108 {
109 global $ilTabs, $ilUser;
110
111 $this->setTabs();
112 $ilTabs->setSubTabActive("cont_file_from_repository");
113
114 $this->displayValidationError();
115 $form = $this->initEditForm("select_file");
116
117 $this->tpl->setContent($form->getHTML());
118 }
119
123 function insertFromRepository($a_cmd = "insert")
124 {
125 global $ilTabs, $tree, $ilCtrl, $tpl;
126
127 if ($a_cmd == "insert")
128 {
129 $this->setTabs();
130 }
131 else
132 {
133 $this->setItemTabs($a_cmd);
134 }
135
136 $ilTabs->setSubTabActive("cont_file_from_repository");
137
138 include_once "./Services/COPage/classes/class.ilFileSelectorGUI.php";
139
140 $exp = new ilFileSelectorGUI($this->ctrl->getLinkTarget($this, $a_cmd));
141
142 if ($_GET["expand"] == "")
143 {
144 $expanded = $tree->readRootId();
145 }
146 else
147 {
148 $expanded = $_GET["expand"];
149 }
150 $exp->setExpand($expanded);
151
152 $exp->setTargetGet("sel_id");
153 //$this->ctrl->setParameter($this, "target_type", $a_type);
154 $ilCtrl->setParameter($this, "subCmd", "insertFromRepository");
155 $exp->setParamsGet($this->ctrl->getParameterArray($this, $a_cmd));
156
157 // filter
158 $exp->setFiltered(true);
159 $exp->setFilterMode(IL_FM_POSITIVE);
160 $exp->addFilter("root");
161 $exp->addFilter("cat");
162 $exp->addFilter("grp");
163 $exp->addFilter("fold");
164 $exp->addFilter("crs");
165 $exp->addFilter("file");
166
167 $sel_types = array('file');
168
169 $exp->setOutput(0);
170
171 $tpl->setContent($exp->getOutput());
172 }
173
177 function insertFromWorkspace($a_cmd = "insert")
178 {
179 global $ilTabs, $tree, $ilCtrl, $tpl, $ilUser;
180
181 if ($a_cmd == "insert")
182 {
183 $this->setTabs();
184 }
185 else
186 {
187 $this->setItemTabs($a_cmd);
188 }
189
190 $ilTabs->setSubTabActive("cont_file_from_workspace");
191
192 // get ws tree
193 include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
194 $tree = new ilWorkspaceTree($ilUser->getId());
195
196 // get access handler
197 include_once("./Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php");
198 $acc_handler = new ilWorkspaceAccessHandler($tree);
199
200 // get es explorer
201 include_once("./Services/PersonalWorkspace/classes/class.ilWorkspaceExplorer.php");
203 'filelist_wspexpand', $tree, $acc_handler);
204 $exp->setTargetGet('fl_wsp_id');
205 $exp->setFiltered(false);
206 $exp->removeAllFormItemTypes();
207
208 // select link
209 $exp->setTypeClickable("file");
210 $ilCtrl->setParameter($this, "subCmd", "selectFile");
211 $exp->setCustomLinkTarget($ilCtrl->getLinkTarget($this, $a_cmd));
212
213 // filter
214 $exp->setFiltered(true);
215 $exp->setFilterMode(IL_FM_POSITIVE);
216 $exp->addFilter("wsrt");
217 $exp->addFilter("wfld");
218 $exp->addFilter("file");
219
220 // expand link
221 $ilCtrl->setParameter($this, "subCmd", "insertFromWorkspace");
222 $exp->setParamsGet($ilCtrl->getParameterArray($this, $a_cmd));
223
224 if($_GET['filelist_wspexpand'] == '')
225 {
226 $expanded = $tree->readRootId();
227 }
228 else
229 {
230 $expanded = $_GET['filelist_wspexpand'];
231 }
232 $exp->setExpand($expanded);
233 $exp->setOutput(0);
234
235 $tpl->setContent($exp->getOutput());
236 }
237
241 function create()
242 {
243 include_once("./Modules/File/classes/class.ilObjFile.php");
244
245 $form = $this->initEditForm("create");
246 $form->checkInput();
247
248 // from personal workspace
249 if(substr($_POST["file_ref_id"], 0, 4) == "wsp_")
250 {
251 $fileObj = new ilObjFile(substr($_POST["file_ref_id"], 4), false);
252 }
253 // upload
254 else if ($_POST["file_ref_id"] == 0)
255 {
256 $fileObj = new ilObjFile();
257 $fileObj->setType("file");
258 $fileObj->setTitle($_FILES["file"]["name"]);
259 $fileObj->setDescription("");
260 $fileObj->setFileName($_FILES["file"]["name"]);
261 $fileObj->setFileType($_FILES["file"]["type"]);
262 $fileObj->setFileSize($_FILES["file"]["size"]);
263 $fileObj->setMode("filelist");
264 $fileObj->create();
265 // upload file to filesystem
266 $fileObj->createDirectory();
267 $fileObj->raiseUploadError(false);
268 $fileObj->getUploadFile($_FILES["file"]["tmp_name"],
269 $_FILES["file"]["name"]);
270 }
271 // from repository
272 else
273 {
274 $fileObj = new ilObjFile($_POST["file_ref_id"]);
275 }
276 $_SESSION["il_text_lang_".$_GET["ref_id"]] = $_POST["flst_language"];
277
278//echo "::".is_object($this->dom).":";
279 $this->content_obj = new ilPCFileList($this->getPage());
280 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
281 $this->content_obj->setListTitle(ilUtil::stripSlashes($_POST["flst_title"]), $_POST["flst_language"]);
282 $this->content_obj->appendItem($fileObj->getId(), $fileObj->getFileName(),
283 $fileObj->getFileType());
284
285 $this->updated = $this->pg_obj->update();
286 if ($this->updated === true)
287 {
288 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
289 }
290 else
291 {
292 $this->insert();
293 }
294 }
295
299 function edit()
300 {
301 $this->setTabs(false);
302
303 $form = $this->initEditForm();
304 $this->tpl->setContent($form->getHTML());
305 }
306
312 public function initEditForm($a_mode = "edit")
313 {
314 global $lng, $ilCtrl, $ilUser;
315
316 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
317 $form = new ilPropertyFormGUI();
318
319 if ($a_mode != "add_file")
320 {
321 // title
322 $ti = new ilTextInputGUI($lng->txt("title"), "flst_title");
323 $ti->setMaxLength(80);
324 $ti->setSize(40);
325 $form->addItem($ti);
326
327 // language
328 require_once("Services/MetaData/classes/class.ilMDLanguageItem.php");
330 $si = new ilSelectInputGUI($lng->txt("language"), "flst_language");
331 $si->setOptions($lang);
332 $form->addItem($si);
333 }
334
335 if (in_array($a_mode, array("create", "add_file")))
336 {
337 // file
338 $fi = new ilFileInputGUI($lng->txt("file"), "file");
339 $fi->setRequired(true);
340 $form->addItem($fi);
341 }
342 else if (in_array($a_mode, array("select_file")))
343 {
344 // file
345 $ne = new ilNonEditableValueGUI($lng->txt("file"), "");
346
347 if(isset($_GET["file_ref_id"]))
348 {
349 include_once("./Modules/File/classes/class.ilObjFile.php");
350 $file_obj = new ilObjFile((int) $_GET["file_ref_id"]);
351 if (is_object($file_obj))
352 {
353 // ref id as hidden input
354 $hi = new ilHiddenInputGUI("file_ref_id");
355 $hi->setValue((int) $_GET["file_ref_id"]);
356 $form->addItem($hi);
357
358 $ne->setValue($file_obj->getTitle());
359 }
360 }
361 else if(isset($_GET["fl_wsp_id"]))
362 {
363 // we need the object id for the instance
364 include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
365 $tree = new ilWorkspaceTree($ilUser->getId());
366 $node = $tree->getNodeData((int) $_GET["fl_wsp_id"]);
367
368 include_once("./Modules/File/classes/class.ilObjFile.php");
369 $file_obj = new ilObjFile($node["obj_id"], false);
370 if (is_object($file_obj))
371 {
372 // ref id as hidden input
373 $hi = new ilHiddenInputGUI("file_ref_id");
374 $hi->setValue("wsp_".(int) $node["obj_id"]);
375 $form->addItem($hi);
376
377 $ne->setValue($file_obj->getTitle());
378 }
379 $this->tpl->parseCurrentBlock();
380 }
381
382 $form->addItem($ne);
383 }
384
385
386 switch ($a_mode)
387 {
388 case "edit";
389 $ti->setValue($this->content_obj->getListTitle());
390 $si->setValue($this->content_obj->getLanguage());
391 $form->addCommandButton("saveProperties", $lng->txt("save"));
392 $form->addCommandButton("cancelUpdate", $lng->txt("cancel"));
393 $form->setTitle($lng->txt("cont_edit_file_list_properties"));
394 break;
395
396 case "create":
397 case "select_file":
398 if ($_SESSION["il_text_lang_".$_GET["ref_id"]] != "")
399 {
400 $s_lang = $_SESSION["il_text_lang_".$_GET["ref_id"]];
401 }
402 else
403 {
404 $s_lang = $ilUser->getLanguage();
405 }
406 $si->setValue($s_lang);
407 $form->addCommandButton("create_flst", $lng->txt("save"));
408 $form->addCommandButton("cancelCreate", $lng->txt("cancel"));
409 $form->setTitle($lng->txt("cont_insert_file_list"));
410 break;
411
412 case "add_file":
413 $form->addCommandButton("insertNewFileItem", $lng->txt("save"));
414 $form->addCommandButton("editFiles", $lng->txt("cancel"));
415 $form->setTitle($lng->txt("cont_insert_file_item"));
416 break;
417 }
418
419 $form->setFormAction($ilCtrl->getFormAction($this));
420
421 return $form;
422 }
423
424
428 function saveProperties()
429 {
430 $this->content_obj->setListTitle(ilUtil::stripSlashes($_POST["flst_title"]),
431 ilUtil::stripSlashes($_POST["flst_language"]));
432 $this->updated = $this->pg_obj->update();
433 if ($this->updated === true)
434 {
435 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
436 }
437 else
438 {
439 $this->pg_obj->addHierIDs();
440 $this->edit();
441 }
442 }
443
447 function editFiles()
448 {
449 global $tpl, $ilToolbar, $ilCtrl, $lng;
450
451 $this->setTabs(false);
452
453 $ilToolbar->addButton($lng->txt("cont_add_file"),
454 $ilCtrl->getLinkTarget($this, "addFileItem"));
455
456 include_once("./Services/COPage/classes/class.ilPCFileListTableGUI.php");
457 $table_gui = new ilPCFileListTableGUI($this, "editFiles", $this->content_obj);
458 $tpl->setContent($table_gui->getHTML());
459 }
460
464 function setTabs($a_create = true)
465 {
466 global $ilTabs, $ilCtrl, $lng, $ilSetting;
467
468 if ($a_create)
469 {
470 $cmd = "insert";
471
472 $ilCtrl->setParameter($this, "subCmd", "insertNew");
473 $ilTabs->addSubTabTarget("cont_new_file",
474 $ilCtrl->getLinkTarget($this, $cmd), $cmd);
475
476 $ilCtrl->setParameter($this, "subCmd", "insertFromRepository");
477 $ilTabs->addSubTabTarget("cont_file_from_repository",
478 $ilCtrl->getLinkTarget($this, $cmd), $cmd);
479 $ilCtrl->setParameter($this, "subCmd", "");
480
481 if(!$ilSetting->get("disable_personal_workspace") &&
482 !$ilSetting->get("disable_wsp_files"))
483 {
484 $ilCtrl->setParameter($this, "subCmd", "insertFromWorkspace");
485 $ilTabs->addSubTabTarget("cont_file_from_workspace",
486 $ilCtrl->getLinkTarget($this, $cmd), $cmd);
487 $ilCtrl->setParameter($this, "subCmd", "");
488 }
489 }
490 else
491 {
492 $ilTabs->setBackTarget($lng->txt("pg"),
493 $this->ctrl->getParentReturn($this));
494
495 $ilTabs->addTarget("cont_ed_edit_files",
496 $ilCtrl->getLinkTarget($this, "editFiles"), "editFiles",
497 get_class($this));
498
499 $ilTabs->addTarget("cont_ed_edit_prop",
500 $ilCtrl->getLinkTarget($this, "edit"), "edit",
501 get_class($this));
502
503 }
504 }
505
510 function addFileItem()
511 {
512 global $ilCtrl;
513
514 $files = $this->content_obj->getFileList();
515
516 if (count($files) >= 1)
517 {
518 $ilCtrl->setParameterByClass("ilpcfileitemgui", "hier_id",
519 $files[count($files) - 1]["hier_id"]);
520 $ilCtrl->setParameterByClass("ilpcfileitemgui", "pc_id",
521 $files[count($files) - 1]["pc_id"]);
522 $ilCtrl->redirectByClass("ilpcfileitemgui", "newItemAfter");
523 }
524 else
525 {
526 $ilCtrl->redirect($this, "newFileItem");
527 }
528 }
529
533 function deleteFileItem()
534 {
535 global $ilCtrl;
536
537 if (is_array($_POST["fid"]))
538 {
539 $ids = array();
540 foreach($_POST["fid"] as $k => $v)
541 {
542 $ids[] = $k;
543 }
544 $this->content_obj->deleteFileItems($ids);
545 }
546 $this->updated = $this->pg_obj->update();
547 $ilCtrl->redirect($this, "editFiles");
548 }
549
553 function savePositions()
554 {
555 global $ilCtrl;
556
557 if (is_array($_POST["position"]))
558 {
559 $this->content_obj->savePositions($_POST["position"]);
560 }
561 $this->updated = $this->pg_obj->update();
562 $ilCtrl->redirect($this, "editFiles");
563 }
564
569 {
570 global $ilCtrl;
571
572 if (is_array($_POST["position"]))
573 {
574 $this->content_obj->savePositions($_POST["position"]);
575 }
576 if (is_array($_POST["class"]))
577 {
578 $this->content_obj->saveStyleClasses($_POST["class"]);
579 }
580 $this->updated = $this->pg_obj->update();
581 $ilCtrl->redirect($this, "editFiles");
582 }
583
588 {
589 // check whether there is more than one style class
590 $chars = $this->getCharacteristics();
591
592 $classes = $this->content_obj->getAllClasses();
593 if (count($chars) > 1)
594 {
595 return true;
596 }
597 foreach ($classes as $class)
598 {
599 if ($class != "" && $class != "FileListItem")
600 {
601 return true;
602 }
603 }
604 return false;
605 }
606
607 //
608 //
609 // New file item
610 //
611 //
612
619 function newFileItem()
620 {
621 global $ilTabs;
622
623 if ($_GET["subCmd"] == "insertNew")
624 {
625 $_SESSION["cont_file_insert"] = "insertNew";
626 }
627 if ($_GET["subCmd"] == "insertFromRepository")
628 {
629 $_SESSION["cont_file_insert"] = "insertFromRepository";
630 }
631 if ($_GET["subCmd"] == "insertFromWorkspace")
632 {
633 $_SESSION["cont_file_insert"] = "insertFromWorkspace";
634 }
635 if (($_GET["subCmd"] == "") && $_SESSION["cont_file_insert"] != "")
636 {
637 $_GET["subCmd"] = $_SESSION["cont_file_insert"];
638 }
639
640 switch ($_GET["subCmd"])
641 {
642 case "insertFromWorkspace":
643 $this->insertFromWorkspace("newFileItem");
644 break;
645
646 case "insertFromRepository":
647 $this->insertFromRepository("newFileItem");
648 break;
649
650 case "selectFile":
651 $this->insertNewFileItem($_GET["file_ref_id"]);
652 break;
653
654 default:
655 $this->setItemTabs("newFileItem");
656 $ilTabs->setSubTabActive("cont_new_file");
657
658 $this->displayValidationError();
659
660 $form = $this->initEditForm("add_file");
661 $this->tpl->setContent($form->getHTML());
662 break;
663 }
664 }
665
669 function insertNewFileItem($a_file_ref_id = 0)
670 {
671 global $ilUser;
672
673 // from personal workspace
674 if(isset($_GET["fl_wsp_id"]))
675 {
676 // we need the object id for the instance
677 include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
678 $tree = new ilWorkspaceTree($ilUser->getId());
679 $node = $tree->getNodeData($_GET["fl_wsp_id"]);
680
681 include_once("./Modules/File/classes/class.ilObjFile.php");
682 $file_obj = new ilObjFile($node["obj_id"], false);
683 }
684 // upload
685 else if ($a_file_ref_id == 0)
686 {
687 $file_obj = $this->createFileItem();
688 }
689 // from repository
690 else
691 {
692 include_once("./Modules/File/classes/class.ilObjFile.php");
693 $file_obj = new ilObjFile($a_file_ref_id);
694 }
695 if (is_object($file_obj))
696 {
697 $this->content_obj->appendItem($file_obj->getId(),
698 $file_obj->getTitle(), $file_obj->getFileType());
699 $this->updated = $this->pg_obj->update();
700 if ($this->updated === true)
701 {
702 //$this->ctrl->returnToParent($this, "jump".$this->hier_id);
703 $this->ctrl->redirect($this, "editFiles");
704 }
705 }
706
707 $_GET["subCmd"] = "-";
708 $this->newFileItem();
709 }
710
714 function createFileItem()
715 {
716 global $lng;
717
718 if ($_FILES["file"]["name"] == "")
719 {
720 $_GET["subCmd"] = "-";
721 ilUtil::sendFailure($lng->txt("upload_error_file_not_found"));
722 return false;
723 }
724
725 $form = $this->initEditForm();
726 $form->checkInput();
727
728 include_once("./Modules/File/classes/class.ilObjFile.php");
729 $fileObj = new ilObjFile();
730 $fileObj->setType("file");
731 $fileObj->setTitle($_FILES["file"]["name"]);
732 $fileObj->setDescription("");
733 $fileObj->setFileName($_FILES["file"]["name"]);
734 $fileObj->setFileType($_FILES["file"]["type"]);
735 $fileObj->setFileSize($_FILES["file"]["size"]);
736 $fileObj->setMode("filelist");
737 $fileObj->create();
738 $fileObj->raiseUploadError(false);
739 // upload file to filesystem
740 $fileObj->createDirectory();
741 $fileObj->getUploadFile($_FILES["file"]["tmp_name"],
742 $_FILES["file"]["name"]);
743
744 return $fileObj;
745 }
746
747
751 function setItemTabs($a_cmd = "")
752 {
753 global $ilTabs, $ilCtrl, $ilSetting;
754
755 $ilTabs->addTarget("cont_back",
756 $this->ctrl->getParentReturn($this), "",
757 "");
758
759 if ($a_cmd != "")
760 {
761 $ilCtrl->setParameter($this, "subCmd", "insertNew");
762 $ilTabs->addSubTabTarget("cont_new_file",
763 $ilCtrl->getLinkTarget($this, $a_cmd), $a_cmd);
764
765 $ilCtrl->setParameter($this, "subCmd", "insertFromRepository");
766 $ilTabs->addSubTabTarget("cont_file_from_repository",
767 $ilCtrl->getLinkTarget($this, $a_cmd), $a_cmd);
768 $ilCtrl->setParameter($this, "subCmd", "");
769
770 if(!$ilSetting->get("disable_personal_workspace") &&
771 !$ilSetting->get("disable_wsp_files"))
772 {
773 $ilCtrl->setParameter($this, "subCmd", "insertFromWorkspace");
774 $ilTabs->addSubTabTarget("cont_file_from_workspace",
775 $ilCtrl->getLinkTarget($this, $a_cmd), $a_cmd);
776 $ilCtrl->setParameter($this, "subCmd", "");
777 }
778 }
779 }
780
781
782}
783?>
$_GET["client_id"]
$_SESSION["AccountId"]
const IL_FM_POSITIVE
This class represents a file property in a property form.
Select file for being added into file lists.
This class represents a hidden form property in a property form.
This class represents a non editable value in a property form.
Class ilObjFile.
Class ilPCListGUI.
insertFromRepository($a_cmd="insert")
Insert file from repository.
setTabs($a_create=true)
Set Tabs.
addFileItem()
Add file item.
insert()
insert new file list form
insertFromWorkspace($a_cmd="insert")
Insert file from personal workspace.
newFileItem()
New file item (called, if there is no file item in an existing)
setItemTabs($a_cmd="")
output tabs
initEditForm($a_mode="edit")
Init edit form.
savePositions()
Save positions of file items.
savePositionsAndClasses()
Save positions of file items and style classes.
ilPCFileListGUI(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
Constructor @access public.
checkStyleSelection()
Checks whether style selection shoudl be available or not.
saveProperties()
save table properties in db and return to page edit screen
edit()
edit properties form
create()
create new file list in dom and update page in db
deleteFileItem()
Delete file items from list.
createFileItem()
insert new file item
& executeCommand()
execute command
insertNewFileItem($a_file_ref_id=0)
insert new file item after another item
TableGUI class for file list.
Class ilPCFileList.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
getCharacteristicsOfCurrentStyle($a_type)
Get characteristics of current style.
displayValidationError()
display validation errors
getCharacteristics()
Get characteristics.
setCharacteristics($a_chars)
Set Characteristics.
This class represents a property form user interface.
This class represents a selection list property in a property form.
This class represents a text property in a property form.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Access handler for personal workspace.
Tree handler for personal workspace.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
global $ilSetting
Definition: privfeed.php:40
$cmd
Definition: sahs_server.php:35
global $ilUser
Definition: imgupload.php:15