37 include_once 
"./Services/Object/classes/class.ilObjectGUI.php";
 
   52                 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference, 
false);
 
   53                 $this->folderSettings = 
new ilSetting(
'fold');
 
   56                 require_once 
'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
 
   58                 $this->disk_quota_obj->read();
 
   70                 $next_class = $this->ctrl->getNextClass($this);
 
   71                 $cmd = $this->ctrl->getCmd();
 
   75                 if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
 
   77                         $ilias->raiseError($lng->txt(
'no_permission'),$ilias->error_obj->MESSAGE);
 
   82                         case 'ilpermissiongui':
 
   83                                 $this->tabs_gui->setTabActive(
'perm_settings');
 
   84                                 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   86                                 $ret =& $this->ctrl->forwardCommand($perm_gui);
 
   89                         case 'ilfmsettingsgui':
 
   90                                 $this->tabs_gui->setTabActive(
'fm_settings_tab');
 
   91                                 include_once 
'./Services/WebServices/FileManager/classes/class.ilFMSettingsGUI.php';
 
   93                                 $this->ctrl->forwardCommand($fmg);
 
   99                                         $cmd = 
"editDownloadingSettings";
 
  116                 global $rbacsystem, $ilAccess;
 
  118                 $GLOBALS[
'lng']->loadLanguageModule(
'fm');
 
  120                 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  122                         $this->tabs_gui->addTarget(
'downloading_settings',
 
  123                                 $this->ctrl->getLinkTarget($this, 
"editDownloadingSettings"),
 
  124                                 array(
"editDownloadingSettings", 
"view"));
 
  126                         $this->tabs_gui->addTarget(
'upload_settings',
 
  127                                 $this->ctrl->getLinkTarget($this, 
"editUploadSettings"),
 
  128                                 array(
"editUploadSettings", 
"view"));
 
  130                         $this->tabs_gui->addTarget(
'preview_settings',
 
  131                                 $this->ctrl->getLinkTarget($this, 
"editPreviewSettings"),
 
  132                                 array(
"editPreviewSettings", 
"view"));
 
  134                         $this->tabs_gui->addTarget(
'webdav',
 
  135                                 $this->ctrl->getLinkTarget($this, 
"editWebDAVSettings"),
 
  136                                 array(
"editWebDAVSettings", 
"view"));
 
  138                         $this->tabs_gui->addTarget(
 
  140                                 $this->ctrl->getLinkTargetByClass(
'ilFMSettingsGUI',
'settings'),
 
  145                         $this->tabs_gui->addTarget(
"disk_quota",
 
  146                                 $this->ctrl->getLinkTarget($this, 
"editDiskQuotaSettings"),
 
  147                                 array(
"editDiskQuota", 
"view"));
 
  149                 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
 
  151                         $this->tabs_gui->addTarget(
"perm_settings",
 
  152                                 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
 
  153                                 array(),
'ilpermissiongui');
 
  162                 global $rbacsystem, 
$ilErr, $ilTabs;
 
  164                 $this->tabs_gui->setTabActive(
'downloading_settings');
 
  166                 if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  168                         $ilErr->raiseError(
$lng->txt(
"no_permission"),$ilErr->WARNING);
 
  173                 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  174                 require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  175                 require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  176                 require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  177                 require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  180                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  181                 $form->setTitle($lng->txt(
"settings"));
 
  186                 $dl_prop = 
new ilCheckboxInputGUI($lng->txt(
"download_with_uploaded_filename"), 
"download_with_uploaded_filename");
 
  189                 $dl_prop->setChecked($this->object->isDownloadWithUploadedFilename() == 1);
 
  190                 $dl_prop->setInfo($lng->txt(
'download_with_uploaded_filename_info'));
 
  191                 $form->addItem($dl_prop);
 
  194                 $dl_prop = 
new ilCheckboxInputGUI($lng->txt(
"enable_download_folder"), 
"enable_download_folder");
 
  197                 $dl_prop->setChecked($this->folderSettings->get(
"enable_download_folder", 0) == 1);
 
  198                 $dl_prop->setInfo($lng->txt(
'enable_download_folder_info'));
 
  199                 $form->addItem($dl_prop);
 
  202                 $dl_prop = 
new ilCheckboxInputGUI($lng->txt(
"enable_multi_download"), 
"enable_multi_download");
 
  205                 $dl_prop->setChecked($this->folderSettings->get(
"enable_multi_download", 0) == 1);
 
  206                 $dl_prop->setInfo($lng->txt(
'enable_multi_download_info'));
 
  207                 $form->addItem($dl_prop);
 
  210                 $tai_prop = 
new ilTextAreaInputGUI($lng->txt(
'inline_file_extensions'), 
'inline_file_extensions');
 
  211                 $tai_prop->
setValue($this->object->getInlineFileExtensions());
 
  212                 $tai_prop->setInfo($lng->txt(
'inline_file_extensions_info'));
 
  213                 $tai_prop->setCols(80);
 
  214                 $tai_prop->setRows(5);
 
  215                 $form->addItem($tai_prop);
 
  219                 $form->addCommandButton(
'saveDownloadingSettings', $lng->txt(
'save'));
 
  220                 $form->addCommandButton(
'view', $lng->txt(
'cancel'));
 
  222                 $tpl->setContent($form->getHTML());
 
  232                 if (! $rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  234                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  239                 $this->
object->update();
 
  241                 $this->folderSettings->set(
"enable_download_folder", 
$_POST[
"enable_download_folder"] == 1);
 
  242                 $this->folderSettings->set(
"enable_multi_download", 
$_POST[
"enable_multi_download"] == 1);
 
  245                 $ilCtrl->redirect($this, 
"editDownloadingSettings");
 
  253                 global $rbacsystem, 
$ilErr, $ilTabs;
 
  257                 $this->tabs_gui->setTabActive(
'webdav');
 
  259                 if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  261                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  264                 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  265                 require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  266                 require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  267                 require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  268                 require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  269                 require_once(
"./Services/WebDAV/classes/class.ilDAVServer.php");
 
  272                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  273                 $form->setTitle($lng->txt(
"settings"));
 
  277                 $isPearAuthHTTPInstalled = @include_once(
"Auth/HTTP.php");
 
  280                 $cb_prop->setChecked($this->object->isWebdavEnabled() && $isPearAuthHTTPInstalled);
 
  281                 $cb_prop->setDisabled(! $isPearAuthHTTPInstalled);
 
  282                 $cb_prop->setInfo($isPearAuthHTTPInstalled ?
 
  283                         sprintf($lng->txt(
'enable_webdav_info'),$ilDAVServer->getMountURI($tree->getRootId(),0,null,null,
true)) :
 
  284                         $lng->txt(
'webdav_pear_auth_http_needed')
 
  286                 $form->addItem($cb_prop);
 
  289                 if ($isPearAuthHTTPInstalled)
 
  291                         $rgi_prop = 
new ilRadioGroupInputGUI($lng->txt(
'webfolder_instructions'), 
'custom_webfolder_instructions_choice');
 
  293                         $rgi_prop->addOption(
new ilRadioOption($lng->txt(
'use_customized_instructions'), 
'custom'));
 
  294                         $rgi_prop->setValue($this->object->isCustomWebfolderInstructionsEnabled() ? 
'custom':
'default');
 
  295                         $rgi_prop->setDisabled(! $isPearAuthHTTPInstalled);
 
  296                         $form->addItem($rgi_prop);
 
  298                         $tai_prop->setValue($this->object->getCustomWebfolderInstructions());
 
  299                         $tai_prop->setInfo($lng->txt(
"webfolder_instructions_info"));
 
  300                         $tai_prop->setCols(80);
 
  301                         $tai_prop->setRows(20);
 
  302                         $tai_prop->setDisabled(! $isPearAuthHTTPInstalled);
 
  303                         $form->addItem($tai_prop);
 
  307                 $form->addCommandButton(
'saveWebDAVSettings', $lng->txt(
'save'));
 
  308                 $form->addCommandButton(
'view', $lng->txt(
'cancel'));
 
  310                 $tpl->setContent($form->getHTML());
 
  320                 if (! $rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  322                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  325                 $this->
object->setWebdavEnabled(
$_POST[
'enable_webdav'] == 
'1');
 
  327                 $this->
object->setCustomWebfolderInstructionsEnabled(
$_POST[
'custom_webfolder_instructions_choice']==
'custom');
 
  329                 $this->
object->update();
 
  332                 $ilCtrl->redirect($this, 
"editWebDAVSettings");
 
  341                 $this->tpl->setDescription($this->object->getDescription());
 
  353                 include_once(
"./Services/COPage/classes/class.ilPageEditorSettings.php");
 
  355                 $ilTabs->addSubTabTarget(
"settings",
 
  356                          $ilCtrl->getLinkTarget($this, 
"editDiskQuotaSettings"),
 
  357                          array(
"editDiskQuotaSettings"));
 
  359                 require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  362                         $ilTabs->addSubTabTarget(
"disk_quota_report",
 
  363                                  $ilCtrl->getLinkTarget($this, 
"viewDiskQuotaReport"),
 
  364                                  array(
"viewDiskQuotaReport"));
 
  367                 $ilTabs->addSubTabTarget(
"disk_quota_reminder_mail",
 
  368                          $ilCtrl->getLinkTarget($this, 
"editDiskQuotaMailTemplate"),
 
  369                          array(
"editDiskQuotaMailTemplate"));
 
  371                 $ilTabs->setSubTabActive($a_active_subtab);
 
  383                 if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  385                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  388                 $this->tabs_gui->setTabActive(
'disk_quota');
 
  391                 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  392                 require_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
 
  393                 require_once(
"./Services/Form/classes/class.ilRadioGroupInputGUI.php");
 
  394                 require_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
  395                 require_once(
"./Services/Form/classes/class.ilTextAreaInputGUI.php");
 
  396                 require_once(
"./Services/WebDAV/classes/class.ilDAVServer.php");
 
  398                 $lng->loadLanguageModule(
"file");
 
  401                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  402                 $form->setTitle($lng->txt(
"settings"));
 
  404                 include_once 
"Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
 
  417                 $tpl->setContent($form->getHTML());
 
  427                 if (! $rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  429                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  433                 $ilCtrl->redirect($this, 
"editDiskQuotaSettings");
 
  444                 if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  446                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  449                 $this->tabs_gui->setTabActive(
'disk_quota');
 
  453                 require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  460                 $this->tpl->addBlockfile(
'ADM_CONTENT',
'adm_content',
'tpl.disk_quota_report.html',
 
  464                 require_once(
"./Services/WebDAV/classes/class.ilDiskQuotaChecker.php");
 
  466                 if ($last_update == null)
 
  469                         $this->tpl->setVariable(
'LAST_UPDATE_TEXT',$lng->txt(
'disk_quota_report_not_run_yet'));
 
  474                         $this->tpl->setVariable(
'LAST_UPDATE_TEXT',$lng->txt(
'last_update').
': '.
ilFormat::formatDate($last_update,
'datetime',
true));
 
  479                 if (
$_SESSION[
'quota_usage_filter'] == 0)
 
  484                 if (
$_SESSION[
'quota_access_filter'] == 0)
 
  488                 $usage_action[1] = $lng->txt(
'all_users');
 
  489                 $usage_action[2] = $lng->txt(
'filter_users_without_disk_usage');
 
  490                 $usage_action[3] = $lng->txt(
'filter_users_with_disk_usage');
 
  491                 $usage_action[4] = $lng->txt(
'filter_users_with_exceeded_disk_quota');
 
  492                 $access_action[1] = $lng->txt(
'all_users');
 
  493                 $access_action[2] = $lng->txt(
'filter_users_with_access');
 
  494                 $access_action[3] = $lng->txt(
'filter_users_without_access');
 
  499                 $this->tpl->setCurrentBlock(
"filter");
 
  500                 $this->tpl->setVariable(
"FILTER_TXT_FILTER",$lng->txt(
'filter'));
 
  501                 $this->tpl->setVariable(
"SELECT_USAGE_FILTER",$select_usage_filter);
 
  502                 $this->tpl->setVariable(
"SELECT_ACCESS_FILTER",$select_access_filter);
 
  503                 $this->tpl->setVariable(
"FILTER_ACTION",$this->ctrl->getLinkTarget($this, 
'viewDiskQuotaReport'));
 
  504                 $this->tpl->setVariable(
"FILTER_NAME",
'view');
 
  505                 $this->tpl->setVariable(
"FILTER_VALUE",$lng->txt(
'apply_filter'));
 
  506                 $this->tpl->parseCurrentBlock();
 
  509                 $a_tpl = 
new ilTemplate(
'tpl.table.html',
true,
true);
 
  510                 $a_tpl->addBlockfile(
"TBL_CONTENT", 
"tbl_content", 
"tpl.obj_tbl_rows.html");
 
  513                 require_once 
'./Services/Table/classes/class.ilTableGUI.php';
 
  517                 $header_vars = array(
'login',
'firstname',
'lastname',
'email',
'access_until',
'last_login',
'disk_quota',
'disk_usage', 
'last_reminder');
 
  518                 $tbl->setHeaderNames(
 
  521                                 $lng->txt(
'firstname'),
 
  522                                 $lng->txt(
'lastname'),
 
  524                                 $lng->txt(
'access_until'),
 
  525                                 $lng->txt(
'last_login'),
 
  526                                 $lng->txt(
'disk_quota'),
 
  527                                 $lng->txt(
'disk_usage'),
 
  528                                 $lng->txt(
'last_reminder')
 
  533                         $this->ctrl->getParameterArray($this,
'viewDiskQuotaReport',
false)
 
  536                 $tbl->enable(
"numinfo_header");
 
  537                 $tbl->setFormName(
"cmd");
 
  538                 $tbl->setSelectAllCheckbox(
"id");
 
  541                 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
 
  542                 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
 
  548                         $header_vars[$tbl->getOrderColumn()], $tbl->getOrderDirection());
 
  551                 $tbl->setLimit(
$_GET[
"limit"]);
 
  552                 $tbl->setOffset(
$_GET[
"offset"]);
 
  553                 $tbl->setMaxCount(count(
$data));
 
  556                 $tbl->setFooter(
"tblfooter",$lng->txt(
"previous"),$lng->txt(
"next"));
 
  559                 $tbl->setTemplate($a_tpl);
 
  563                 for ($i = $tbl->getOffset(); $i < count(
$data) && $i < $tbl->getOffset() + $tbl->getLimit(); $i++)
 
  568                         foreach ($header_vars as $key)
 
  574                                                 $this->ctrl->setParameterByClass(
"ilobjusergui", 
"ref_id", 
"7");
 
  575                                                 $this->ctrl->setParameterByClass(
"ilobjusergui", 
"obj_id", 
$row[
"usr_id"]);
 
  576                                                 $link = $this->ctrl->getLinkTargetByClass(
"ilobjusergui", 
"view");
 
  577                                                 $tbl_content_cell = 
'<a href="'.$link.
'">'.htmlspecialchars(
$row[$key]).
'</a>';
 
  580                                                 if (
$row[
'role_id'] == SYSTEM_ROLE_ID)
 
  582                                                         $tbl_content_cell = 
"<span class=\"smallgreen\">".$lng->txt(
'access_unlimited').
'</span>';
 
  590                                                 if (
$row[
'last_update'] == null)
 
  592                                                         $tbl_content_cell = $lng->txt(
'unknown');
 
  594                                                 else if (
$row[
'disk_usage'] > 
$row[
'disk_quota'])
 
  596                                                  $tbl_content_cell = 
"<span class=\"smallred\">".ilFormat::formatSize(
$row[$key],
'short').
'</span>';
 
  603                                         case 'access_until' :
 
  604                                                 if (! 
$row[
'active'])
 
  606                                                          $tbl_content_cell = 
"<span class=\"smallred\">".$lng->txt(
'inactive').
'</span>';
 
  608                                                 else if (
$row[
'time_limit_unlimited'])
 
  610                                                         $tbl_content_cell = 
"<span class=\"smallgreen\">".$lng->txt(
'access_unlimited').
'</span>';
 
  612                                                 else if (
$row[
'expired'])
 
  614                                                          $tbl_content_cell = 
"<span class=\"smallred\">".$lng->txt(
'access_expired').
'</span>';
 
  622                                         case 'last_reminder' :
 
  623                                                 if (
$row[$key] == null)
 
  625                                                         $tbl_content_cell = $lng->txt(
'no_date');
 
  633                                                  $tbl_content_cell = htmlspecialchars(
$row[$key]);
 
  644                                 $tbl->tpl->setCurrentBlock(
"tbl_content_cell");
 
  645                                 $tbl->tpl->setVariable(
"TBL_CONTENT_CELL",$tbl_content_cell);
 
  647                                 $tbl->tpl->parseCurrentBlock();
 
  650                         $tbl->tpl->setCurrentBlock(
"tbl_content_row");
 
  652                         $tbl->tpl->setVariable(
"ROWCOLOR", $rowcolor);
 
  653                         $tbl->tpl->parseCurrentBlock();
 
  660                 $this->tpl->setVariable(
"USER_TABLE",$a_tpl->get());
 
  670                 if (! $rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
  672                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  675                 $this->tabs_gui->setTabActive(
'disk_quota');
 
  678                 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.disk_quota_reminder_mail.html',
 
  680                 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
  683                 $lng->loadLanguageModule(
"meta");
 
  684                 $lng->loadLanguageModule(
"mail");
 
  685                 $this->tpl->setVariable(
"TXT_NEW_USER_ACCOUNT_MAIL", $lng->txt(
"disk_quota_reminder_mail"));
 
  686                 $this->tpl->setVariable(
"TXT_NEW_USER_ACCOUNT_MAIL_DESC", $lng->txt(
"disk_quota_reminder_mail_desc"));
 
  689                 $this->tpl->setVariable(
"TXT_USE_PLACEHOLDERS", $lng->txt(
"mail_nacc_use_placeholder"));
 
  690                 $this->tpl->setVariable(
"TXT_MAIL_SALUTATION", $lng->txt(
"mail_nacc_salutation"));
 
  691                 $this->tpl->setVariable(
"TXT_FIRST_NAME", $lng->txt(
"firstname"));
 
  692                 $this->tpl->setVariable(
"TXT_LAST_NAME", $lng->txt(
"lastname"));
 
  693                 $this->tpl->setVariable(
"TXT_EMAIL", $lng->txt(
"email"));
 
  694                 $this->tpl->setVariable(
"TXT_LOGIN", $lng->txt(
"mail_nacc_login"));
 
  695                 $this->tpl->setVariable(
"TXT_DISK_QUOTA", $lng->txt(
"disk_quota"));
 
  696                 $this->tpl->setVariable(
"TXT_DISK_USAGE", $lng->txt(
"disk_usage"));
 
  697                 $this->tpl->setVariable(
"TXT_DISK_USAGE_DETAILS", $lng->txt(
"disk_usage_details"));
 
  698                 $this->tpl->setVariable(
"TXT_ADMIN_MAIL", $lng->txt(
"mail_nacc_admin_mail"));
 
  699                 $this->tpl->setVariable(
"TXT_ILIAS_URL", $lng->txt(
"mail_nacc_ilias_url"));
 
  700                 $this->tpl->setVariable(
"TXT_CLIENT_NAME", $lng->txt(
"mail_nacc_client_name"));
 
  702                 $langs = $lng->getInstalledLanguages();
 
  703                 foreach($langs as $lang_key)
 
  705                         $amail = $this->disk_quota_obj->_lookupReminderMailTemplate($lang_key);
 
  706                         $this->tpl->setCurrentBlock(
"mail_block");
 
  708                         if ($lang_key == $lng->getDefaultLanguage())
 
  710                                 $add = 
" (".$lng->txt(
"default").
")";
 
  712                         $this->tpl->setVariable(
"TXT_LANGUAGE",
 
  713                                 $lng->txt(
"meta_l_".$lang_key).$add);
 
  714                         $this->tpl->setVariable(
"TXT_BODY", $lng->txt(
"message_content"));
 
  715                         $this->tpl->setVariable(
"TA_BODY", 
"body_".$lang_key);
 
  716                         $this->tpl->setVariable(
"VAL_BODY",
 
  718                         $this->tpl->setVariable(
"TXT_SUBJECT", $lng->txt(
"subject"));
 
  719                         $this->tpl->setVariable(
"INPUT_SUBJECT", 
"subject_".$lang_key);
 
  720                         $this->tpl->setVariable(
"VAL_SUBJECT",
 
  722                         $this->tpl->setVariable(
"TXT_SAL_G", $lng->txt(
"mail_salutation_general"));
 
  723                         $this->tpl->setVariable(
"INPUT_SAL_G", 
"sal_g_".$lang_key);
 
  724                         $this->tpl->setVariable(
"VAL_SAL_G",
 
  726                         $this->tpl->setVariable(
"TXT_SAL_M", $lng->txt(
"mail_salutation_male"));
 
  727                         $this->tpl->setVariable(
"INPUT_SAL_M", 
"sal_m_".$lang_key);
 
  728                         $this->tpl->setVariable(
"VAL_SAL_M",
 
  730                         $this->tpl->setVariable(
"TXT_SAL_F", $lng->txt(
"mail_salutation_female"));
 
  731                         $this->tpl->setVariable(
"INPUT_SAL_F", 
"sal_f_".$lang_key);
 
  732                         $this->tpl->setVariable(
"VAL_SAL_F",
 
  734                         $this->tpl->parseCurrentBlock();
 
  736                 $this->tpl->setVariable(
"TXT_CANCEL", $lng->txt(
"cancel"));
 
  737                 $this->tpl->setVariable(
"TXT_SAVE", $lng->txt(
"save"));
 
  741                 $this->ctrl->redirect($this, 
"editDiskQuotaSettings");
 
  749                 $langs = $lng->getInstalledLanguages();
 
  750                 foreach($langs as $lang_key)
 
  752                         $this->disk_quota_obj->_writeReminderMailTemplate($lang_key,
 
  759                 $this->ctrl->redirect($this, 
"editDiskQuotaMailTemplate");
 
  769                 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  771                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  772                 $form->setTitle($lng->txt(
"settings"));
 
  774                 require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
  777                 $chk_enabled = 
new ilCheckboxInputGUI($lng->txt(
"enable_dnd_upload"), 
"enable_dnd_upload");
 
  780                 $chk_enabled->setInfo($lng->txt(
'enable_dnd_upload_info'));
 
  781                 $form->addItem($chk_enabled);
 
  784                 $chk_repo = 
new ilCheckboxInputGUI($lng->txt(
"enable_repository_dnd_upload"), 
"enable_repository_dnd_upload");
 
  787                 $chk_repo->setInfo($lng->txt(
'enable_repository_dnd_upload_info'));
 
  788                 $chk_enabled->addSubItem($chk_repo);
 
  791                 $num_prop = 
new ilNumberInputGUI($lng->txt(
"concurrent_uploads"), 
"concurrent_uploads");
 
  793                 $num_prop->setMinValue(1);
 
  794                 $num_prop->setMinvalueShouldBeGreater(
false);
 
  796                 $num_prop->setMaxvalueShouldBeLess(
false);
 
  797                 $num_prop->setMaxLength(5);
 
  798                 $num_prop->setSize(10);
 
  800                 $num_prop->setInfo($lng->txt(
'concurrent_uploads_info'));
 
  801                 $chk_enabled->addSubItem($num_prop);
 
  804                 $ti = 
new ilTextInputGUI($this->lng->txt(
"file_suffix_repl"), 
"suffix_repl_additional");
 
  807                 $ti->setInfo($this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
 
  811                 $form->addCommandButton(
'saveUploadSettings', $lng->txt(
'save'));
 
  812                 $form->addCommandButton(
'view', $lng->txt(
'cancel'));
 
  824                 $this->tabs_gui->setTabActive(
'upload_settings');
 
  826                 if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId()))
 
  828                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  834                 require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
  841                 $val[
"suffix_repl_additional"] = $ilSetting->get(
"suffix_repl_additional");
 
  842                 $form->setValuesByArray($val);
 
  845                 $tpl->setContent($form->getHTML());
 
  855                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  857                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  862                 if ($form->checkInput())
 
  864                         require_once(
"Services/FileUpload/classes/class.ilFileUploadSettings.php");
 
  870                         $ilSetting->set(
"suffix_repl_additional", 
$_POST[
"suffix_repl_additional"]);
 
  873                         $ilCtrl->redirect($this, 
"editUploadSettings");
 
  877                         $form->setValuesByPost();       
 
  878                         $tpl->setContent($form->getHTML());
 
  889                 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  891                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  892                 $form->setTitle($lng->txt(
"settings"));
 
  894                 require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
  900                 $chk_prop->setInfo($lng->txt(
'enable_preview_info'));
 
  901                 $form->addItem($chk_prop);
 
  903                 $num_prop = 
new ilNumberInputGUI($lng->txt(
"max_previews_per_object"), 
"max_previews_per_object");
 
  905                 $num_prop->setMinValue(1);
 
  906                 $num_prop->setMinvalueShouldBeGreater(
false);
 
  908                 $num_prop->setMaxvalueShouldBeLess(
false);
 
  909                 $num_prop->setMaxLength(5);
 
  910                 $num_prop->setSize(10);
 
  912                 $num_prop->setInfo($lng->txt(
'max_previews_per_object_info'));
 
  913                 $form->addItem($num_prop);
 
  916                 $form->addCommandButton(
'savePreviewSettings', $lng->txt(
'save'));
 
  917                 $form->addCommandButton(
'view', $lng->txt(
'cancel'));
 
  929                 $this->tabs_gui->setTabActive(
'preview_settings');
 
  931                 if (!$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId()))
 
  933                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  937                 if (!is_file(PATH_TO_GHOSTSCRIPT))
 
  946                 require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
  951                 $form->setValuesByArray($val);
 
  953                 $html = $form->getHTML();
 
  956                 require_once(
"Services/Preview/classes/class.ilRendererFactory.php");
 
  957                 require_once(
"Services/Preview/classes/class.ilRendererTableGUI.php");
 
  962                 $table->setMaxCount(
sizeof($renderers));
 
  963                 $table->setData($renderers);    
 
  965                 $html .= 
"<br/>" . $table->getHTML();
 
  968                 $tpl->setContent($html);
 
  978                 $this->tabs_gui->setTabActive(
'preview_settings');
 
  980                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  982                         $ilErr->raiseError($lng->txt(
"no_permission"),$ilErr->WARNING);
 
  987                 if ($form->checkInput())
 
  989                         require_once(
"Services/Preview/classes/class.ilPreviewSettings.php");
 
  994                         $ilCtrl->redirect($this, 
"editPreviewSettings");
 
  998                         $form->setValuesByPost();       
 
  999                         $tpl->setContent($form->getHTML());
 
 1011                                 $fields = array(
'file_suffix_repl' => $ilSetting->get(
"suffix_repl_additional"));
 
 1013                                 return array(array(
"editUploadSettings", $fields));