2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-10-04 18:15:20 +02:00
|
|
|
|
2008-08-22 20:07:32 +02:00
|
|
|
// Pandora FMS - the Flexible Monitoring System
|
|
|
|
// ============================================
|
|
|
|
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es
|
|
|
|
// Please see http://pandora.sourceforge.net for full contribution list
|
|
|
|
|
2006-10-04 18:15:20 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
2008-08-22 20:07:32 +02:00
|
|
|
// as published by the Free Software Foundation for version 2.
|
2006-10-04 18:15:20 +02:00
|
|
|
// 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.
|
|
|
|
|
2009-01-07 11:42:38 +01:00
|
|
|
$url = '?login=1';
|
2008-12-23 22:41:05 +01:00
|
|
|
//These variables come from index.php
|
|
|
|
if (!empty ($page) && !empty ($sec)) {
|
|
|
|
foreach ($_GET as $key => $value) {
|
|
|
|
$url .= '&'.$key.'='.$value;
|
|
|
|
}
|
2007-08-06 13:44:49 +02:00
|
|
|
}
|
|
|
|
|
2008-08-21 23:07:20 +02:00
|
|
|
echo '<div class="databox" id="login">
|
2008-09-02 18:08:11 +02:00
|
|
|
<h1 id="log">'.__('Pandora FMS Web Console').'</h1><br>
|
2008-08-21 23:07:20 +02:00
|
|
|
<div class="databox" id="login_in">
|
2008-12-23 22:41:05 +01:00
|
|
|
<form method="post" action="index.php'.$url.'">
|
2009-01-07 11:42:38 +01:00
|
|
|
<table cellpadding="4" cellspacing="1" width="400">';
|
|
|
|
|
|
|
|
if (isset ($login_failed)) {
|
|
|
|
echo '<tr><td colspan="3">';
|
2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
include/functions.php, include/functions_db.php,
include/functions_ui.php, index.php, install.php,
operation/users/user.php, operation/users/user_edit.php,
reporting/fgraph.php: Added pluggable authentication and moved functions
* general/login_page.php, general/logon_ok.php,
godmode/agentes/modificar_agente.php,
godmode/users/configure_users.php, godmode/users/user_list.php,
operation/agentes/estado_agente.php, operation/incidents/incident.php,
operation/incidents/incident_search.php: Updated functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 19:21:20 +01:00
|
|
|
echo '<h3 class="error" style="width: 200px">'.__('Login failed').': '.$config["auth_error"].'</h3>';
|
2009-01-07 11:42:38 +01:00
|
|
|
echo '</td></tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '<tr><td rowspan="3" align="left" style="border-right: solid 1px #678;">';
|
|
|
|
|
|
|
|
if (!empty ($page) && !empty ($sec)) {
|
|
|
|
foreach ($_POST as $key => $value) {
|
2009-01-14 19:51:17 +01:00
|
|
|
print_input_hidden ($key, $value);
|
2009-01-07 11:42:38 +01:00
|
|
|
}
|
|
|
|
}
|
2008-12-23 22:41:05 +01:00
|
|
|
|
|
|
|
//TODO: Put branding in variables (external file) or database
|
|
|
|
/* CUSTOM BRANDING STARTS HERE */
|
|
|
|
|
2009-01-07 11:42:38 +01:00
|
|
|
// Replace the following with your own URL and logo.
|
|
|
|
// A mashup of the Pandora FMS logo and your companies highly preferred
|
|
|
|
echo '<a href="http://pandorafms.org" title="Go to pandorafms.org..." alt="Pandora FMS - Free Monitoring System">';
|
|
|
|
echo '<img src="images/pandora_logo.png" border="0" alt="logo" />';
|
|
|
|
echo '</a><br />';
|
2008-12-23 22:41:05 +01:00
|
|
|
|
2009-01-07 11:42:38 +01:00
|
|
|
// This prints the current pandora console version.
|
|
|
|
// For stable/live function it might be wise to comment it out
|
2008-12-23 22:41:05 +01:00
|
|
|
echo $pandora_version.(($develop_bypass == 1) ? ' '.__('Build').' '.$build_version : '');
|
|
|
|
|
|
|
|
/* CUSTOM BRANDING ENDS HERE */
|
|
|
|
|
|
|
|
echo '</td><td class="f9b">
|
2009-01-07 11:42:38 +01:00
|
|
|
'.__('Login').':<br />'.print_input_text_extended ("nick", '', "nick", '', '', '' , false, '', 'class="login"', true).'
|
|
|
|
</td></tr>
|
|
|
|
<tr><td class="f9b">
|
|
|
|
'.__('Password').':<br />'.print_input_text_extended ("pass", '', "pass", '', '', '' ,false, '', 'class="login"', true, true).'
|
|
|
|
</td></tr>
|
|
|
|
<tr><td align="center">
|
|
|
|
'.print_submit_button ("Login",'',false,'class="sub next"',true).'
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2006-03-27 05:37:27 +02:00
|
|
|
</div>
|
2008-12-23 22:41:05 +01:00
|
|
|
<div id="ip">'.__('Your IP').': <b class="f10">'.$config["remote_addr"].'</b>
|
2008-09-02 18:08:11 +02:00
|
|
|
</div>
|
|
|
|
|
2008-08-21 23:07:20 +02:00
|
|
|
</div><script type="text/javascript">document.getElementById(\'nick\').focus();</script>';
|
|
|
|
?>
|