$pinfo) { $option .= ''; } return $option; } function check_vals() { global $err, $download_dirs; if (!isset($_POST["dir"]) || (strlen($_POST["dir"]) == 0)) { $err .= "Please fill out access level"; return 0; } elseif (!isset($_POST["pwd"])) { $err .= "Please fill out password"; return 0; } elseif ($_POST["pwd"] != $download_dirs[$_POST["dir"]]["password"]) { $err .= "The password is incorrect"; return 0; } return 1; } $err = ""; $_SESSION["is_loggined"] = false; if (isset($_POST["login"])) { if (check_vals()) { $_SESSION["is_loggined"] = true; $_SESSION["dir"] = $_POST["dir"]; header("Location: download.php?$SLINE"); exit; } } ?> ES Simple Download 0) echo "

$err

"; ?>

Welcome to ES Simple Download v 1.0.

« Back to Product page «

(Select access level, enter password, then click "Login" button).

 
Access:
Password:

Powered by EnergyScripts

Find more power solution: ES File Upload & Download Manager