25                include_once 
'./Services/User/classes/class.ilUserDefinedFields.php';
 
   32                $this->
settings = $ilias->getAllSettings();
 
   34                $lng->loadLanguageModule(
'chatroom');
 
   35                $lng->loadLanguageModule(
'chatroom_adm');
 
   36                $this->upload_error = 
"";
 
   37                $this->password_error = 
"";
 
   38                $lng->loadLanguageModule(
"user");
 
   39                $ilCtrl->saveParameter($this, 
"user_page");
 
   49                $next_class = $this->ctrl->getNextClass();
 
   53                        case 'ilpersonalchatsettingsformgui':
 
   54                                $this->__initSubTabs($this->ctrl->getCmd());
 
   57                                require_once 
'Modules/Chatroom/classes/class.ilPersonalChatSettingsFormGUI.php';
 
   59                                $this->ctrl->forwardCommand($chatSettingsGui);
 
   63                                $cmd = $this->ctrl->getCmd(
"showGeneralSettings");
 
   74        public function saveMailOptions()
 
   85                include_once 
'Services/Mail/classes/class.ilMailGlobalServices.php';
 
   88                        $this->
ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
 
   91                $lng->loadLanguageModule(
'mail');
 
   93                $this->__initSubTabs(
'showMailOptions');
 
   94                $ilTabs->activateTab(
'mail_settings');
 
   98                require_once 
'Services/Mail/classes/class.ilMailOptions.php';
 
  100                if(
$ilSetting->get(
'usr_settings_hide_mail_incoming_mail') != 
'1' && 
 
  101                   $ilSetting->get(
'usr_settings_disable_mail_incoming_mail') != 
'1')
 
  103                        $incoming_type = (int)
$_POST[
'incoming_type'];
 
  107                        $incoming_type = $mailOptions->getIncomingType();
 
  111                if($this->form->checkInput())
 
  113                        $mailOptions->updateOptions(
 
  117                                (
int)
$_POST[
'cronjob_notification']
 
  123                if(!isset(
$_POST[
'incoming_type']))
 
  125                        $_POST[
'incoming_type'] = $mailOptions->getIncomingType();
 
  128                $this->form->setValuesByPost();
 
  130                $this->tpl->setContent($this->form->getHTML());
 
  141                include_once 
'Services/Form/classes/class.ilPropertyFormGUI.php';
 
  144                $this->form->setFormAction(
$ilCtrl->getFormAction($this, 
'saveMailOptions'));
 
  145                $this->form->setTitle(
$lng->txt(
'mail_settings'));
 
  148                include_once 
'Services/Mail/classes/class.ilMailOptions.php';
 
  149                if(
$ilSetting->get(
'usr_settings_hide_mail_incoming_mail') != 
'1')
 
  159                           $ilSetting->get(
'usr_settings_disable_mail_incoming_mail') == 
'1')
 
  161                                $si->setDisabled(
true); 
 
  163                        $this->form->addItem(
$si);
 
  168                for($i = 50; $i <= 80; $i++)
 
  174                $this->form->addItem(
$si);
 
  180                $this->form->addItem($ta);
 
  186                        $cb->setInfo(
$lng->txt(
'mail_cronjob_notification_info'));
 
  188                        $this->form->addItem($cb);
 
  191                $this->form->addCommandButton(
'saveMailOptions', 
$lng->txt(
'save'));
 
  201                require_once 
'Services/Mail/classes/class.ilMailOptions.php';
 
  205                        'linebreak' => $mailOptions->getLinebreak(),
 
  206                        'signature' => $mailOptions->getSignature(),
 
  207                        'cronjob_notification' => $mailOptions->getCronjobNotification()
 
  210                if(
$ilSetting->get(
'usr_settings_hide_mail_incoming_mail') != 
'1')
 
  212                        $data[
'incoming_type'] = $mailOptions->getIncomingType();
 
  215                $this->form->setValuesByArray(
$data);
 
  221        public function showMailOptions()
 
  228                global $ilTabs, 
$lng, $rbacsystem;
 
  230                include_once 
