28include_once 
"./Services/Object/classes/class.ilObjectGUI.php";
 
   63    public function __construct($a_data, $a_id, $a_call_by_reference)
 
   66        parent::__construct($a_data, $a_id, $a_call_by_reference, 
false);
 
   67        $this->folderSettings = 
new ilSetting(
'fold');
 
   70        require_once 
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
 
   72        $this->disk_quota_obj->read();
 
   85        $ilAccess = 
$DIC[
'ilAccess'];
 
   86        $ilias = 
$DIC[
'ilias'];
 
   89        $lng->loadLanguageModule(
"file");
 
   91        $next_class = $this->ctrl->getNextClass($this);
 
   92        $cmd = $this->ctrl->getCmd();
 
   96        if (!$ilAccess->checkAccess(
'read', 
'', $this->object->getRefId())) {
 
   97            $ilias->raiseError(
$lng->txt(
'no_permission'), $ilias->error_obj->MESSAGE);
 
  100        switch ($next_class) {
 
  101            case 'ilpermissiongui':
 
  102                $this->tabs_gui->setTabActive(
'perm_settings');
 
  103                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
  105                $ret = &$this->ctrl->forwardCommand($perm_gui);
 
  108            case 'ilfmsettingsgui':
 
  109                $this->tabs_gui->setTabActive(
'fm_settings_tab');
 
  110                include_once 
'./Services/WebServices/FileManager/classes/class.ilFMSettingsGUI.php';
 
  112                $this->ctrl->forwardCommand($fmg);
 
  116                if (!$cmd || $cmd == 
'view') {
 
  137        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  139        $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'fm');
 
  141        if ($rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  142            $this->tabs_gui->addTarget(
 
  143                'downloading_settings',
 
  144                $this->ctrl->getLinkTarget($this, self::CMD_EDIT_DOWNLOADING_SETTINGS),
 
  145                array(self::CMD_EDIT_DOWNLOADING_SETTINGS, 
"view")
 
  148            $this->tabs_gui->addTarget(
 
  150                $this->ctrl->getLinkTarget($this, 
"editUploadSettings"),
 
  151                array(
"editUploadSettings", 
"view")
 
  154            $this->tabs_gui->addTarget(
 
  156                $this->ctrl->getLinkTarget($this, 
"editPreviewSettings"),
 
  157                array(
"editPreviewSettings", 
"view")
 
  160            $this->tabs_gui->addTarget(
'webdav', $this->ctrl->getLinkTarget($this, 
"editWebDAVSettings"), array(
"editWebDAVSettings", 
"view"));
 
  162            $this->tabs_gui->addTarget(
 
  164                $this->ctrl->getLinkTargetByClass(
'ilFMSettingsGUI', 
'settings'),
 
  169            $this->tabs_gui->addTarget(
"disk_quota", $this->ctrl->getLinkTarget($this, 
"editDiskQuotaSettings"), array(
"editDiskQuota", 
"view"));
 
  171        if ($rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
 
  172            $this->tabs_gui->addTarget(
"perm_settings", $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"), array(), 
'ilpermissiongui');
 
  186        require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  187        require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  188        require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  189        require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  190        require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  199        $dl_prop = 
new ilCheckboxInputGUI(
$lng->txt(
"download_with_uploaded_filename"), 
"download_with_uploaded_filename");
 
  200        $dl_prop->setValue(
'1');
 
  202        $dl_prop->setChecked($this->object->isDownloadWithUploadedFilename() == 1);
 
  203        $dl_prop->setInfo(
$lng->txt(
'download_with_uploaded_filename_info'));
 
  204        $form->addItem($dl_prop);
 
  208        $dl_prop->setValue(
'1');
 
  210        $dl_prop->setChecked($this->folderSettings->get(
"enable_download_folder", 0) == 1);
 
  211        $dl_prop->setInfo(
$lng->txt(
'enable_download_folder_info'));
 
  212        $form->addItem($dl_prop);
 
  216        $dl_prop->setValue(
'1');
 
  218        $dl_prop->setChecked($this->folderSettings->get(
"enable_multi_download", 0) == 1);
 
  219        $dl_prop->setInfo(
$lng->txt(
'enable_multi_download_info'));
 
  220        $form->addItem($dl_prop);
 
  224        $lng->loadLanguageModule(
"bgtask");
 
  226        $dl_bg->setInfo(
$lng->txt(
"bgtask_setting_info"));
 
  227        $dl_bg->setChecked($this->folderSettings->get(
"bgtask_download", 0));
 
  228        $form->addItem($dl_bg);
 
  231        $dl_bgtc->setInfo(
$lng->txt(
"bgtask_setting_threshold_count_info"));
 
  232        $dl_bgtc->setRequired(
true);
 
  233        $dl_bgtc->setSize(10);
 
  234        $dl_bgtc->setMinValue(1);
 
  235        $dl_bgtc->setSuffix(
$lng->txt(
"files"));
 
  236        $dl_bgtc->setValue($this->folderSettings->get(
"bgtask_download_tcount", 
null));
 
  237        $dl_bg->addSubItem($dl_bgtc);
 
  240        $dl_bgts->setInfo(
$lng->txt(
"bgtask_setting_threshold_size_info"));
 
  241        $dl_bgts->setRequired(
true);
 
  242        $dl_bgts->setSize(10);
 
  243        $dl_bgts->setMinValue(1);
 
  244        $dl_bgts->setSuffix(
$lng->txt(
"lang_size_mb"));
 
  245        $dl_bgts->setValue($this->folderSettings->get(
"bgtask_download_tsize", 
null));
 
  246        $dl_bg->addSubItem($dl_bgts);
 
  249        $dl_bgl->setInfo(
$lng->txt(
"bgtask_setting_limit_info"));
 
  250        $dl_bgl->setRequired(
true);
 
  251        $dl_bgl->setSize(10);
 
  252        $dl_bgl->setMinValue(1);
 
  253        $dl_bgl->setSuffix(
$lng->txt(
"lang_size_mb"));
 
  254        $dl_bgl->setValue($this->folderSettings->get(
"bgtask_download_limit", 
null));
 
  255        $dl_bg->addSubItem($dl_bgl);
 
  259        $tai_prop->setValue($this->object->getInlineFileExtensions());
 
  260        $tai_prop->setInfo(
$lng->txt(
'inline_file_extensions_info'));
 
  261        $tai_prop->setCols(80);
 
  262        $tai_prop->setRows(5);
 
  263        $form->addItem($tai_prop);
 
  266        $form->addCommandButton(
'saveDownloadingSettings', 
$lng->txt(
'save'));
 
  267        $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
  282        $this->tabs_gui->setTabActive(
'downloading_settings');
 
  284        if (!
$DIC->rbac()->system()->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  285            $ilErr->raiseError(
$DIC->language()->txt(
"no_permission"), 
$ilErr->WARNING);
 
  292        $DIC->ui()->mainTemplate()->setContent($a_form->getHTML());
 
  300        $report = 
$DIC->backgroundTasks()->taskFactory()->createTask(SanitationReportJob::class);
 
  301        $ui = 
$DIC->backgroundTasks()->taskFactory()->createTask(DownloadSanitationReportUserInteraction::class, [$report]);
 
  304        $bucket->setUserId(
$DIC->user()->getId());
 
  305        $bucket->setTask($ui);
 
  306        $bucket->setTitle(
"File Sanitiation Report");
 
  307        $bucket->setDescription(
"");
 
  309        $DIC->backgroundTasks()->taskManager()->run($bucket);
 
  310        $this->ctrl->redirect($this, self::CMD_EDIT_DOWNLOADING_SETTINGS);
 
  320        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  322        if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
  324            $DIC->ctrl()->redirect($this, self::CMD_EDIT_DOWNLOADING_SETTINGS);
 
  328        if (
$form->checkInput()) {
 
  331            $this->
object->update();
 
  333            $this->folderSettings->set(
"enable_download_folder", 
$_POST[
"enable_download_folder"] == 1);
 
  334            $this->folderSettings->set(
"enable_multi_download", 
$_POST[
"enable_multi_download"] == 1);
 
  336            $this->folderSettings->set(
"bgtask_download", (
bool) 
$_POST[
"enable_bg"]);
 
  337            if ((
bool) 
$_POST[
"enable_bg"]) {
 
  338                $this->folderSettings->set(
"bgtask_download_limit", (
int) 
$_POST[
"bg_limit"]);
 
  339                $this->folderSettings->set(
"bgtask_download_tcount", (
int) 
$_POST[
"bg_tcount"]);
 
  340                $this->folderSettings->set(
"bgtask_download_tsize", (
int) 
$_POST[
"bg_tsize"]);
 
  343            ilUtil::sendSuccess(
$DIC->language()->txt(
'settings_saved'), 
true);
 
  344            $DIC->ctrl()->redirect($this, self::CMD_EDIT_DOWNLOADING_SETTINGS);
 
  347        $form->setValuesByPost();
 
  358        require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  359        require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  360        require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  361        require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  362        require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  365        $form->setFormAction(
$DIC->ctrl()->getFormAction($this));
 
  370        $cb_prop->setValue(
'1');
 
  371        $cb_prop->setChecked($this->object->isWebdavEnabled());
 
  373        $form->addItem($cb_prop);
 
  376        $rgi_prop->addOption(
new ilRadioOption(
$lng->txt(
'use_default_instructions'), 
'default'));
 
  377        $rgi_prop->addOption(
new ilRadioOption(
$lng->txt(
'use_customized_instructions'), 
'custom'));
 
  378        $rgi_prop->setValue($this->object->isCustomWebfolderInstructionsEnabled() ? 
'custom' : 
'default');
 
  379        $form->addItem($rgi_prop);
 
  381        $tai_prop->setValue($this->object->getCustomWebfolderInstructions());
 
  382        $tai_prop->setInfo(
$lng->txt(
"webfolder_instructions_info"));
 
  383        $tai_prop->setRows(20);
 
  384        $form->addItem($tai_prop);
 
  387        $form->addCommandButton(
'saveWebDAVSettings', 
$lng->txt(
'save'));
 
  388        $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
  400        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  406        $this->tabs_gui->setTabActive(
'webdav');
 
  408        if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  423        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  429        if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
  431            $DIC->ctrl()->redirect($this, self::CMD_EDIT_WEBDAV_SETTINGS);
 
  435        if (
$form->checkInput()) {
 
  436            $this->
object->setWebdavEnabled(
$_POST[
'enable_webdav'] == 
'1');
 
  438            $this->
object->setCustomWebfolderInstructionsEnabled(
$_POST[
'custom_webfolder_instructions_choice'] == 
'custom');
 
  440            $this->
object->update();
 
  441            ilUtil::sendSuccess(
$lng->txt(
'settings_saved'), 
true);
 
  442            $ilCtrl->redirect($this, self::CMD_EDIT_WEBDAV_SETTINGS);
 
  444            $form->setValuesByPost();
 
  455        return $furtherInformation = sprintf(
$lng->txt(
'webdav_additional_information'), $this->getInstallationDocsLink());
 
  470        parent::setTitleAndDescription();
 
  471        $this->tpl->setDescription($this->object->getDescription());
 
  485        $ilTabs = 
$DIC[
'ilTabs'];
 
  487        include_once(
"./Services/COPage/classes/class.ilPageEditorSettings.php");
 
  489        $ilTabs->addSubTabTarget(
"settings", 
$ilCtrl->getLinkTarget($this, 
"editDiskQuotaSettings"), array(
"editDiskQuotaSettings"));
 
  491        require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  493            $ilTabs->addSubTabTarget(
"disk_quota_report", 
$ilCtrl->getLinkTarget($this, 
"viewDiskQuotaReport"), array(
"viewDiskQuotaReport"));
 
  496        $ilTabs->addSubTabTarget(
 
  497            "disk_quota_reminder_mail",
 
  498            $ilCtrl->getLinkTarget($this, 
"editDiskQuotaMailTemplate"),
 
  499            array(
"editDiskQuotaMailTemplate")
 
  502        $ilTabs->setSubTabActive($a_active_subtab);
 
  512        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  519        if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  523        $this->tabs_gui->setTabActive(
'disk_quota');
 
  526        require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  527        require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  528        require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  529        require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  530        require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  532        $lng->loadLanguageModule(
"file");
 
  538        include_once 
"Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
 
  557        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  562        if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
  567        $ilCtrl->redirect($this, 
"editDiskQuotaSettings");
 
  578        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  583        if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  587        $this->tabs_gui->setTabActive(
'disk_quota');
 
  591        require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  597        $this->tpl->addBlockfile(
'ADM_CONTENT', 
'adm_content', 
'tpl.disk_quota_report.html', 
"Services/WebDAV");
 
  600        require_once(
"./Services/WebDAV/classes/class.ilDiskQuotaChecker.php");
 
  602        if ($last_update == 
null) {
 
  604            $this->tpl->setVariable(
'LAST_UPDATE_TEXT', 
$lng->txt(
'disk_quota_report_not_run_yet'));
 
  608            $this->tpl->setVariable(
 
  616        if (
$_SESSION[
'quota_usage_filter'] == 0) {
 
  620        if (
$_SESSION[
'quota_access_filter'] == 0) {
 
  623        $usage_action[1] = 
$lng->txt(
'all_users');
 
  624        $usage_action[2] = 
$lng->txt(
'filter_users_without_disk_usage');
 
  625        $usage_action[3] = 
$lng->txt(
'filter_users_with_disk_usage');
 
  626        $usage_action[4] = 
$lng->txt(
'filter_users_with_exceeded_disk_quota');
 
  627        $access_action[1] = 
$lng->txt(
'all_users');
 
  628        $access_action[2] = 
$lng->txt(
'filter_users_with_access');
 
  629        $access_action[3] = 
$lng->txt(
'filter_users_without_access');
 
  634        $this->tpl->setCurrentBlock(
"filter");
 
  635        $this->tpl->setVariable(
"FILTER_TXT_FILTER", 
$lng->txt(
'filter'));
 
  636        $this->tpl->setVariable(
"SELECT_USAGE_FILTER", $select_usage_filter);
 
  637        $this->tpl->setVariable(
"SELECT_ACCESS_FILTER", $select_access_filter);
 
  638        $this->tpl->setVariable(
"FILTER_ACTION", $this->ctrl->getLinkTarget($this, 
'viewDiskQuotaReport'));
 
  639        $this->tpl->setVariable(
"FILTER_NAME", 
'view');
 
  640        $this->tpl->setVariable(
"FILTER_VALUE", 
$lng->txt(
'apply_filter'));
 
  641        $this->tpl->parseCurrentBlock();
 
  644        $a_tpl = 
new ilTemplate(
'tpl.table.html', 
true, 
true);
 
  645        $a_tpl->addBlockfile(
"TBL_CONTENT", 
"tbl_content", 
"tpl.obj_tbl_rows.html");
 
  648        require_once 
'./Services/Table/classes/class.ilTableGUI.php';
 
  653        $header_vars = array(
'login', 
'firstname', 
'lastname', 
'email', 
'access_until', 
'last_login', 
'disk_quota', 
'disk_usage', 
'last_reminder');
 
  654        $tbl->setHeaderNames(array(
 
  656            $lng->txt(
'firstname'),
 
  657            $lng->txt(
'lastname'),
 
  659            $lng->txt(
'access_until'),
 
  660            $lng->txt(
'last_login'),
 
  661            $lng->txt(
'disk_quota'),
 
  662            $lng->txt(
'disk_usage'),
 
  663            $lng->txt(
'last_reminder'),
 
  665        $tbl->setHeaderVars($header_vars, $this->ctrl->getParameterArray($this, 
'viewDiskQuotaReport', 
false));
 
  667        $tbl->enable(
"numinfo_header");
 
  668        $tbl->setFormName(
"cmd");
 
  669        $tbl->setSelectAllCheckbox(
"id");
 
  673        $tbl->setOrderDirection(
$_GET[
"sort_order"]);
 
  679            $header_vars[
$tbl->getOrderColumn()],
 
  680            $tbl->getOrderDirection()
 
  689        $tbl->setFooter(
"tblfooter", 
$lng->txt(
"previous"), 
$lng->txt(
"next"));
 
  692        $tbl->setTemplate($a_tpl);
 
  696        for (
$i = 
$tbl->getOffset(); 
$i < count(
$data) && $i < $tbl->getOffset() + 
$tbl->getLimit(); 
$i++) {
 
  700            foreach ($header_vars as 
$key) {
 
  704                        $this->ctrl->setParameterByClass(
"ilobjusergui", 
"ref_id", 
"7");
 
  705                        $this->ctrl->setParameterByClass(
"ilobjusergui", 
"obj_id", 
$row[
"usr_id"]);
 
  706                        $link = $this->ctrl->getLinkTargetByClass(
"ilobjusergui", 
"view");
 
  707                        $tbl_content_cell = 
'<a href="' . $link . 
'">' . htmlspecialchars(
$row[
$key]) . 
'</a>';
 
  710                        if (
$row[
'role_id'] == SYSTEM_ROLE_ID) {
 
  711                            $tbl_content_cell = 
"<span class=\"smallgreen\">" . 
$lng->txt(
'access_unlimited') . 
'</span>';
 
  717                        if (
$row[
'last_update'] == 
null) {
 
  718                            $tbl_content_cell = 
$lng->txt(
'unknown');
 
  720                            if (
$row[
'disk_usage'] > 
$row[
'disk_quota']) {
 
  728                        if (!
$row[
'active']) {
 
  729                            $tbl_content_cell = 
"<span class=\"smallred\">" . 
$lng->txt(
'inactive') . 
'</span>';
 
  731                            if (
$row[
'time_limit_unlimited']) {
 
  732                                $tbl_content_cell = 
"<span class=\"smallgreen\">" . 
$lng->txt(
'access_unlimited') . 
'</span>';
 
  734                                if (
$row[
'expired']) {
 
  735                                    $tbl_content_cell = 
"<span class=\"smallred\">" . 
$lng->txt(
'access_expired') . 
'</span>';
 
  743                    case 'last_reminder':
 
  745                            $tbl_content_cell = 
$lng->txt(
'no_date');
 
  751                        $tbl_content_cell = htmlspecialchars(
$row[
$key]);
 
  754                $tbl->getTemplateObject()->setCurrentBlock(
"tbl_content_cell");
 
  755                $tbl->getTemplateObject()->setVariable(
"TBL_CONTENT_CELL", $tbl_content_cell);
 
  757                $tbl->getTemplateObject()->parseCurrentBlock();
 
  760            $tbl->getTemplateObject()->setCurrentBlock(
"tbl_content_row");
 
  762            $tbl->getTemplateObject()->setVariable(
"ROWCOLOR", $rowcolor);
 
  763            $tbl->getTemplateObject()->parseCurrentBlock();
 
  770        $this->tpl->setVariable(
"USER_TABLE", $a_tpl->get());
 
  779        $lng->loadLanguageModule(
"meta");
 
  780        $lng->loadLanguageModule(
"mail");
 
  782        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  784        $form->setFormAction($this->ctrl->getFormAction($this));
 
  786        $form->setTitle(
$lng->txt(
"disk_quota_reminder_mail"));
 
  787        $form->setDescription(
$lng->txt(
"disk_quota_reminder_mail_desc"));
 
  789        foreach (
$lng->getInstalledLanguages() as $lang_key) {
 
  790            $lang_def = ($lang_key == 
$lng->getDefaultLanguage()) ? 
" (" . 
$lng->txt(
"default") . 
")" : 
"";
 
  793            $sec->setTitle(
$lng->txt(
"meta_l_" . $lang_key) . $lang_def);
 
  794            $form->addItem($sec);
 
  797            $subj->setRequired(
true);
 
  798            $form->addItem($subj);
 
  800            $sal_g = 
new ilTextInputGUI(
$lng->txt(
"mail_salutation_general"), 
"sal_g_" . $lang_key);
 
  801            $sal_g->setRequired(
true);
 
  802            $form->addItem($sal_g);
 
  804            $sal_f = 
new ilTextInputGUI(
$lng->txt(
"mail_salutation_female"), 
"sal_f_" . $lang_key);
 
  805            $sal_f->setRequired(
true);
 
  806            $form->addItem($sal_f);
 
  809            $sal_m->setRequired(
true);
 
  810            $form->addItem($sal_m);
 
  813            $body->setRequired(
true);
 
  815            $form->addItem($body);
 
  819            $subj->setValue($amail[
"subject"]);
 
  820            $sal_g->setValue($amail[
"sal_g"]);
 
  821            $sal_f->setValue($amail[
"sal_f"]);
 
  822            $sal_m->setValue($amail[
"sal_m"]);
 
  823            $body->setValue($amail[
"body"]);
 
  826        $form->addCommandButton(
"saveDiskQuotaMailTemplate", 
$lng->txt(
"save"));
 
  827        $form->addCommandButton(
"editDiskQuotaSettings", 
$lng->txt(
"cancel"));
 
  839        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  843        if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  847        $this->tabs_gui->setTabActive(
"disk_quota");
 
  854        $tpl = 
new ilTemplate(
"tpl.disk_quota_reminder_mail.html", 
true, 
true, 
"Services/WebDAV");
 
  855        $tpl->setVariable(
"TXT_USE_PLACEHOLDERS", 
$lng->txt(
"mail_nacc_use_placeholder"));
 
  856        $tpl->setVariable(
"TXT_MAIL_SALUTATION", 
$lng->txt(
"mail_nacc_salutation"));
 
  857        $tpl->setVariable(
"TXT_FIRST_NAME", 
$lng->txt(
"firstname"));
 
  858        $tpl->setVariable(
"TXT_LAST_NAME", 
$lng->txt(
"lastname"));
 
  859        $tpl->setVariable(
"TXT_EMAIL", 
$lng->txt(
"email"));
 
  860        $tpl->setVariable(
"TXT_LOGIN", 
$lng->txt(
"mail_nacc_login"));
 
  861        $tpl->setVariable(
"TXT_DISK_QUOTA", 
$lng->txt(
"disk_quota"));
 
  862        $tpl->setVariable(
"TXT_DISK_USAGE", 
$lng->txt(
"disk_usage"));
 
  863        $tpl->setVariable(
"TXT_DISK_USAGE_DETAILS", 
$lng->txt(
"disk_usage_details"));
 
  864        $tpl->setVariable(
"TXT_ADMIN_MAIL", 
$lng->txt(
"mail_nacc_admin_mail"));
 
  865        $tpl->setVariable(
"TXT_ILIAS_URL", 
$lng->txt(
"mail_nacc_ilias_url"));
 
  866        $tpl->setVariable(
"TXT_CLIENT_NAME", 
$lng->txt(
"mail_nacc_client_name"));
 
  868        include_once 
"Services/UIComponent/Panel/classes/class.ilPanelGUI.php";
 
  871        $legend->setHeading(
$lng->txt(
"mail_nacc_use_placeholder"));
 
  874        $this->tpl->setContent($a_form->getHTML() . 
$legend->getHTML());
 
  884        if (
$form->checkInput()) {
 
  885            foreach (
$lng->getInstalledLanguages() as $lang_key) {
 
  886                $this->disk_quota_obj->_writeReminderMailTemplate(
 
  888                    $form->getInput(
"subject_" . $lang_key),
 
  889                    $form->getInput(
"sal_g_" . $lang_key),
 
  890                    $form->getInput(
"sal_f_" . $lang_key),
 
  891                    $form->getInput(
"sal_m_" . $lang_key),
 
  892                    $form->getInput(
"body_" . $lang_key)
 
  896            ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
  897            $this->ctrl->redirect($this, 
"editDiskQuotaMailTemplate");
 
  900        $form->setValuesByPost();
 
  914        require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  919        require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
  923        $chk_enabled->setValue(
'1');
 
  925        $chk_enabled->setInfo(
$lng->txt(
'enable_dnd_upload_info'));
 
  926        $form->addItem($chk_enabled);
 
  929        $chk_repo = 
new ilCheckboxInputGUI(
$lng->txt(
"enable_repository_dnd_upload"), 
"enable_repository_dnd_upload");
 
  930        $chk_repo->setValue(
'1');
 
  932        $chk_repo->setInfo(
$lng->txt(
'enable_repository_dnd_upload_info'));
 
  933        $chk_enabled->addSubItem($chk_repo);
 
  937        $num_prop->setDecimals(0);
 
  938        $num_prop->setMinValue(1);
 
  939        $num_prop->setMinvalueShouldBeGreater(
false);
 
  941        $num_prop->setMaxvalueShouldBeLess(
false);
 
  942        $num_prop->setMaxLength(5);
 
  943        $num_prop->setSize(10);
 
  945        $num_prop->setInfo(
$lng->txt(
'concurrent_uploads_info'));
 
  946        $chk_enabled->addSubItem($num_prop);
 
  948        include_once(
"./Services/Utilities/classes/class.ilFileUtils.php");
 
  953        $ne->setInfo($this->lng->txt(
"file_suffix_default_white_info"));
 
  957        $ta = 
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_black"), 
"suffix_repl_additional");
 
  958        $ta->setInfo($this->lng->txt(
"file_suffix_custom_black_info"));
 
  963        $ta = 
new ilTextAreaInputGUI($this->lng->txt(
"file_suffix_custom_white"), 
"suffix_custom_white_list");
 
  964        $ta->setInfo($this->lng->txt(
"file_suffix_custom_white_info"));
 
  971        $ne->setInfo($this->lng->txt(
"file_suffix_overall_white_info"));
 
  975        $form->addCommandButton(
'saveUploadSettings', 
$lng->txt(
'save'));
 
  976        $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
  988        $rbacsystem = 
$DIC[
'rbacsystem'];
 
  994        $this->tabs_gui->setTabActive(
'upload_settings');
 
  996        if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
 1003        require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
 1010        $val[
"suffix_repl_additional"] = 
$ilSetting->get(
"suffix_repl_additional");
 
 1011        $val[
"suffix_custom_white_list"] = 
$ilSetting->get(
"suffix_custom_white_list");
 
 1012        $form->setValuesByArray($val);
 
 1025        $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1032        if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1038        if (
$form->checkInput()) {
 
 1039            require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
 1045            $ilSetting->set(
"suffix_repl_additional", 
$_POST[
"suffix_repl_additional"]);
 
 1046            $ilSetting->set(
"suffix_custom_white_list", 
$_POST[
"suffix_custom_white_list"]);
 
 1048            ilUtil::sendSuccess(
$lng->txt(
'settings_saved'), 
true);
 
 1049            $ilCtrl->redirect($this, 
"editUploadSettings");
 
 1051            $form->setValuesByPost();
 
 1066        require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1071        require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
 1075        $chk_prop->setValue(
'1');
 
 1077        $chk_prop->setInfo(
$lng->txt(
'enable_preview_info'));
 
 1078        $form->addItem($chk_prop);
 
 1080        $num_prop = 
new ilNumberInputGUI(
$lng->txt(
"max_previews_per_object"), 
"max_previews_per_object");
 
 1081        $num_prop->setDecimals(0);
 
 1082        $num_prop->setMinValue(1);
 
 1083        $num_prop->setMinvalueShouldBeGreater(
false);
 
 1085        $num_prop->setMaxvalueShouldBeLess(
false);
 
 1086        $num_prop->setMaxLength(5);
 
 1087        $num_prop->setSize(10);
 
 1089        $num_prop->setInfo(
$lng->txt(
'max_previews_per_object_info'));
 
 1090        $form->addItem($num_prop);
 
 1093        $form->addCommandButton(
'savePreviewSettings', 
$lng->txt(
'save'));
 
 1094        $form->addCommandButton(
'view', 
$lng->txt(
'cancel'));
 
 1106        $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1111        $this->tabs_gui->setTabActive(
'preview_settings');
 
 1113        if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
 1118        include_once(
"./Services/Preview/classes/class.ilGhostscriptRenderer.php");
 
 1127        require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
 1132        $form->setValuesByArray($val);
 
 1137        require_once(
"Services/Preview/classes/class.ilRendererFactory.php");
 
 1138        require_once(
"Services/Preview/classes/class.ilRendererTableGUI.php");
 
 1143        $table->setMaxCount(
sizeof($renderers));
 
 1144        $table->setData($renderers);
 
 1159        $rbacsystem = 
$DIC[
'rbacsystem'];
 
 1165        $this->tabs_gui->setTabActive(
'preview_settings');
 
 1167        if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1173        if (
$form->checkInput()) {
 
 1174            require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
 1178            ilUtil::sendSuccess(
$lng->txt(
'settings_saved'), 
true);
 
 1179            $ilCtrl->redirect($this, 
"editPreviewSettings");
 
 1181            $form->setValuesByPost();
 
 1192        switch ($a_form_id) {
 
 1195                $fields = array(
'file_suffix_repl' => 
$ilSetting->get(
"suffix_repl_additional"));
 
 1197                return array(array(
"editUploadSettings", $fields));
 
An exception for terminatinating execution or to throw for unit testing.
Class DownloadSanitationReportUserInteraction.
Class SanitationReportJob.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
static _isActive()
Static getter.
static _lookupDiskUsageReportLastUpdate()
Returns the SQL datetime of the last update of the disk usage report.
static _fetchDiskQuotaReport($a_usage_filter=3, $a_access_filter=1, $a_order_column='disk_usage', $a_order_by='desc')
Reads disk quota/disk usage report of the user accounts.
const CONCURRENT_UPLOADS_MAX
static setRepositoryDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload in the repository is enabled.
static isRepositoryDragAndDropUploadEnabled()
Gets whether drag and drop file upload in the repository is enabled.
static isDragAndDropUploadEnabled()
Gets whether drag and drop file upload is enabled.
static setConcurrentUploads($newValue)
Sets the number of files that can be uploaded at the same time.
static setDragAndDropUploadEnabled($newValue)
Sets whether drag and drop file upload is enabled.
static getConcurrentUploads()
Gets the number of files that can be uploaded at the same time.
static getDefaultValidExtensionWhiteList()
Valid extensions.
static getValidExtensions()
Valid extensions.
static isGhostscriptInstalled()
Determines whether Ghostscript is installed.
This class represents a non editable value in a property form.
static _lookupReminderMailTemplate($a_lang)
Looks up the mail template for the specified language.
const INSTALL_README_PATH
addDiskQuotaSubtabs($a_active_subtab)
Add disk quota subtabs.
setTitleAndDescription()
called by prepare output
initPreviewSettingsForm()
Initializes the preview settings form.
getInstallationDocsLink()
initUploadSettingsForm()
Initializes the upload settings form.
addToExternalSettingsForm($a_form_id)
editDownloadingSettings(ilPropertyFormGUI $a_form=null)
Edit settings.
saveWebDAVSettings()
Save settings.
getAdditionalWebDAVInformation()
saveDiskQuotaSettings()
Save disk quota settings.
saveUploadSettings()
Save upload settings.
const CMD_EDIT_DOWNLOADING_SETTINGS
const CMD_EDIT_WEBDAV_SETTINGS
executeCommand()
Execute command.
editWebDAVSettings()
Edit settings.
initDownloadingSettingsForm()
Edit settings.
editUploadSettings()
Edit upload settings.
editDiskQuotaSettings()
Edit disk quota settings.
viewDiskQuotaReport()
The disk quota report list shows user accounts, their disk quota and their disk usage,...
saveDownloadingSettings()
Save settings.
editPreviewSettings()
Edit preview settings.
initDiskQuotaMailTemplateForm()
saveDiskQuotaMailTemplate()
savePreviewSettings()
Save preview settings.
editDiskQuotaMailTemplate(ilPropertyFormGUI $a_form=null)
Edit disk quota settings.
__construct($a_data, $a_id, $a_call_by_reference)
Constructor.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
const HEADING_STYLE_BLOCK
static getInstance()
Get instance.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static isPreviewEnabled()
Gets whether the preview functionality is enabled.
static setMaximumPreviews($a_value)
Sets the maximum number of preview pictures per object.
static getMaximumPreviews()
Gets the maximum number of preview pictures per object.
static setPreviewEnabled($a_value)
Sets whether the preview functionality is enabled.
This class represents an option in a radio group.
static getRenderers()
Gets an array containing all available preview renderers.
Displays an overview of all loaded preview renderers.
special template class to simplify handling of ITX/PEAR
This class represents a text area 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 switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows)
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
if(empty($password)) $table
if(isset($_POST['submit'])) $form