Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo committed Sep 18, 2018
1 parent bce49af commit 212545e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions index.php
Expand Up @@ -9,18 +9,6 @@
// Restrict access to current directory
ini_set('open_basedir', getcwd());

// Return file hash
if (isset($_GET['hash'])) {

// Get file hash array and JSON encode it
$hashes = $lister->getFileHash($_GET['hash']);
$data = json_encode($hashes);

// Return the data
die($data);

}

if (isset($_GET['zip'])) {

$dirArray = $lister->zipDirectory($_GET['zip']);
Expand Down

0 comments on commit 212545e

Please sign in to comment.