'Services/Mail/classes/class.ilMailGlobalServices.php';
 
  233                        $this->
ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
 
  236                $lng->loadLanguageModule(
'mail');
 
  238                $this->__initSubTabs(
'showMailOptions');
 
  239                $ilTabs->activateTab(
'mail_settings');
 
  246                $this->tpl->setContent($this->form->getHTML());
 
  251        function __initSubTabs($a_cmd)
 
  258                $ilHelp->setScreenIdComponent(
"user");
 
  260                $showPassword = ($a_cmd == 
'showPassword') ? 
true : 
false;
 
  261                $showGeneralSettings = ($a_cmd == 
'showGeneralSettings') ? 
true : 
false;
 
  262                $showMailOptions = ($a_cmd == 
'showMailOptions') ? 
true : 
false;
 
  267                $ilTabs->addTarget(
"general_settings", $this->ctrl->getLinkTarget($this, 
"showGeneralSettings"),
 
  268                        "", 
"", 
"", $showGeneralSettings);
 
  273                        $ilTabs->addTarget(
"password", $this->ctrl->getLinkTarget($this, 
"showPassword"),
 
  274                                "", 
"", 
"", $showPassword);
 
  277                include_once 
'Services/Mail/classes/class.ilMailGlobalServices.php';
 
  280                        $ilTabs->addTarget(
"mail_settings", $this->ctrl->getLinkTarget($this, 
"showMailOptions"), 
"", 
"", 
"", $showMailOptions);
 
  283                require_once 
'Modules/Chatroom/classes/class.ilPersonalChatSettingsFormGUI.php';
 
  285                if($chatSettingsGui->isAccessible())
 
  289                                'chat_settings', $this->ctrl->getLinkTarget($chatSettingsGui, 
'showChatOptions'), 
'', 
'ilPersonalChatSettingsFormGUI', 
'', method_exists($chatSettingsGui, $a_cmd)
 
  293                include_once 
"./Services/Administration/classes/class.ilSetting.php";
 
  295                if((
bool)
$ilSetting->get(
'user_delete_own_account') &&
 
  296                        $ilUser->getId() != SYSTEM_USER_ID)
 
  298                        $ilTabs->addTab(
"delacc", $this->lng->txt(
'user_delete_own_account'),
 
  299                                $this->ctrl->getLinkTarget($this, 
"deleteOwnAccount1"));
 
  308                $this->tpl->setVariable(
'HEADER', $this->lng->txt(
'personal_settings'));
 
  324                $this->__initSubTabs(
"showPersonalData");
 
  325                $ilTabs->activateTab(
"password");
 
  330                if($ilUser->isPasswordChangeDemanded())
 
  333                                $this->lng->txt(
'password_change_on_first_login_demand')
 
  336                else if(
$ilUser->isPasswordExpired())
 
  338                        $msg          = $this->lng->txt(
'password_expired');
 
  339                        $password_age = 
$ilUser->getPasswordAge();
 
  343                if (!$a_no_init && !$hide_form)
 
  347                $this->tpl->setContent(!$hide_form ? $this->form->getHTML() : 
'');
 
  360                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  376                                $cpass->setRetype(
false);
 
  377                                $cpass->setSkipSyntaxCheck(
true);
 
  381                                        $cpass->setRequired(
true);
 
  383                                $this->form->addItem($cpass);
 
  388                        $ipass->setRequired(
true);
 
  391                        $this->form->addItem($ipass);
 
  392                        $this->form->addCommandButton(
"savePassword", 
$lng->txt(
"save"));
 
  394                        switch (
$ilUser->getAuthMode(
true))
 
  397                                        $this->form->setTitle(
$lng->txt(
"chg_password"));
 
  402                                        require_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
 
  405                                                $this->form->setTitle(
$lng->txt(
"chg_ilias_and_webfolder_password"));
 
  409                                                $this->form->setTitle(
$lng->txt(
"chg_ilias_password"));
 
  413                                        $this->form->setTitle(
$lng->txt(
"chg_ilias_password"));
 
  416                        $this->form->setFormAction($this->ctrl->getFormAction($this));
 
  436                return \ilAuthUtils::isPasswordModificationHidden() && (
$ilUser->isPasswordChangeDemanded() || 
$ilUser->isPasswordExpired());
 
  450                        $ilCtrl->redirect($this, 
"showPersonalData");
 
  455                if ($this->form->checkInput())
 
  457                        $cp = $this->form->getItemByPostVar(
"current_password");
 
  458                        $np = $this->form->getItemByPostVar(
"new_password");
 
  464                        #if ($ilUser->getAuthMode(true) != AUTH_SHIBBOLETH || ! $ilSetting->get("shib_auth_allow_local"))
 
  467                                require_once 
