2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-10-04 18:15:20 +02:00
|
|
|
|
2009-06-08 20:26:14 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2006-10-04 18:15:20 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; 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
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2006-10-04 18:15:20 +02:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
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) {
|
2010-08-18 13:35:42 +02:00
|
|
|
$url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value);
|
2008-12-23 22:41:05 +01:00
|
|
|
}
|
2007-08-06 13:44:49 +02:00
|
|
|
}
|
|
|
|
|
2011-07-06 13:57:27 +02:00
|
|
|
echo '<div class="databox_login" id="login">';
|
2009-12-04 13:12:04 +01:00
|
|
|
|
|
|
|
//echo '<h1>Put here your custom welcome message</h1>";
|
|
|
|
|
2011-07-06 13:57:27 +02:00
|
|
|
//echo '<br /><br /><br />';
|
2009-12-04 13:12:04 +01:00
|
|
|
echo '
|
2011-06-16 21:26:45 +02:00
|
|
|
<div id="login_in">
|
2008-12-23 22:41:05 +01:00
|
|
|
<form method="post" action="index.php'.$url.'">
|
2009-12-04 13:12:04 +01:00
|
|
|
<table cellpadding="4" cellspacing="1" width="420">';
|
2009-01-07 11:42:38 +01:00
|
|
|
|
|
|
|
if (isset ($login_failed)) {
|
2011-07-06 13:57:27 +02:00
|
|
|
// echo '<tr><td colspan="3">';
|
|
|
|
echo '<div style="margin-top:-35px;">';
|
2009-02-04 12:20:31 +01:00
|
|
|
echo '<h3 class="error">'.__('Login failed').': '.$config["auth_error"].'</h3>';
|
2011-07-06 13:57:27 +02:00
|
|
|
echo '</div>';
|
|
|
|
// echo '</td></tr>';
|
2009-01-07 11:42:38 +01:00
|
|
|
}
|
|
|
|
|
2011-06-16 21:26:45 +02:00
|
|
|
echo '<tr><td rowspan="3" align="left">';
|
2009-01-07 11:42:38 +01:00
|
|
|
|
|
|
|
if (!empty ($page) && !empty ($sec)) {
|
|
|
|
foreach ($_POST as $key => $value) {
|
2011-04-27 15:43:31 +02:00
|
|
|
html_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
|
2009-02-17 19:20:04 +01:00
|
|
|
echo '<a href="http://pandorafms.org" title="Go to pandorafms.org...">';
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_image ("images/pandora_logo.png", false, array ("alt" => "logo", "border" => 0));
|
2009-01-07 11:42:38 +01:00
|
|
|
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">
|
2011-04-27 15:43:31 +02:00
|
|
|
'.__('Login').':<br />'.html_print_input_text_extended ("nick", '', "nick", '', '', '' , false, '', 'class="login"', true).'
|
2009-01-07 11:42:38 +01:00
|
|
|
</td></tr>
|
|
|
|
<tr><td class="f9b">
|
2011-04-27 15:43:31 +02:00
|
|
|
'.__('Password').':<br />'.html_print_input_text_extended ("pass", '', "pass", '', '', '' ,false, '', 'class="login"', true, true).'
|
2009-01-07 11:42:38 +01:00
|
|
|
</td></tr>
|
|
|
|
<tr><td align="center">
|
2011-04-27 15:43:31 +02:00
|
|
|
'.html_print_submit_button ("Login",'',false,'class="sub next"',true).'
|
2009-01-07 11:42:38 +01:00
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2006-03-27 05:37:27 +02:00
|
|
|
</div>
|
2009-03-16 18:50:06 +01:00
|
|
|
<div id="ip">'.__('Your IP').': <b class="f10">'.$config["remote_addr"].'</b></div>
|
|
|
|
</div>';
|
2008-08-21 23:07:20 +02:00
|
|
|
?>
|
2009-03-16 18:50:06 +01:00
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
/* <![CDATA[ */
|
|
|
|
document.getElementById('nick').focus();
|
|
|
|
/* ]]> */
|
2009-06-08 20:26:14 +02:00
|
|
|
</script>
|