Get information on file from query string
This commit is contained in:
parent
3f84ed8057
commit
b6ef2ed367
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ require "property-manager.php"; // Initialise properties
|
|||
require "file_information.php";
|
||||
|
||||
$properties = load_properties();
|
||||
$file_name = $_GET[$properties["file QS"]] or die("No querystring given.");
|
||||
if (file_exists($file_name)) {$GLOBALS["file"] = generate_file_object($file_name);}
|
||||
else {die("File '$file_name' does not exist!");}
|
||||
header("Content Type: text/html");
|
||||
?>
|
||||
<html><head><title><?php echo($properties["html title"]);?></title>
|
||||
|
|
Reference in a new issue