include "header.php"; ?>
include "db.php"; ?>
$db = new DB($mysql_host, $mysql_user, $mysql_password, $mysql_db);
?>
$mount = "";
if (isset($_REQUEST["mount"])) {
$mount=$_REQUEST["mount"];
}
$username = "";
if (isset($_REQUEST["username"])) {
$username=$_REQUEST["username"];
}
?>
Mountpoints
Mountpoint Listing ( echo $mount; ?>)
Username | Email | | Time Restrictions |
$query = "select username, email, timeleft, mountpoint from ".$table_prefix."users where mountpoint = '$mount' or mountpoint = 'ALL'";
if ($username != "") {
$query = "select username, email, timeleft, mountpoint from ".$table_prefix."users where username like '%$username%'";
}
$result = mysql_query($query, $db->link);
while ($row = mysql_fetch_assoc($result)) {
$username = $row['username'];
$email = $row['email'];
$timeleft = $row['timeleft'];
$mountpoint = $row['mountpoint'];
$timerestriction = "None";
if ($timeleft != "-1") {
$timerestriction = "$timeleft seconds";
}
$mountall = " ($mountpoint) ";
if ($mountpoint == "ALL") {
$mountall = " (All) ";
}
echo "$username$mountall | $email | | $timerestriction |
";
}
mysql_free_result($result);
?>
include "footer.php"; ?>