'Services/User/classes/class.ilUserPasswordManager.php';
 
  471                                        $cp->setAlert($this->lng->txt(
'passwd_wrong'));
 
  478                                if ($custom_error != 
'')
 
  480                                        $np->setAlert($custom_error);
 
  484                                        $np->setAlert($this->lng->txt(
"passwd_invalid"));
 
  491                                $np->setAlert($this->lng->txt($error_lng_var));
 
  495                                (
$ilUser->isPasswordExpired() || 
$ilUser->isPasswordChangeDemanded()) &&
 
  499                                $np->setAlert($this->lng->txt(
"new_pass_equals_old_pass"));
 
  505                                if (
$_POST[
"current_password"] != 
$_POST[
"new_password"])
 
  507                                        $ilUser->setLastPasswordChangeToNow();
 
  525                $this->form->setValuesByPost();
 
  542                if ($this->
settings[
"usr_settings_hide_".$setting] == 1)
 
  546                if ($this->
settings[
"usr_settings_disable_".$setting] == 1)
 
  560                if (isset($this->
settings[
"usr_settings_hide_".$setting]) &&
 
  561                        $this->
settings[
"usr_settings_hide_".$setting] == 1)
 
  575                if ($this->
settings[
"usr_settings_disable_".$setting] == 1)
 
  587                global $ilTabs, $ilToolbar, 
$ilCtrl;
 
  593                $this->__initSubTabs(
"showPersonalData");
 
  594                $ilTabs->activateTab(
"general_settings");
 
  602                $this->tpl->setContent($this->form->getHTML());
 
  615                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  621                        $languages = $this->lng->getInstalledLanguages();
 
  631                        $si->setDisabled(
$ilSetting->get(
"usr_settings_disable_language"));
 
  632                        $this->form->addItem(
$si);
 
  638                        $skins = $styleDefinition->getAllSkins();
 
  639                        if (is_array($skins))
 
  644                                foreach($skins as $skin)
 
  646                                        foreach($skin->getStyles() as 
$style)
 
  648                                                include_once(
"./Services/Style/System/classes/class.ilSystemStyleSettings.php");
 
  659                                $si->setDisabled(
$ilSetting->get(
"usr_settings_disable_skin_style"));
 
  660                                $this->form->addItem(
$si);
 
  667                        $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"user_screen_reader_optimization"), 
"screen_reader_optimization");
 
  668                        $cb->setChecked(
$ilUser->prefs[
"screen_reader_optimization"]);
 
  669                        $cb->setDisabled(
$ilSetting->get(
"usr_settings_disable_screen_reader_optimization"));
 
  670                        $cb->setInfo($this->lng->txt(
"user_screen_reader_optimization_info"));
 
  671                        $this->form->addItem($cb);
 
  679                        $hits_options = array(10,15,20,30,40,50,100,9999);
 
  682                        foreach($hits_options as $hits_option)
 
  684                                $hstr = ($hits_option == 9999)
 
  685                                        ? $this->lng->txt(
"no_limit")
 
  690                        $si->setValue(
$ilUser->prefs[
"hits_per_page"]);
 
  691                        $si->setDisabled(
$ilSetting->get(
"usr_settings_disable_hits_per_page"));
 
  692                        $this->form->addItem(
$si);
 
  712                $lv = 
new ilSelectInputGUI($this->lng->txt(
"user_store_last_visited"), 
"store_last_visited");
 
  714                        0 => $this->lng->txt(
"user_lv_keep_entries"),
 
  715                        1 => $this->lng->txt(
"user_lv_keep_only_for_session"),
 
  716                        2 => $this->lng->txt(
"user_lv_do_not_store"));
 
  718                $lv->setValue((
int) 
$ilUser->prefs[
"store_last_visited"]);
 
  719                $this->form->addItem($lv);
 
  723                if ($awrn_set->get(
"awrn_enabled", 
false) && $this->userSettingVisible(
"hide_own_online_status"))
 
  725                        $this->lng->loadLanguageModule(
"awrn");
 
  726                        $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"awrn_hide_from_awareness"), 
