home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
login.inc
< prev
next >
Wrap
Text File
|
2004-03-08
|
5KB
|
163 lines
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $GO_CONFIG->host; ?>lib/login.css" />
<script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js"></script>
<link rel="shortcut icon" href="<?php echo $GO_CONFIG->host; ?>lib/favicon.ico" />
<title><?php echo $GO_CONFIG->title; ?></title>
</head>
<body>
<form method="post" action="<?php echo $GO_CONFIG->host; ?>index.php" name="login" target="_parent">
<input type="hidden" name="task" value="login" />
<?php
if (isset($_GET['return_to']))
{
echo '<input type="hidden" name="return_to" value="'.$_GET['return_to'].'" />';
}
?>
<table border="0" width="100%" height="95%" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="center">
<table id="header" border="0">
<tr>
<td id="header-logo">
<img src="<?php echo $GO_CONFIG->login_image; ?>" border="0" align="absmiddle" />
</td>
</tr>
<tr>
<td id="header-border"></td>
</tr>
<tr>
<td align="center">
<table cellspacing="2" border="0" cellpadding="1" valign="middle" align="center" style="margin: 20px;">
<tr>
<td colspan="2" align="center"><h1><?php echo $GO_CONFIG->title; ?></h1></td>
</tr>
<tr>
<td colspan="2" align="center">
<h3><?php echo $login_text; ?></h3>
<br />
<?php if (isset($feedback)) echo $feedback; ?>
</td>
</tr>
<tr>
<td align="right" nowrap>
<?php echo $login_username; ?>:
</td>
<td>
<?php
require($GO_CONFIG->root_path.'auth_mail_servers.inc');
if ($GO_CONFIG->auth_db_type == 'mail' && count($auth_mail_servers) > 0)
{
$dropbox = new dropbox();
$dropbox->add_value(-1, 'Group-Office');
for($i=0;$i<count($auth_mail_servers); $i++)
{
$dropbox->add_value($i, $auth_mail_servers[$i]['domain']);
}
echo '
<table border="0" cellpadding="1" cellspacing="0">
<tr><td><input type="text" class="textbox" name="username" value="" size="30" /></td><td>@</td><td>
';
$_COOKIE['GO_AUTH_MAIL_SERVER_KEY'] = isset($_COOKIE['GO_AUTH_MAIL_SERVER_KEY']) ? $_COOKIE['GO_AUTH_MAIL_SERVER_KEY'] : '0';
$auth_mail_server_key = isset($auth_mail_server_key) ? $auth_mail_server_key : $_COOKIE['GO_AUTH_MAIL_SERVER_KEY'];
$dropbox->print_dropbox('auth_mail_server_key', $auth_mail_server_key);
echo '</td></tr></table>';
}else
{
echo '<input type="text" class="textbox" name="username" value="" size="30" />';
}
?>
</td>
</tr>
<tr>
<td align="right" nowrap>
<?php echo $login_password; ?>:
</td>
<td>
<input class="textbox" type="password" name="password" value="" size="30" />
</td>
</tr>
<tr>
<td align="right" nowrap>
<?php echo $login_language; ?>:
</td>
<td>
<?php
$languages = $GO_LANGUAGE->get_languages();
$dropbox = new dropbox();
$dropbox->add_arrays($languages, $languages);
$dropbox->print_dropbox("SET_SESSION_LANGUAGE", $GO_LANGUAGE->language, 'onchange="javascript:set_language(this)"');
?>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<?php
$checkbox = new checkbox('remind', 'true', $login_remind, false);
?>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<br />
<?php
$button = new button($cmdLogin, 'javascript:document.forms[0].submit();');
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="FooterBar">
<a style="color: white;" target="_blank" href="http://www.intermesh.nl">Intermesh Group-Office <?php echo $GO_CONFIG->version; ?></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
var nav4 = window.Event ? true : false;
function processkeypress(e)
{
if(nav4)
{
var whichCode = e.which;
}else
{
var whichCode = event.keyCode;
}
if (whichCode == 13)
{
window.document.forms[0].submit();
return true;
}
}
if (window.Event) //if Navigator 4.X
{
document.captureEvents(Event.KEYPRESS)
}
document.onkeypress = processkeypress;
document.forms[0].username.focus();
function set_language(dropbox)
{
document.location='<?php echo $_SERVER['PHP_SELF']; ?>?SET_SESSION_LANGUAGE='+dropbox.value;
}
</script>
</form>
</body>
</html>