4 include_once
'./Services/Authentication/classes/class.ilAuthLoginPageEditorSettings.php';
42 $this->lng->loadLanguageModule(
'auth');
43 $this->ref_id = $a_ref_id;
70 switch ($this->ctrl->getNextClass($this)) {
71 case 'illoginpagegui':
72 $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
73 $GLOBALS[
'DIC'][
'ilTabs']->setBackTarget(
74 $this->lng->txt(
'back'),
75 $this->ctrl->getLinkTarget($this,
'show'),
79 if (
$_GET[
"redirectSource"] !=
"ilinternallinkgui") {
87 if (!$cmd = $this->ctrl->getCmd()) {
106 $key = (int) $_REQUEST[
'key'];
107 $this->ctrl->saveParameter($this,
'key',
$key);
109 include_once(
"./Services/Authentication/classes/class.ilLoginPage.php");
110 include_once(
"./Services/Authentication/classes/class.ilLoginPageGUI.php");
111 include_once
'./Services/Style/Content/classes/class.ilObjStyleSheet.php';
113 $lng->loadLanguageModule(
"content");
118 $new_page_object->setParentId(
$key);
119 $new_page_object->setId(
$key);
120 $new_page_object->createFromXML();
123 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
125 $tpl->setCurrentBlock(
"SyntaxStyle");
127 $tpl->parseCurrentBlock();
130 $this->ctrl->setReturnByClass(
'illoginpagegui',
"edit");
133 $page_gui->setTemplateTargetVar(
"ADM_CONTENT");
134 $page_gui->setLinkXML($link_xml);
140 $page_gui->setPresentationTitle(
"");
142 $page_gui->setTemplateOutput(
false);
144 $page_gui->setHeader(
"");
149 if ($this->ctrl->getCmd() ==
'editPage') {
150 $this->ctrl->setCmd(
'edit');
152 $html = $this->ctrl->forwardCommand($page_gui);
182 $ilToolbar = $DIC[
'ilToolbar'];
184 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
188 $ilToolbar->addButton(
189 $this->lng->txt(
'login_page_switch_ipe'),
190 $this->ctrl->getLinkTarget($this,
'switchIPE')
196 $ilToolbar->addButton(
197 $this->lng->txt(
'login_page_switch_rte'),
198 $this->ctrl->getLinkTarget($this,
'switchRTE')
213 ilUtil::sendSuccess($this->lng->txt(
'login_page_editor_switched'),
true);
214 $this->ctrl->redirect($this,
'show');
225 ilUtil::sendSuccess($this->lng->txt(
'login_page_editor_switched'),
true);
226 $this->ctrl->redirect($this,
'show');
235 foreach ((array)
$_POST[
'visible_languages'] as $lang_key) {
236 $settings->enableIliasEditor($lang_key, in_array($lang_key, (array)
$_POST[
'languages']));
240 ilUtil::sendSuccess($this->lng->txt(
'settings_saved'),
true);
241 $this->ctrl->redirect($this,
'show');
253 include_once
'./Services/Authentication/classes/class.ilAuthLoginPageEditorTableGUI.php';
271 $rbacsystem = $DIC[
'rbacsystem'];
276 if (!$rbacsystem->checkAccess(
"visible,read", $this->getRefId())) {
277 $ilErr->raiseError($this->lng->txt(
"permission_denied"),
$ilErr->MESSAGE);
279 $lng->loadLanguageModule(
"meta");
284 "tpl.auth_login_messages.html",
285 "Services/Authentication" 287 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
288 $tpl->setVariable(
"TXT_HEADLINE", $this->lng->txt(
"login_information"));
289 $tpl->setVariable(
"TXT_DESCRIPTION", $this->lng->txt(
"login_information_desc"));
290 $tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
292 $tpl->setVariable(
'LOGIN_INFO', $this->form->getHTML());
305 $rbacsystem = $DIC[
'rbacsystem'];
309 if (!$rbacsystem->checkAccess(
"write", $this->getRefId())) {
310 $ilErr->raiseError($this->lng->txt(
"permission_denied"),
$ilErr->MESSAGE);
314 if ($this->form->checkInput()) {
317 $this->loginSettings =
new ilSetting(
"login_settings");
320 if (substr(
$key, 0, 14) ==
"login_message_") {
321 $this->loginSettings->set(
$key, $val);
326 if (
$_POST[
'default_auth_mode']) {
330 ilUtil::sendSuccess($this->lng->txt(
"login_information_settings_saved"),
true);
333 $this->ctrl->redirect($this,
'show');
343 $rbacsystem = $DIC[
'rbacsystem'];
347 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
349 $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveLoginInfo'));
350 $this->form->setTableWidth(
'80%');
351 $this->form->setTitle($this->lng->txt(
'login_information'));
353 $this->form->addCommandButton(
'saveLoginInfo', $this->lng->txt(
'save'));
355 include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
356 include_once(
'Services/Radius/classes/class.ilRadiusSettings.php');
359 $select =
new ilSelectInputGUI($this->lng->txt(
'default_auth_mode'),
'default_auth_mode');
361 $select->setInfo($this->lng->txt(
'default_auth_mode_info'));
366 if ($rad_settings->isActive()) {
370 $this->form->addItem($select);
373 if (!is_object($this->loginSettings)) {
374 $this->loginSettings =
new ilSetting(
"login_settings");
377 $login_settings = $this->loginSettings->getAll();
379 $def_language =
$lng->getDefaultLanguage();
383 if ($lang_key == $def_language) {
384 $add =
" (" .
$lng->txt(
"default") .
")";
388 $lng->txt(
"meta_l_" . $lang_key) . $add,
389 'login_message_' . $lang_key
392 $textarea->setValue($login_settings[
"login_message_" . $lang_key]);
393 $textarea->setUseRte(
true);
394 $textarea->setRteTagSet(
"extended");
395 $this->form->addItem($textarea);
397 unset($login_settings[
"login_message_" . $lang_key]);
401 $lang_key = substr(
$key, strrpos(
$key,
"_") + 1, strlen(
$key) - strrpos(
$key,
"_"));
404 $lng->txt(
"meta_l_" . $lang_key) . $add,
405 'login_message_' . $lang_key
409 $textarea->setUseRte(
true);
410 $textarea->setRteTagSet(
"extended");
412 $textarea->setAlert(
$lng->txt(
"not_installed"));
414 $this->form->addItem($textarea);
431 if (is_array($a_languages) && $a_def_language !=
"") {
435 foreach ($a_languages as $val) {
Login page editor settings GUI ILIAS page editor or richtext editor.
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
static _getFirstActiveServer()
Get first active server.
switchRTE()
Switch editor mode.
switchIPE()
Switch editor mode.
setDefLangFirst($a_def_language, $a_languages)
returns an array of all installed languages, default language at the first position ...
forwardToPageObject()
Forward to page editor.
initLoginForm()
Init login form.
executeCommand()
ilCtrl execute command
catch(Exception $e) $message
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static _getInstance()
singleton get instance
__construct($a_ref_id)
Constructor.
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true)
get content style path
showIliasEditor()
Show ILIAS page editor summary.
getSettings()
Get Settings.
showRichtextEditor()
Show richtext editor ilRbacSystem $rbacsystem ilLanguage $lng ilSetting $ilSetting.
setRows($a_rows)
Set Rows.
saveLoginInfo()
saves the login information data
This class represents a text area property in a property form.
show()
Show current activated editor.
static getInstance()
Get singelton instance.
activate()
Activate languages.
addEditorSwitch()
Show editore switch ilToolbarGUI $ilToolbar.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.