"hide_own_online_status");
 
  727                        $cb->setInfo($this->lng->txt(
"awrn_hide_from_awareness_info"));
 
  728                        $cb->setChecked(
$ilUser->prefs[
"hide_own_online_status"] == 
"y");
 
  729                        $cb->setDisabled(
$ilSetting->get(
"usr_settings_disable_hide_own_online_status"));
 
  730                        $this->form->addItem($cb);
 
  733                require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
 
  736                        $this->lng->loadLanguageModule(
'buddysystem');
 
  737                        $allow_to_contact_be = 
new ilCheckboxInputGUI($this->lng->txt(
'buddy_allow_to_contact_me'), 
'bs_allow_to_contact_me');
 
  738                        $allow_to_contact_be->setInfo($this->lng->txt(
'buddy_allow_to_contact_me_info'));
 
  739                        $allow_to_contact_be->setChecked(
$ilUser->prefs[
'bs_allow_to_contact_me'] == 
'y');
 
  740                        $allow_to_contact_be->setDisabled(
$ilSetting->get(
'usr_settings_disable_bs_allow_to_contact_me'));
 
  741                        $this->form->addItem($allow_to_contact_be);
 
  744                include_once 
'Services/Authentication/classes/class.ilSessionReminder.php';
 
  745                if(ilSessionReminder::isGloballyActivated())
 
  747                        $cb = 
new ilCheckboxInputGUI($this->lng->txt(
'session_reminder'), 
'session_reminder_enabled');
 
  748                        $cb->setInfo($this->lng->txt(
'session_reminder_info'));
 
  750                        $cb->setChecked((
int)
$ilUser->getPref(
'session_reminder_enabled'));
 
  753                        $lead_time_gui = 
new ilNumberInputGUI($this->lng->txt(
'session_reminder_lead_time'), 
'session_reminder_lead_time');
 
  757                        $max_value = max($min_value, ((
int)$expires / 60) - 1);
 
  759                        $current_user_value = 
