1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
<?php
/*
* This file is part of Zoph.
*
* Zoph 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.
*
* Zoph 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 Zoph; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once("/etc/zoph/config.inc.php");
$redirect = urlencode($HTTP_GET_VARS["redirect"]);
if (FORCE_SSL_LOGIN || FORCE_SSL) {
if (!array_key_exists('HTTPS', $_SERVER)) {
header("Location: " . ZOPH_SECURE_URL . "/logon.php?redirect=" . $redirect);
}
}
require_once("zoph_table.inc.php");
# require_once("rtplang.class.php");
require_once("user.inc.php");
$user = new user();
# $rtplang = $user->load_language();
# print $rtplang->lang_header();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link TYPE="text/css" REL="stylesheet" HREF="<?php echo CSS_SHEET ?>?logged_on=no">
<title><?php echo ZOPH_TITLE . ' - ' . "logon" ?></title>
</head>
<body>
<h1><?php echo "logon" ?></h1>
<div class="main" id="logon">
<form action="zoph.php" method="POST">
<h2 class="logon"><?php echo ZOPH_TITLE ?></h2>
<label for="uname"><?php echo "username" ?></label>
<input type="text" name="uname" id="uname"><br>
<label for="pword"><?php echo "password" ?></label>
<input type="password" name="pword" id="pword"><br>
<input type="hidden" name="redirect" value="<?php echo $redirect ?>">
<input type="submit" value="<?php echo "submit"; ?>">
</form>
</div>
</body>
</html>
|