include "header.php"; ?> include "db.php"; ?> $db = new DB($mysql_host, $mysql_user, $mysql_password, $mysql_db); ?>
if (isset($_REQUEST["action"])) {
$action=$_REQUEST["action"];
if ($action == "add") {
if (isset($_REQUEST["mount"])) {
$mount=$_REQUEST["mount"];
if (!ereg("^/", $mount)) {
echo "Error adding mountpoint $mount : mountpoint must begin with a slash (/)
";
}
else {
$query = sprintf("insert into ".$table_prefix."mountpoints values ('%s')", mysql_real_escape_string($mount));
if (mysql_query($query, $db->link)) {
echo "Added mountpoint $mount
";
}
else {
echo "Error adding mountpoint $mount : ".mysql_error()."
";
}
}
}
}
}
?>
$mount | Add user List users Get Report | Users: $usercount | Delete |