$ilUser->getPref(
'session_reminder_lead_time');
 
  760                        if($current_user_value < $min_value ||
 
  761                           $current_user_value > $max_value)
 
  767                                        $min_value, $current_user_value
 
  772                        $lead_time_gui->setValue($value);
 
  773                        $lead_time_gui->setSize(3);
 
  774                        $lead_time_gui->setMinValue($min_value);
 
  775                        $lead_time_gui->setMaxValue($max_value);
 
  776                        $cb->addSubItem($lead_time_gui);
 
  778                        $this->form->addItem($cb);
 
  784                include_once(
'Services/Calendar/classes/class.ilCalendarUserSettings.php');
 
  785                include_once(
'Services/Calendar/classes/class.ilCalendarUtil.php');
 
  786                $lng->loadLanguageModule(
"dateplaner");
 
  791                $select->setInfo(
$lng->txt(
'cal_timezone_info'));
 
  792                $select->setValue($user_settings->getTimeZone());
 
  793                $this->form->addItem($select);
 
  797                $select->setOptions(array(
 
  801                $select->setInfo(
$lng->txt(
'cal_date_format_info'));
 
  802                $select->setValue($user_settings->getDateFormat());
 
  803                $this->form->addItem($select);
 
  806                $select->setOptions(array(
 
  809                $select->setInfo(
$lng->txt(
'cal_time_format_info'));
 
  810            $select->setValue($user_settings->getTimeFormat());
 
  811                $this->form->addItem($select);
 
  815                include_once 
"Services/User/classes/class.ilUserUtil.php";
 
  818                        $this->lng->loadLanguageModule(
"administration");
 
  820                        $si->setRequired(
true);
 
  821                        $si->setInfo($this->lng->txt(
"adm_user_starting_point_info"));
 
  822                        $def_opt = 
new ilRadioOption($this->lng->txt(
"adm_user_starting_point_inherit"), 0);
 
  823                        $def_opt->setInfo($this->lng->txt(
"adm_user_starting_point_inherit_info"));
 
  824                        $si->addOption($def_opt);
 
  832                        $this->form->addItem(
$si);
 
  836                        $repobj_id = 
new ilTextInputGUI(
$lng->txt(
"adm_user_starting_point_ref_id"), 
"usr_start_ref_id");
 
  837                        $repobj_id->setInfo(
$lng->txt(
"adm_user_starting_point_ref_id_info"));
 
  838                        $repobj_id->setRequired(
true);
 
  839                        $repobj_id->setSize(5);
 
  843                                $repobj_id->setValue($start_ref_id);
 
  849                                                $repobj_id->setInfo(
$lng->txt(
"obj_".ilObject::_lookupType($start_obj_id)).
 
  850                                                        ": ".ilObject::_lookupTitle($start_obj_id));
 
  854                        $repobj->addSubItem($repobj_id);
 
  855                        $si->addOption($repobj);
 
  860                if (
$ilSetting->get(
'char_selector_availability') > 0)
 
  862                        require_once 
'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
 
  864                        $char_selector->getConfig()->setAvailability(
$ilUser->getPref(
'char_selector_availability'));
 
  865                        $char_selector->getConfig()->setDefinition(
$ilUser->getPref(
'char_selector_definition'));
 
  866                        $char_selector->addFormProperties($this->form);
 
  867                        $char_selector->setFormValues($this->form);
 
  870                $this->form->addCommandButton(
"saveGeneralSettings", 
$lng->txt(
"save"));
 
  871                $this->form->setTitle(
$lng->txt(
"general_settings"));
 
  872                $this->form->setFormAction($this->ctrl->getFormAction($this));
 
  884                if ($this->form->checkInput())
 
  889                                if ($_POST[
"skin_style"] != 
"")
 
  891                                        $sknst = explode(
":", 
$_POST[
"skin_style"]);
 
  893                                        if (
$ilUser->getPref(
"style") != $sknst[1] ||
 
  894                                                $ilUser->getPref(
"skin") != $sknst[0])
 
  896                                                $ilUser->setPref(
"skin", $sknst[0]);
 
  897                                                $ilUser->setPref(
"style", $sknst[1]);
 
  905                                $ilUser->setLanguage(
$_POST[
"language"]);
 
  911                                if ($_POST[
"hits_per_page"] != 
"")
 
  925                        global $ilNavigationHistory;
 
  926                        $ilUser->setPref(
"store_last_visited", (
int) 
$_POST[
"store_last_visited"]);
 
  927                        if ((
int) 
$_POST[
"store_last_visited"] > 0)
 
  929                                $ilNavigationHistory->deleteDBEntries();
 
  930                                if ((
int) 
$_POST[
"store_last_visited"] == 2)
 
  932                                        $ilNavigationHistory->deleteSessionEntries();
 
  939                                if ($_POST[
"hide_own_online_status"] == 1)
 
  941                                        $ilUser->setPref(
"hide_own_online_status",
"y");
 
  945                                        $ilUser->setPref(
"hide_own_online_status",
"n");
 
  949                        require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
 
  952                                if(isset(
$_POST[
'bs_allow_to_contact_me']) && 
$_POST[
'bs_allow_to_contact_me'] == 1)
 
  954                                        $ilUser->setPref(
'bs_allow_to_contact_me', 
'y');
 
  958                                        $ilUser->setPref(
'bs_allow_to_contact_me', 
'n');
 
  965                                $ilUser->setPref(
"screen_reader_optimization", 
$_POST[
"screen_reader_optimization"]);
 
  969                        include_once 
'Services/Authentication/classes/class.ilSessionReminder.php';
 
  970                        if(ilSessionReminder::isGloballyActivated())
 
  972                                $ilUser->setPref(
'session_reminder_enabled', (
int)$this->form->getInput(
'session_reminder_enabled'));
 
  973                                $ilUser->setPref(
'session_reminder_lead_time', $this->form->getInput(
'session_reminder_lead_time'));
 
  977                        include_once 
"Services/User/classes/class.ilUserUtil.php";
 
  981                                        $this->form->getInput(
'usr_start_ref_id'));
 
  986                        if (
$ilSetting->get(
'char_selector_availability') > 0)
 
  988                                require_once 
'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
 
  990                                $char_selector->getFormValues($this->form);
 
  991                                $ilUser->setPref(
'char_selector_availability', $char_selector->getConfig()->getAvailability());
 
  992                                $ilUser->setPref(
'char_selector_definition', $char_selector->getConfig()->getDefinition());
 
  998                        include_once(
'Services/Calendar/classes/class.ilCalendarUserSettings.php');
 
 1000                        $user_settings->setTimeZone($this->form->getInput(
"timezone"));
 
 1001                        $user_settings->setDateFormat((
int)$this->form->getInput(
"date_format"));
 
 1002                        $user_settings->setTimeFormat((
int)$this->form->getInput(
"time_format"));
 
 1003                        $user_settings->save();
 
 1006                        $ilCtrl->redirect($this, 
"showGeneralSettings");
 
 1009                $this->form->setValuesByPost();
 
 1020                if(!(
bool)
$ilSetting->get(
'user_delete_own_account') ||
 
 1021                        $ilUser->getId() == SYSTEM_USER_ID)
 
 1023                        $this->ctrl->redirect($this, 
"showGeneralSettings");
 
 1027                $ilUser->removeDeletionFlag();          
 
 1030                $this->__initSubTabs(
"deleteOwnAccount");
 
 1031                $ilTabs->activateTab(
"delacc");
 
 1034                $ilToolbar->addButton($this->lng->txt(
'btn_next'),
 
 1035                        $this->ctrl->getLinkTarget($this, 
'deleteOwnAccount2'));
 
 1047                if(!(
bool)
$ilSetting->get(
'user_delete_own_account') ||
 
 1048                        $ilUser->getId() == SYSTEM_USER_ID)
 
 1050                        $this->ctrl->redirect($this, 
"showGeneralSettings");
 
 1054                $this->__initSubTabs(
"deleteOwnAccount");
 
 1055                $ilTabs->activateTab(
"delacc");
 
 1057                include_once 
"Services/Utilities/classes/class.ilConfirmationGUI.php";
 
 1059                $cgui->setHeaderText($this->lng->txt(
'user_delete_own_account_logout_confirmation'));
 
 1060                $cgui->setFormAction($this->ctrl->getFormAction($this));
 
 1061                $cgui->setCancel($this->lng->txt(
"cancel"), 
"abortDeleteOwnAccount");
 
 1062                $cgui->setConfirm($this->lng->txt(
"user_delete_own_account_logout_button"), 
"deleteOwnAccountLogout");          
 
 1063                $this->tpl->setContent($cgui->getHTML());                       
 
 1071                $ilUser->removeDeletionFlag();                  
 
 1073                ilUtil::sendInfo($this->lng->txt(
"user_delete_own_account_aborted"), 
true);
 
 1074                $ilCtrl->redirect($this, 
"showGeneralSettings");
 
 1083                $ilUser->activateDeletionFlag();                                
 
 1087                $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
 
 1099                if(!(
bool)
$ilSetting->get(
'user_delete_own_account') ||
 
 1100                        $ilUser->getId() == SYSTEM_USER_ID ||
 
 1103                        $this->ctrl->redirect($this, 
"showGeneralSettings");
 
 1107                $this->__initSubTabs(
"deleteOwnAccount");
 
 1108                $ilTabs->activateTab(
"delacc");
 
 1110                include_once 
"Services/Utilities/classes/class.ilConfirmationGUI.php";
 
 1112                $cgui->setHeaderText($this->lng->txt(
'user_delete_own_account_final_confirmation'));
 
 1113                $cgui->setFormAction($this->ctrl->getFormAction($this));
 
 1114                $cgui->setCancel($this->lng->txt(
"cancel"), 
"abortDeleteOwnAccount");
 
 1115                $cgui->setConfirm($this->lng->txt(
"confirm"), 
"deleteOwnAccount4");             
 
 1116                $this->tpl->setContent($cgui->getHTML());                       
 
 1127                if(!(
bool)
$ilSetting->get(
'user_delete_own_account') ||
 
 1128                        $ilUser->getId() == SYSTEM_USER_ID ||
 
 1131                        $this->ctrl->redirect($this, 
"showGeneralSettings");
 
 1136                include_once 
"./Services/Notification/classes/class.ilSystemNotification.php";
 
 1138                $ntf->setLangModules(array(
"user"));            
 
 1139                $ntf->addAdditionalInfo(
"profile", 
$ilUser->getProfileAsString($this->lng), 
true);              
 
 1143                $ntf->setIntroductionDirect(
 
 1144                        sprintf($this->lng->txt(
"user_delete_own_account_email_body"), 
 
 1149                $message = $ntf->composeAndGetMessage(
$ilUser->getId(), 
null, 
null, 
true);
 
 1150                $subject = $this->lng->txt(
"user_delete_own_account_email_subject");    
 
 1155                include_once 
"Services/Mail/classes/class.ilMail.php";
 
 1156                $mail = 
new ilMail(ANONYMOUS_USER_ID);
 
 1158                $user_email = 
$ilUser->getEmail();              
 
 1159                $admin_mail = 
$ilSetting->get(
"user_delete_own_account_email");         
 
 1164                        $mail->sendMimeMail($user_email, 
null, $admin_mail, $subject, $message, 
null, 
true);            
 
 1167                else if($admin_mail)
 
 1169                        $mail->sendMimeMail($admin_mail, 
null, 
null, $subject, $message, 
null, 
true);           
 
 1177                $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
 
sprintf('%.4f', $callTime)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
An exception for terminatinating execution or to throw for unit testing.
static isPasswordModificationEnabled($a_authmode)
Check if password modification is enabled.
static _getInstanceByUserId($a_user_id)
get singleton instance
static _getShortTimeZoneList()
get short timezone list
This shows a character selector.
Confirmation screen class.
static _isActive()
Static getter.
static secondsToString($seconds, $force_with_seconds=false, $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
static setUseRelativeDates($a_status)
set use relative dates
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static _lookupEntry($a_lang_key, $a_mod, $a_id)
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable.
Class UserMail this class handles user mails.
This class handles base functions for mail handling.
static _lookupEmail($a_user_id)
Lookup email.
static _lookupObjId($a_id)
GUI class for personal profile.
initGeneralSettingsForm()
Init general settings form.
userSettingEnabled($setting)
Returns TRUE if user setting is enabled, FALSE otherwise.
deleteOwnAccount4()
Delete own account dialog - action incl.
deleteOwnAccount1()
Delete own account dialog - 1st confirmation.
deleteOwnAccount2()
Delete own account dialog - login redirect.
savePassword()
Save password form.
deleteOwnAccount3()
Delete own account dialog - final confirmation.
initPasswordForm()
Init password form.
allowPasswordChange()
Check, whether password change is allowed for user.
initMailOptionsForm()
Initialises the mail options form.
setMailOptionsValuesByDB()
Fetches data from model and loads this data into form.
userSettingVisible($setting)
Returns TRUE if user setting is visible, FALSE otherwise.
saveGeneralSettings()
Save general settings.
showPassword($a_no_init=false, $hide_form=false)
executeCommand()
execute command
workWithUserSetting($setting)
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
showGeneralSettings($a_no_init=false)
General settings form.
This class represents an option in a radio group.
const SUGGESTED_LEAD_TIME
static set($a_var, $a_val)
Set a value.
static setClosingContext($a_context)
set closing context (for statistics)
static get($a_var)
Get a value.
static getSessionExpireValue()
Returns the session expiration value.
Wrapper classes for system notifications.
static _lookupActivatedStyle($a_skin, $a_style)
lookup if a style is activated
This class represents a text area property in a property form.
This class represents a text property in a property form.
static _getInstance()
Get instance.
static getInstance()
Single method to reduce footprint (included files, created instances)
static getPersonalStartingObject()
Get ref id of personal starting object.
static getPossibleStartingPoints($a_force_all=false)
Get all valid starting points.
static hasPersonalStartPointPref()
Did user set any personal starting point (yet)?
static hasPersonalStartingPoint()
Can starting point be personalized?
static getPersonalStartingPoint()
Get current personal starting point.
static setPersonalStartingPoint($a_value, $a_ref_id=null)
Set personal starting point setting.
const START_REPOSITORY_OBJ
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)
http redirect to other script
static isPassword($a_passwd, &$customError=null)
validates a password @access public
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static getPasswordRequirementsInfo()
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static isPasswordValidForUserContext($clear_text_password, $user, &$error_language_variable=null)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
redirection script todo: (a better solution should control the processing via a xml file)
if(!is_array($argv)) $options