<?
include "../../../fastwap.inc.php";
// =============================================================================
//Fastwap v.1.3 - a Linkmamager for WAP-Phones
//Copyright (C) 2001/2002 webDessert.ch <[email protected]>
//
// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ==============================================================================
?>
<html>
<head>
<title>fastwap // Admin <?php echo(" $db_user"); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" media="screen" href="../site.css" type="text/css">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<body bgcolor="#ffffff" text="#000000" marginwidth="3" marginheight="3">
<div class="title">Admin interface of <?php echo(" $db_user:"); ?><br><br></div>
<div class="red"><h3></a>Accounts get deleted without promting!!</h3><b><br></div>
<?php
$db_pass_admin = md5($db_pass);
if($password_admin != $db_pass_admin || $username_admin != $db_user)
{
echo("wrong password / password expired. Please log in <a href=\"$path_fastwap/admin\">here</a>.");
exit();
}
$dbcnx = mysql_connect("$db_host", "$db_user", "$db_pass");
if (!$dbcnx) {
echo( "<P>Unable to connect to the " .
"database server at this time.</P>" );
exit();
}
mysql_select_db("$db_dbname", $dbcnx) or die(mysql_error());
// Request password from usertable
$result = mysql_query(
"SELECT ID, password, username FROM fastwap_person");
if (!$result)
{
echo("<P>Error performing query: " .
mysql_error() . "</P>");
exit();
}
// fetch and display person data
$i = 1;
while ( $row = mysql_fetch_array($result) )
{
$ID_person = $row["ID"];
$username_person = $row["username"];
$password_person = $row["password"];
echo("<span class=\"list\">$i.) " . $row["username"] . "");
echo(" - ");
echo("<a href=\"delete_person.php?ID_person=" . $row["ID"] . "&pw_person=" . $row["password"] . "\">Delete this account</a>");
echo(" - ");
echo(" <a href=\"showrecords.php?ID_person=" . $row["ID"] . "&pw_person=" . $row["password"] . "\">Show records</a></span>");
echo("<br>");
$i++;
}
mysql_close();
echo("<br><br><br><br><div class=\"bottom\">$bottom</div>");
?>
</body>
</html>