squirrelmail-webmail
1.4.22
|
Go to the documentation of this file. 16 define(
'PAGE_NAME',
'login');
22 define(
'SM_PATH',
'../');
25 require_once(
SM_PATH .
'functions/global.php');
26 require_once(
SM_PATH .
'functions/i18n.php');
27 require_once(
SM_PATH .
'functions/plugin.php');
28 require_once(
SM_PATH .
'functions/constants.php');
29 require_once(
SM_PATH .
'functions/page_header.php');
30 require_once(
SM_PATH .
'functions/html.php');
31 require_once(
SM_PATH .
'functions/forms.php');
56 if (!empty($_SESSION)) {
101 session_module_name(
'user');
102 session_set_save_handler($open, $close,
$read, $write, $destroy, $gc);
115 header(
'Cache-Control: no-cache, no-store, must-revalidate');
116 header(
'Pragma: no-cache');
117 header(
'Expires: Sat, 1 Jan 2000 00:00:00 GMT');
121 $loginname_value = (sqGetGlobalVar(
'loginname', $loginname) ? htmlspecialchars($loginname) :
'');
125 $header =
"<script language=\"JavaScript\" type=\"text/javascript\">\n" .
127 " var alreadyFocused = false;\n".
128 " function squirrelmail_loginpage_onload() {\n".
129 " document.login_form.js_autodetect_results.value = '" .
SMPREF_JS_ON .
"';\n".
130 " if (alreadyFocused) return;\n".
131 " var textElements = 0;\n".
132 " for (i = 0; i < document.login_form.elements.length; i++) {\n".
133 " if (document.login_form.elements[i].type == \"text\" || document.login_form.elements[i].type == \"password\") {\n".
134 " textElements++;\n".
135 " if (textElements == " . (isset($loginname) ? 2 : 1) .
") {\n".
136 " document.login_form.elements[i].focus();\n".
163 echo
"<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\" onLoad=\"squirrelmail_loginpage_onload();\">" .
164 "\n" .
addForm(
'redirect.php',
'post',
'login_form');
172 $mailtofield =
addHidden(
'mailtodata', $mailtodata);
180 $width_and_height =
'';
183 $width_and_height =
" width=\"$org_logo_width\"";
187 $width_and_height .=
" height=\"$org_logo_height\"";
201 '<small>' .
sprintf (
_(
"SquirrelMail version %s"),
$version) .
'<br />' .
"\n".
202 ' ' .
_(
"By the SquirrelMail Project Team") .
'<br /></small>' .
"\n" ) .
215 'right',
'',
'width="30%"' ) .
218 'left',
'',
'width="70%"' )
223 'right',
'',
'width="30%"' ) .
229 'left',
'',
'width="70%"' )
231 'center',
$color[4],
'border="0" width="100%"' ) ,
236 '<center>'.
addSubmit(
_(
"Login")) .
'</center>',
239 '',
$color[4],
'border="0" width="350"' ) .
'</center>',
242 '',
$color[4],
'border="0" cellspacing="0" cellpadding="0" width="100%"' );
244 echo
'</form>' .
"\n";
sqgetGlobalVar($name, &$value, $search=SQ_INORDER)
html_tag( $tag, $val='', $align='', $bgcolor='', $xtra='')
powered by Systran sprintf(_("Number of supported language pairs: %s"), '36').' '
set_up_language($sm_language, $do_search=false, $default=false)
if(!empty($_SESSION)) global $custom_session_handlers
sqsession_register($var, $name)
global $squirrelmail_language