Viewing file: interface.php (3.59 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP
// ------ create table variable ------
// variables for Netscape Navigator 3 & 4 are +4 for compensation of render errors
$Browser_Type = strtok($HTTP_USER_AGENT, "/");
if ( ereg( "MSIE", $HTTP_USER_AGENT) || ereg( "Mozilla/5.0", $HTTP_USER_AGENT) ) {
$theTable = 'WIDTH="400" HEIGHT="245"';
} else {
$theTable = 'WIDTH="404" HEIGHT="249"';
}
// ------ create document-location variable ------
if ( ereg("php\.exe", $PHP_SELF) || ereg("php3\.cgi", $PHP_SELF) || ereg("phpts\.exe", $PHP_SELF) ) {
// $documentLocation = $HTTP_ENV_VARS["PATH_INFO"];
$documentLocation = getenv("PATH_INFO");
} else {
$documentLocation = $PHP_SELF;
}
if ( getenv("QUERY_STRING") ) {
$documentLocation .= "?" . getenv("QUERY_STRING");
}
?>
<html><head>
<meta name="description" content="<?PHP echo $strLoginInterface; ?>">
<meta name="keywords" content="<?PHP echo $strLogin; ?>">
<title><?PHP echo $strLoginInterface; ?></title>
<SCRIPT LANGUAGE="JavaScript">
<!--
// ------ check form ------
function checkData() {
var f1 = document.forms[0];
var wm = "<?PHP echo $strJSHello; ?>\n\r\n";
var noerror = 1;
// --- entered_login ---
var t1 = f1.entered_login;
if (t1.value == "" || t1.value == " ") {
wm += "<?PHP echo $strLogin; ?>\r\n";
noerror = 0;
}
// --- entered_password ---
var t1 = f1.entered_password;
if (t1.value == "" || t1.value == " ") {
wm += "<?PHP echo $strPassword; ?>\r\n";
noerror = 0;
}
// --- check if errors occurred ---
if (noerror == 0) {
alert(wm);
return false;
}
else return true;
}
//-->
</SCRIPT>
<style type="text/css">
<!--
A:hover.link {
background-color: #E9E9E9;
}
//-->
</style>
</head>
<body bgcolor="White" TEXT="Black"><center>
<form action='<?PHP echo $documentLocation; ?>' METHOD="post" onSubmit="return checkData()">
<TABLE WIDTH="100%" HEIGHT="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center" VALIGN="middle">
<!-- Place your logo here -->
<TABLE <?PHP echo $theTable; ?> CELLPADDING="0" CELLSPACING="0" BACKGROUND="/images/<?PHP echo $bgImage; ?>"><TR><TD ALIGN="center" VALIGN="middle">
<TABLE CELLPADDING="4" WIDTH="100%" HEIGHT="100%" BACKGROUND="">
<TR><TD ALIGN="center" COLSPAN="2"><h1><?PHP echo $strLoginInterface; ?></h1></TD></TR>
<TR><TD ALIGN="center" COLSPAN="2">
<B><I><NOBR><?PHP
// check for error messages
if ($message) {
echo $message;
} ?></NOBR></I></B>
</TD></TR>
<tr><TD VALIGN="bottom"><A HREF="<?PHP echo $cfgUrl . getenv("HTTP_HOST") . $cfgIndexpage; ?>" TABINDEX="2">
<IMG SRC="/images/cancel.gif" ALIGN="left" WIDTH="22" HEIGHT="23" ALT="<?PHP echo $strCancel; ?>" BORDER=0 hspace=10 vspace=4></A>
</TD>
<td ALIGN="right" VALIGN="bottom">
<table cellpadding=4 cellspacing=1 BACKGROUND="">
<tr><td><B><FONT FACE="Arial,Helvetica,sans-serif" SIZE="-1"><?PHP echo $strLogin; ?>: </FONT></B></td>
<td> <INPUT TYPE="text" NAME="entered_login" STYLE="font-size: 9pt;" TABINDEX="1"></td></tr>
<tr><td><B><FONT FACE="Arial,Helvetica,sans-serif" SIZE="-1"><?PHP echo $strPassword; ?>: </FONT></B></td>
<td> <INPUT TYPE="password" NAME="entered_password" STYLE="font-size: 9pt;" TABINDEX="1"></td></tr>
</table>
<INPUT TYPE=image src="/images/enter.gif" WIDTH="26" HEIGHT="23" border=0 hspace=7 vspace=4 alt="<?PHP echo $strEnter; ?> >>>" TABINDEX="1">
</td></tr></table>
</TD></TR></TABLE>
</TD></TR></TABLE>
</form>
</center>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.forms[0].entered_login.select();
document.forms[0].entered_login.focus();
//-->
</SCRIPT>
</body></html>
|