45 $ilCtrl->saveParameter($this, array(
"rep_ref_id",
"lang",
"target",
"client_id"));
53 $cmd = $this->ctrl->getCmd(
"processIndexPHP");
54 $next_class = $this->ctrl->getNextClass($this);
58 case "ilregistrationgui":
59 require_once(
"Services/Registration/classes/class.ilRegistrationGUI.php");
63 case "ilpasswordassistancegui":
64 require_once(
"Services/Init/classes/class.ilPasswordAssistanceGUI.php");
79 $this->ctrl->setCmdClass(
"ilregistrationgui");
80 $this->ctrl->setCmd(
"");
89 $this->ctrl->setCmdClass(
"ilpasswordassistancegui");
90 $this->ctrl->setCmd(
"");
103 $status = $ilAuth->getStatus();
106 $status =
$_GET[
"auth_stat"];
115 if ($_POST[
"lang"] !=
"")
123 if (empty(
$_GET[
'cookies']))
125 setcookie(
"iltest",
"cookie");
127 header(
"Location: login.php?target=".
$_GET[
"target"].
"&soap_pw=".
$_GET[
"soap_pw"].
"&ext_uid=".
$_GET[
"ext_uid"].
"&cookies=nocookies&client_id=".rawurlencode(CLIENT_ID).
"&lang=".
$_GET[
'lang']);
136 unset(
$_GET[
'cookies']);
140 if (!$ilSetting->get(
"setup_ok"))
142 die(
"Setup is not completed. Please run setup routine again. (Login)");
145 if ($ilSetting->get(
"shib_active") && $ilSetting->get(
"shib_hos_type"))
147 require_once
"./Services/AuthShibboleth/classes/class.ilShibbolethWAYF.php";
152 if (isset($WAYF) && $WAYF->isSelection())
154 if ($WAYF->isValidSelection())
157 $WAYF->setSAMLCookie();
163 elseif ($ilAuth->getAuth())
168 if(!$ilUser->checkTimeLimit())
177 include_once
'./Services/Tracking/classes/class.ilOnlineTracking.php';
181 if ($ilSetting->get(
"chat_active"))
183 include_once
"./Modules/Chat/classes/class.ilChatServerCommunicator.php";
184 include_once
"./Modules/Chat/classes/class.ilChatRoom.php";
191 include_once
'./Modules/Forum/classes/class.ilObjForum.php';
194 if (
$_GET[
"rep_ref_id"] !=
"")
204 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.login.html");
207 if (
$_GET[
"lang"] ==
"")
209 $_GET[
"lang"] = $ilIliasIniFile->readVariable(
"language",
"default");
215 $tpl->setVariable(
"PAGETITLE",
$lng->txt(
"startpage"));
216 $tpl->setVariable(
"TXT_OK",
$lng->txt(
"ok"));
218 $languages =
$lng->getInstalledLanguages();
220 foreach ($languages as $lang_key)
222 $tpl->setCurrentBlock(
"languages");
223 $tpl->setVariable(
"LANG_KEY", $lang_key);
224 $tpl->setVariable(
"LANG_NAME",
226 $tpl->setVariable(
"BORDER", 0);
227 $tpl->setVariable(
"VSPACE", 0);
228 $tpl->parseCurrentBlock();
232 include_once
'Services/Registration/classes/class.ilRegistrationSettings.php';
235 $tpl->setCurrentBlock(
"new_registration");
236 $tpl->setVariable(
"REGISTER",
$lng->txt(
"registration"));
237 $tpl->setVariable(
"CMD_REGISTER",
238 $this->ctrl->getLinkTargetByClass(
"ilregistrationgui",
""));
239 $tpl->parseCurrentBlock();
242 if ($ilSetting->get(
"password_assistance"))
244 $tpl->setCurrentBlock(
"password_assistance");
245 $tpl->setVariable(
"FORGOT_PASSWORD",
$lng->txt(
"forgot_password"));
246 $tpl->setVariable(
"FORGOT_USERNAME",
$lng->txt(
"forgot_username"));
247 $tpl->setVariable(
"CMD_FORGOT_PASSWORD",
248 $this->ctrl->getLinkTargetByClass(
"ilpasswordassistancegui",
""));
249 $tpl->setVariable(
"CMD_FORGOT_USERNAME",
250 $this->ctrl->getLinkTargetByClass(
"ilpasswordassistancegui",
"showUsernameAssistanceForm"));
251 $tpl->setVariable(
"LANG_ID",
$_GET[
"lang"]);
252 $tpl->parseCurrentBlock();
255 if ($ilSetting->get(
"pub_section"))
257 $tpl->setCurrentBlock(
"homelink");
258 $tpl->setVariable(
"CLIENT_ID",
"?client_id=".
$_COOKIE[
"ilClientId"].
"&lang=".
$_GET[
"lang"]);
259 $tpl->setVariable(
"TXT_HOME",
$lng->txt(
"home"));
260 $tpl->parseCurrentBlock();
263 if ($ilIliasIniFile->readVariable(
"clients",
"list"))
265 $tpl->setCurrentBlock(
"client_list");
266 $tpl->setVariable(
"TXT_CLIENT_LIST",
$lng->txt(
"to_client_list"));
267 $tpl->setVariable(
"CMD_CLIENT_LIST",
268 $this->ctrl->getLinkTarget($this,
"showClientList"));
269 $tpl->parseCurrentBlock();
273 if ($ilSetting->get(
"shib_active"))
275 if($ilSetting->get(
"shib_hos_type") !=
'external_wayf'){
276 $tpl->setCurrentBlock(
"shibboleth_wayf_login");
277 $tpl->setVariable(
"TXT_SHIB_LOGIN",
$lng->txt(
"login_to_ilias_via_shibboleth"));
278 $tpl->setVariable(
"TXT_SHIB_FEDERATION_NAME", $ilSetting->get(
"shib_federation_name"));
279 $tpl->setVariable(
"TXT_SELECT_HOME_ORGANIZATION", sprintf(
$lng->txt(
"shib_select_home_organization"), $ilSetting->get(
"shib_federation_name")));
280 $tpl->setVariable(
"TXT_CONTINUE",
$lng->txt(
"btn_next"));
281 $tpl->setVariable(
"TXT_SHIB_HOME_ORGANIZATION",
$lng->txt(
"shib_home_organization"));
282 $tpl->setVariable(
"TXT_SHIB_LOGIN_INSTRUCTIONS",
$lng->txt(
"shib_general_wayf_login_instructions").
' <a href="mailto:'.$ilias->getSetting(
"admin_email").
'">ILIAS '.
$lng->txt(
"administrator").
'</a>.');
283 $tpl->setVariable(
"TXT_SHIB_CUSTOM_LOGIN_INSTRUCTIONS", $ilSetting->get(
"shib_login_instructions"));
284 $tpl->setVariable(
"TXT_SHIB_INVALID_SELECTION", $WAYF->showNotice());
285 $tpl->setVariable(
"SHIB_IDP_LIST", $WAYF->generateSelection());
286 $tpl->setVariable(
"ILW_TARGET",
$_GET[
"target"]);
288 $tpl->parseCurrentBlock();
290 $tpl->setCurrentBlock(
"shibboleth_login");
291 $tpl->setVariable(
"TXT_SHIB_LOGIN",
$lng->txt(
"login_to_ilias_via_shibboleth"));
292 $tpl->setVariable(
"IL_TARGET",
$_GET[
"target"]);
293 $tpl->setVariable(
"TXT_SHIB_FEDERATION_NAME", $ilSetting->get(
"shib_federation_name"));
294 $tpl->setVariable(
"TXT_SHIB_LOGIN_BUTTON", $ilSetting->get(
"shib_login_button"));
295 $tpl->setVariable(
"TXT_SHIB_LOGIN_INSTRUCTIONS", sprintf(
$lng->txt(
"shib_general_login_instructions"),$ilSetting->get(
"shib_federation_name")).
' <a href="mailto:'.$ilias->getSetting(
"admin_email").
'">ILIAS '.
$lng->txt(
"administrator").
'</a>.');
296 $tpl->setVariable(
"TXT_SHIB_CUSTOM_LOGIN_INSTRUCTIONS", $ilSetting->get(
"shib_login_instructions"));
297 $tpl->parseCurrentBlock();
302 if ($ilSetting->get(
"cas_active"))
304 $tpl->setCurrentBlock(
"cas_login");
305 $tpl->setVariable(
"TXT_CAS_LOGIN",
$lng->txt(
"login_to_ilias_via_cas"));
307 $tpl->setVariable(
"TXT_CAS_LOGIN_INSTRUCTIONS", $ilSetting->get(
"cas_login_instructions"));
308 $this->ctrl->setParameter($this,
"forceCASLogin",
"1");
309 $tpl->setVariable(
"TARGET_CAS_LOGIN",
310 $this->ctrl->getLinkTarget($this,
"showLogin"));
311 $this->ctrl->setParameter($this,
"forceCASLogin",
"");
312 $tpl->parseCurrentBlock();
316 include_once(
'./Services/Authentication/classes/class.ilAuthModeDetermination.php');
322 $tpl->setCurrentBlock(
'auth_mode_row');
323 $tpl->setVariable(
'VAL_AUTH_MODE',$key);
324 $tpl->setVariable(
'AUTH_CHECKED',isset($option[
'checked']) ?
'checked=checked' :
'');
325 $tpl->setVariable(
'TXT_AUTH_MODE',$option[
'txt']);
326 $tpl->parseCurrentBlock();
329 $tpl->setCurrentBlock(
'auth_selection');
330 $tpl->setVariable(
'TXT_AUTH_MODE',
$lng->txt(
'auth_selection'));
331 $tpl->parseCurrentBlock();
337 $ilSetting->get(
"shib_auth_allow_local")) &&
338 $ilSetting->get(
"auth_mode") !=
AUTH_CAS)
340 $loginSettings =
new ilSetting(
"login_settings");
341 if (
$_GET[
"lang"] ==
false)
343 $information = $loginSettings->get(
"login_message_".
$lng->getDefaultLanguage());
347 $information = $loginSettings->get(
"login_message_".
$_GET[
"lang"]);
350 if(strlen(trim($information)))
352 $tpl->setVariable(
"TXT_LOGIN_INFORMATION", $information);
354 $tpl->setVariable(
"TXT_ILIAS_LOGIN",
$lng->txt(
"login_to_ilias"));
355 $tpl->setVariable(
"TXT_USERNAME",
$lng->txt(
"username"));
356 $tpl->setVariable(
"TXT_PASSWORD",
$lng->txt(
"password"));
358 $tpl->setVariable(
"TXT_SUBMIT",
$lng->txt(
"submit"));
359 $tpl->parseCurrentBlock();
362 $tpl->setVariable(
"ILIAS_RELEASE", $ilSetting->get(
"ilias_version"));
364 $this->ctrl->setTargetScript(
"login.php");
365 $tpl->setVariable(
"FORMACTION",
366 $this->ctrl->getFormAction($this));
368 $tpl->setVariable(
"LANG_FORM_ACTION",
369 $this->ctrl->getFormAction($this));
370 $tpl->setVariable(
"TXT_CHOOSE_LANGUAGE",
$lng->txt(
"choose_language"));
371 $tpl->setVariable(
"LANG_ID",
$_GET[
"lang"]);
373 if(
$_GET[
'inactive'])
375 $tpl->setVariable(TXT_MSG_LOGIN_FAILED,
$lng->txt(
'err_inactive'));
377 else if(
$_GET[
'expired'])
379 $tpl->setVariable(TXT_MSG_LOGIN_FAILED,
$lng->txt(
'err_session_expired'));
381 else if(
$_GET[
'login_to_purchase_object'])
383 $lng->loadLanguageModule(
'payment');
384 $tpl->setVariable(TXT_MSG_LOGIN_FAILED,
$lng->txt(
'payment_login_to_buy_object'));
388 $status = $ilAuth->getStatus();
393 $status =
$_GET[
"auth_stat"];
395 $auth_error = $ilias->getAuthError();
402 $tpl->setVariable(
'TXT_MSG_LOGIN_FAILED',
$lng->txt(
"err_session_expired"));
410 $tpl->setVariable(
'TXT_MSG_LOGIN_FAILED',
411 $lng->txt(
"err_auth_cas_no_ilias_user"));
415 $tpl->setVariable(
'TXT_MSG_LOGIN_FAILED',
416 $lng->txt(
"err_auth_soap_no_ilias_user"));
420 $tpl->setVariable(
'TXT_MSG_LOGIN_FAILED',
421 $lng->txt(
'err_auth_ldap_no_ilias_user'));
425 $tpl->setVariable(
'TXT_MSG_LOGIN_FAILED',
426 $lng->txt(
'err_auth_radius_no_ilias_user'));
430 $tpl->setVariable(
'TXT_MSG_LOGIN_FAILED',
431 $lng->txt(
'err_auth_mode_inactive'));
438 if (is_object($auth_error))
440 $add =
"<br>".$auth_error->getMessage();
442 $tpl->setVariable(TXT_MSG_LOGIN_FAILED,
$lng->txt(
"err_wrong_login").$add);
448 if (
$_GET[
'time_limit'])
450 $tpl->setVariable(
"TXT_MSG_LOGIN_FAILED",
$lng->txt(
'time_limit_reached'));
454 if(
$_GET[
'wrong_ip'])
456 $tpl->setVariable(
"TXT_MSG_LOGIN_FAILED",
$lng->txt(
'wrong_ip_detected').
" (".$_SERVER[
"REMOTE_ADDR"].
")");
459 $this->ctrl->setTargetScript(
"ilias.php");
460 $tpl->setVariable(
"PHP_SELF", $_SERVER[
'PHP_SELF']);
461 $tpl->setVariable(
"USER_AGREEMENT",
$lng->txt(
"usr_agreement"));
462 $tpl->setVariable(
"LINK_USER_AGREEMENT",
463 $this->ctrl->getLinkTarget($this,
"showUserAgreement"));
466 if (
$_GET[
'cookies'] ==
'nocookies')
468 $tpl->setVariable(TXT_MSG_LOGIN_FAILED,
$lng->txt(
"err_no_cookies"));
469 $tpl->setVariable(
"COOKIES_HOWTO",
$lng->txt(
"cookies_howto"));
470 $tpl->setVariable(
"LINK_NO_COOKIES",
471 $this->ctrl->getLinkTarget($this,
"showNoCookiesScreen"));
474 $tpl->show(
"DEFAULT",
false);
488 $lng->loadLanguageModule(
'auth');
489 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.login_account_migration.html");
490 $tpl->addJavaScript(
'./Services/Authentication/js/account_migration.js');
492 if(strlen($a_message))
496 $tpl->setVariable(
'FORMACTION',$this->ctrl->getFormAction($this,
'migrateAccount'));
497 $tpl->setVariable(
'TXT_ACCOUNT_MIGRATION',$lng->txt(
'auth_account_migration'));
498 $tpl->setVariable(
'INFO_MIGRATE',$lng->txt(
'auth_info_migrate'));
499 $tpl->setVariable(
'INFO_ADD',$lng->txt(
'auth_info_add'));
501 $tpl->setVariable(
'MIG_USER',$_POST[
'username']);
502 $tpl->setVariable(
'TXT_USER',$lng->txt(
'login'));
503 $tpl->setVariable(
'TXT_PASS',$lng->txt(
'password'));
505 $tpl->setVariable(
'TXT_SUBMIT',$lng->txt(
'save'));
506 $tpl->setVariable(
'TXT_CANCEL',$lng->txt(
'cancel'));
508 $tpl->show(
'DEFAULT');
519 global
$lng,$ilClientIniFile,
$ilLog,$rbacadmin;
521 $lng->loadLanguageModule(
'auth');
523 if(!isset($_POST[
'account_migration']))
529 if($_POST[
'account_migration'] == 1 and (!strlen($_POST[
'mig_username']) or !strlen($_POST[
'mig_password'])))
535 if($_POST[
'account_migration'] == 1)
542 $_POST[
'username'] = $_POST[
'mig_username'];
543 $_POST[
'password'] = $_POST[
'mig_password'];
544 $auth_params = array(
546 'table' => $ilClientIniFile->readVariable(
"auth",
"table"),
547 'usernamecol' => $ilClientIniFile->readVariable(
"auth",
"usercol"),
548 'passwordcol' => $ilClientIniFile->readVariable(
"auth",
"passcol")
552 if(!$ilAuth->getAuth())
569 $rbacadmin->assignUser((
int) $role,
$user->getId());
574 $ilLog->write(__METHOD__.
': Migrated '.
$_SESSION[
'tmp_external_account'].
' to ILIAS account '.
$user->getLogin().
'.');
576 elseif($_POST[
'account_migration'] == 2)
581 $_POST[
'username'] =
$_SESSION[
'tmp_external_account'];
582 $_POST[
'password'] =
$_SESSION[
'tmp_pass'];
584 include_once(
'Services/LDAP/classes/class.ilAuthLDAP.php');
587 $ilAuth->setIdle($ilClientIniFile->readVariable(
"session",
"expire"),
false);
593 $_POST[
'username'] =
$_SESSION[
'tmp_external_account'];
594 $_POST[
'password'] =
$_SESSION[
'tmp_pass'];
596 include_once(
'Services/Radius/classes/class.ilAuthRadius.php');
599 $ilAuth->setIdle($ilClientIniFile->readVariable(
"session",
"expire"),
false);
617 if($ilSetting->get(
"chat_active"))
619 include_once
"./Modules/Chat/classes/class.ilChatServerCommunicator.php";
628 setcookie(
"ilClientId",
"");
632 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.logout.html");
634 if ($ilSetting->get(
"pub_section"))
636 $tpl->setCurrentBlock(
"homelink");
637 $tpl->setVariable(
"CLIENT_ID",
"?client_id=".
$client_id.
"&lang=".
$_GET[
'lang']);
638 $tpl->setVariable(
"TXT_HOME",$lng->txt(
"home"));
639 $tpl->parseCurrentBlock();
642 if ($ilIliasIniFile->readVariable(
"clients",
"list"))
644 $tpl->setCurrentBlock(
"client_list");
645 $tpl->setVariable(
"TXT_CLIENT_LIST", $lng->txt(
"to_client_list"));
646 $tpl->setVariable(
"CMD_CLIENT_LIST",
647 $this->ctrl->getLinkTarget($this,
"showClientList"));
648 $tpl->parseCurrentBlock();
651 $tpl->setVariable(
"TXT_PAGEHEADLINE", $lng->txt(
"logout"));
652 $tpl->setVariable(
"TXT_LOGOUT_TEXT", $lng->txt(
"logout_text"));
653 $tpl->setVariable(
"TXT_LOGIN", $lng->txt(
"login_to_ilias"));
654 $tpl->setVariable(
"CLIENT_ID",
"?client_id=".
$client_id.
"&lang=".
$_GET[
'lang']);
667 $valid = $ilAuth->getValidationData();
669 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.user_mapping_selection.html");
675 $tpl->setCurrentBlock(
"msg");
676 $tpl->setVariable(
"TXT_MSG_LOGIN_FAILED", $lng->txt(
"err_wrong_login"));
677 $tpl->parseCurrentBlock();
680 include_once(
'./Services/User/classes/class.ilObjUser.php');
681 if (count($email_user) == 1)
684 $tpl->setCurrentBlock(
"one_user");
685 $tpl->setVariable(
"TXT_USERNAME", $lng->txt(
"username"));
686 $tpl->setVariable(
"VAL_USERNAME", current($email_user));
687 $tpl->setVariable(
"USER_ID", key($email_user));
688 $tpl->parseCurrentBlock();
692 foreach($email_user as $key => $login)
694 $tpl->setCurrentBlock(
"user");
695 $tpl->setVariable(
"USR_ID", $key);
696 $tpl->setVariable(
"VAL_USER", $login);
697 $tpl->parseCurrentBlock();
699 $tpl->setCurrentBlock(
"multpiple_user");
700 $tpl->parseCurrentBlock();
703 $tpl->setCurrentBlock(
"content");
704 $this->ctrl->setParameter($this,
"ext_uid", urlencode(
$_GET[
"ext_uid"]));
705 $this->ctrl->setParameter($this,
"soap_pw", urlencode(
$_GET[
"soap_pw"]));
706 $this->ctrl->setParameter($this,
"auth_stat",
$_GET[
"auth_stat"]);
707 $tpl->setVariable(
"FORMACTION",
708 $this->ctrl->getFormAction($this));
709 $tpl->setVariable(
"TXT_ILIAS_LOGIN", $lng->txt(
"login_to_ilias"));
710 if (count($email_user) == 1)
712 $tpl->setVariable(
"TXT_EXPLANATION", $lng->txt(
"ums_explanation"));
713 $tpl->setVariable(
"TXT_EXPLANATION_2", $lng->txt(
"ums_explanation_2"));
717 $tpl->setVariable(
"TXT_EXPLANATION", $lng->txt(
"ums_explanation_3"));
718 $tpl->setVariable(
"TXT_EXPLANATION_2", $lng->txt(
"ums_explanation_4"));
720 $tpl->setVariable(
"TXT_CREATE_USER", $lng->txt(
"ums_create_new_account"));
721 $tpl->setVariable(
"TXT_PASSWORD", $lng->txt(
"password"));
723 $tpl->setVariable(
"TXT_SUBMIT", $lng->txt(
"login"));
735 if (!$ilIliasIniFile->readVariable(
"clients",
"list"))
741 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
744 $tpl->setVariable(
"PAGETITLE",
"Client List");
745 $tpl->setVariable(
"LOCATION_STYLESHEET",
"./templates/default/delos.css");
748 $tpl->addBlockfile(
"CONTENT",
"content",
"tpl.client_list.html");
751 $tpl->addBlockfile(
"CLIENT_LIST",
"client_list",
"tpl.table.html");
754 $tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
757 require_once(
"setup/classes/class.ilClientList.php");
758 require_once(
"setup/classes/class.ilClient.php");
759 require_once(
"setup/classes/class.ilDBConnections.php");
760 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
763 $list = $clientlist->getClients();
765 if (count($list) == 0)
767 header(
"Location: ./setup/setup.php");
771 foreach ($list as $key =>
$client)
773 if (
$client->checkDatabaseExists() and
$client->ini->readVariable(
"client",
"access") and
$client->getSetting(
"setup_ok"))
775 $this->ctrl->setParameter($this,
"client_id", $key);
783 "<a href=\"".$ilCtrl->getLinkTarget($this,
"processIndexPHP").
"\">Start page</a>",
784 "<a href=\"".
"login.php?cmd=force_login&client_id=".urlencode($key).
"\">Login page</a>"
788 $this->ctrl->setParameter($this,
"client_id",
"");
794 $tbl->setTitle(
"Available Clients");
795 $tbl->setHeaderNames(array(
"Installation Name",
"Public Access",
"Login"));
796 $tbl->setHeaderVars(array(
"name",
"index",
"login"));
797 $tbl->setColumnWidth(array(
"50%",
"25%",
"25%"));
800 $tbl->setOrderColumn(
$_GET[
"sort_by"],
"name");
801 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
802 $tbl->setLimit(
$_GET[
"limit"]);
803 $tbl->setOffset(
$_GET[
"offset"]);
806 $tbl->setData(
$data);
809 $tbl->setFooter(
"tblfooter");
812 $tbl->setStyle(
"table",
"std");
814 $tbl->disable(
"icon");
815 $tbl->disable(
"numinfo");
831 $str =
"<p style=\"margin:15px;\">
832 You need to enable Session Cookies in your Browser to use ILIAS.
835 <br/>Tools -> Options -> Privacy -> Cookies
836 <br/>Enable 'Allow sites to set cookies' and activate option 'Keep
837 <br/>cookies' auf 'until I close Firefox'
839 <br/><b>Mozilla/Netscape</b>
840 <br/>Edit -> Preferences -> Privacy&Security -> Cookies
841 <br/>Go to 'Cookie Lifetime Policy' and check option 'Accept for current
844 <br/><b>Internet Explorer</b>
845 <br/>Tools -> Internet Options -> Privacy -> Advanced
846 <br/>- Check 'Override automatic cookie handling'
847 <br/>- Check 'Always allow session cookies'
849 $tpl->setVariable(
"CONTENT", $str);
868 require_once
"./Services/User/classes/class.ilUserAgreement.php";
870 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.view_usr_agreement.html");
871 $tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
877 $tpl->setVariable(
"TXT_CHOOSE_LANGUAGE", $lng->txt(
"choose_language"));
878 $tpl->setVariable(
"TXT_OK", $lng->txt(
"ok"));
881 $languages = $lng->getInstalledLanguages();
883 $count = (int) round(count($languages) / 2);
886 foreach ($languages as $lang_key)
888 $tpl->setCurrentBlock(
"languages");
889 $tpl->setVariable(
"LANG_VAL_CMD", $this->ctrl->getCmd());
890 $tpl->setVariable(
"AGR_LANG_ACTION",
891 $this->ctrl->getFormAction($this));
892 $tpl->setVariable(
"LANG_NAME",
894 $tpl->setVariable(
"LANG_ICON", $lang_key);
895 $tpl->setVariable(
"LANG_KEY", $lang_key);
896 $tpl->setVariable(
"BORDER", 0);
897 $tpl->setVariable(
"VSPACE", 0);
898 $tpl->parseCurrentBlock();
902 $tpl->setCurrentBlock(
"content");
905 $tpl->setVariable(
"TXT_PAGEHEADLINE", $lng->txt(
"usr_agreement"));
906 $tpl->setVariable(
"TXT_PAGETITLE",
"ILIAS3 - ".$lng->txt(
"usr_agreement"));
909 if ($this->ctrl->getCmd() ==
"getAcceptance")
911 if ($_POST[
"status"]==
"accepted")
913 $ilUser->writeAccepted();
916 $tpl->setVariable(
"VAL_CMD",
"getAcceptance");
917 $tpl->setVariable(
"AGR_LANG_ACTION",
918 $this->ctrl->getFormAction($this));
919 $tpl->setCurrentBlock(
"get_acceptance");
920 $tpl->setVariable(
"FORM_ACTION",
921 $this->ctrl->getFormAction($this));
923 $tpl->setVariable(
"ACCEPT_AGREEMENT", $lng->txt(
"accept_usr_agreement"));
924 $tpl->setVariable(
"TXT_SUBMIT", $lng->txt(
"submit"));
925 $tpl->parseCurrentBlock();
929 $tpl->setCurrentBlock(
"back");
930 $tpl->setVariable(
"BACK", $lng->txt(
"back"));
931 $tpl->setVariable(
"LINK_BACK",
932 $this->ctrl->getLinkTargetByClass(
"ilstartupgui",
"showLogin"));
933 $tpl->parseCurrentBlock();
949 if (!isset(
$_GET[
"client_id"]) &&
950 $_GET[
"cmd"] ==
"" &&
951 $ilIliasIniFile->readVariable(
"clients",
"list"))
983 $start =
"login.php";
992 if ($ilSetting->get(
"pub_section") && $_POST[
"sendLogin"] !=
"1"
993 && ($ilAuth->getStatus() != -101 &&
$_GET[
"soap_pw"] ==
""))
998 $_POST[
"username"] =
"anonymous";
999 $_POST[
"password"] =
"anonymous";
1001 if (ANONYMOUS_USER_ID ==
"")
1003 die (
"Public Section enabled, but no Anonymous user found.");
1005 if (!$ilAuth->getAuth())
1007 die(
"ANONYMOUS user with the object_id ".ANONYMOUS_USER_ID.
" not found!");
1011 $ilInit->initUserAccount();
1032 if (
$_SESSION[
"AccountId"] == ANONYMOUS_USER_ID || !empty(
$_GET[
"ref_id"]))
1036 if (
$_SESSION[
"AccountId"] == ANONYMOUS_USER_ID &&
$_GET[
"target"] !=
"")
1052 if (empty(
$_GET[
"ref_id"]))
1054 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1056 $ilCtrl->initBaseClass(
"");
1057 $ilCtrl->setCmd(
"frameset");
1058 $start_script =
"repository.php";
1059 include($start_script);
1067 if (
$_GET[
"target"] !=
"")
1069 $tarr = explode(
"_",
$_GET[
"target"]);
1070 if ($tarr[0] !=
"pg" && $tarr[0] !=
"st" && $tarr[1] > 0)
1078 #$ilCtrl->initBaseClass("ilPersonalDesktopGUI");
1079 #$start_script = "ilias.php";
1090 include($start_script);
1095 global $objDefinition;
1097 if ($a_target ==
"")
1102 $t_arr = explode(
"_",
$_GET[
"target"]);
1110 if ($type ==
"pg" | $type ==
"st")
1115 $class = $objDefinition->getClassName($type);
1120 $location = $objDefinition->getLocation($type);
1121 $full_class =
"ilObj".$class.
"Access";
1122 include_once(
$location.
"/class.".$full_class.
".php");
1124 return call_user_func(array($full_class,
"_checkGoto"),