<?php
// ----------------------------------------------------------------------
// Copyright (C) 2007 by GREGORY LE BRAS
// ----------------------------------------------------------------------
// LICENSE
//
// This file is part of ODCNMS - Open DataCenter Network Management System
//
// ODCNMS 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.
//
// Foobar 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 Foobar; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// ----------------------------------------------------------------------
// Original Author of file: GREGORY LE BRAS - http://www.odcnms.org/
// ----------------------------------------------------------------------
?>
<html>
<head>
<title>Login ODCNMS</title>
<link href="stylesheets/style.css" rel=StyleSheet type=text/css>
<link rel="shortcut icon" href="images/favicon.gif">
<script type="text/javascript" src="javascript/javascript.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
</head>
<body>
<div id="header"> </div>
<div id="login">
<?php
if ((isset($status)) && ($status=="logout"))
{
echo "<div id=\"status\" style=\"color:green\"><img src=\"images/info.png\" alt=\"INFO\"><br><br>";
echo TXT_SUCCESSFULLY_LOGOUT;
echo "</div>";
}
else if ((isset($status)) && ($status=="failed"))
{
echo "<div id=\"status\" style=\"color:red\"><img src=\"images/warning.png\" alt=\"WARNING\"><br><br>";
echo TXT_AUTH_FAILED;
echo "</div>";
}
else if ((isset($status)) && ($status=="forbidden"))
{
echo "<div id=\"status\" style=\"color:red\"><img src=\"images/forbidden.png\" alt=\"FORBIDDEN\"><br><br>";
echo TXT_FORBIDDEN;
echo "</div>";
}
?>
<img src="images/big_logo_odcnms.png" alt="LOGO ODCNMS">
<?php
$USER_AGENT = getenv("HTTP_USER_AGENT");
if ((eregi("firefox", $USER_AGENT)) || (eregi("mozilla", $USER_AGENT)) || (eregi("MSIE", $USER_AGENT)))
{
$compatibility = "ok";
}
else
{
$compatibility = "no";
echo "<div id=\"status\" style=\"color:red;font-size: 100%;\"><img src=\"images/warning.png\" alt=\"WARNING\"><br><br>".TXT_BROWSER_NOT_OK."</div>";
}
?>
<form class="form" method="post" action="checklogin.php" style="border:0px;">
<h3><?php echo TXT_PLEASE_LOGIN; ?></h3>
<p><?php echo TXT_ENTER_PASS; ?></p>
<b style="position:relative;top:-10px;"><?php echo TXT_USERNAME; ?>:</b> <input type="text" name="login"><br><br>
<b style="position:relative;top:-10px;"><?php echo TXT_PASSWORD; ?>:</b> <input type="password" name="password"><br><br>
<b style="position:relative;top:-10px;"><?php echo TXT_LANGUAGE; ?> :</b> <select name="lang"><option value="en">English</option><option value="fr">French</option></select><br><br>
<input type="submit" name="submit" value="<?php echo TXT_LOGIN; ?>">
</form>
</div>
<div id="footer">
Open DataCenter Network Management System <b style="font-size:100%;color:black">Version <?php echo "$version"; ?></b>
</div>
</body>
</html>