2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-10-04 18:15:20 +02:00
|
|
|
|
|
|
|
// Pandora - the Free monitoring system
|
|
|
|
// ====================================
|
|
|
|
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
|
|
|
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas, info@artica.es
|
|
|
|
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 2
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
2007-08-06 13:44:49 +02:00
|
|
|
$addr = "";
|
|
|
|
if (isset($_GET['sec'])){
|
|
|
|
$addr = 'http://' . $_SERVER['SERVER_NAME']; // TODO: check https
|
|
|
|
|
|
|
|
if ($_SERVER['SERVER_PORT'] != 80)
|
|
|
|
$addr .= ":" . $_SERVER['SERVER_PORT'];
|
|
|
|
|
|
|
|
$addr .= $_SERVER['REQUEST_URI'];
|
|
|
|
|
|
|
|
$addr = urlencode($addr);
|
|
|
|
}
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
?>
|
2007-05-27 04:55:55 +02:00
|
|
|
<div class='databox' id='login'>
|
|
|
|
<h1 id='log'><?php echo $lang_label['welcome_title']; ?></h1>
|
|
|
|
<div class='databox' id='login_in'>
|
2007-05-20 19:12:31 +02:00
|
|
|
<form method="post" action="index.php?login=1">
|
2007-05-27 04:55:55 +02:00
|
|
|
<table cellpadding='4' cellspacing='1' width='400'>
|
|
|
|
<tr><td rowspan='3' align='left' style="border-right: solid 1px #678;">
|
2006-12-24 23:40:09 +01:00
|
|
|
<a href="index.php">
|
2007-05-20 19:12:31 +02:00
|
|
|
<img src="images/pandora_logo.png" border="0" alt="logo"></a><br>
|
2006-03-27 05:37:27 +02:00
|
|
|
<?php echo $pandora_version; ?>
|
2007-05-30 19:32:35 +02:00
|
|
|
<td rowspan='3' width='5'>
|
2007-05-20 19:12:31 +02:00
|
|
|
<td class='f9b'>
|
2007-05-27 04:55:55 +02:00
|
|
|
Login <br>
|
2007-08-06 13:44:49 +02:00
|
|
|
<input class="login" type="text" name="nick" id="nick" value="">
|
2007-05-27 04:55:55 +02:00
|
|
|
</td></tr>
|
2007-05-20 19:12:31 +02:00
|
|
|
<tr><td class='f9b'>
|
2007-05-27 04:55:55 +02:00
|
|
|
Password <br>
|
2007-05-30 19:32:35 +02:00
|
|
|
<input class="login" type="password" name="pass" value="">
|
2007-05-27 04:55:55 +02:00
|
|
|
</td></tr>
|
2007-05-20 19:12:31 +02:00
|
|
|
<tr><td align='center'>
|
2007-05-27 04:55:55 +02:00
|
|
|
<input type="submit" class="sub next" value="Login">
|
|
|
|
</td></tr>
|
2007-05-20 19:12:31 +02:00
|
|
|
</table>
|
2007-08-06 13:44:49 +02:00
|
|
|
|
|
|
|
<?php if (strlen($addr) > 0) { ?>
|
|
|
|
<input type="hidden" name="redirect" value="<?php echo $addr; ?>">
|
|
|
|
<?php } ?>
|
2007-05-20 19:12:31 +02:00
|
|
|
</form>
|
2006-03-27 05:37:27 +02:00
|
|
|
</div>
|
2007-05-20 19:12:31 +02:00
|
|
|
<div id="ip"><?php echo 'IP: <b class="f10">'.$REMOTE_ADDR.'</b>'; ?></div>
|
|
|
|
|
2007-08-06 13:44:49 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
document.getElementById('nick').focus();
|
|
|
|
</script>
|