diff options
author | kamakshidasan | 2016-12-22 15:36:18 +0530 |
---|---|---|
committer | kamakshidasan | 2016-12-22 15:36:18 +0530 |
commit | b2cd0d0cad32683971baf53efa2e50ff8d26f66b (patch) | |
tree | e359be4308ae9b361eae39bf277adcfbef807cef /src/main/webapp/filenames.php | |
parent | 25afcccb46a603cc9d2485e25216acfffa2e3e02 (diff) | |
download | xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.tar.gz xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.tar.bz2 xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.zip |
Maven has been removed
Diffstat (limited to 'src/main/webapp/filenames.php')
-rw-r--r-- | src/main/webapp/filenames.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/main/webapp/filenames.php b/src/main/webapp/filenames.php deleted file mode 100644 index 81ca89f..0000000 --- a/src/main/webapp/filenames.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - -/* - * @jiteshjha - * filenames.php returns the names of all the files in a given folder - */ - -// Store the filenames -$filenameArray = []; - -// Get the folder to be operated -$url = $_POST['url']; - -// Reference: http://php.net/manual/en/function.opendir.php -// Open the file directory and get the filehandle -$handle = opendir(dirname(realpath(__FILE__)).$url); - -// For each file in the folder, push the filename to filenameArray -while($file = readdir($handle)){ - if($file !== '.' && $file !== '..'){ - array_push($filenameArray, "$url$file"); - } -} - -// Return the file name array in JSON format -echo json_encode($filenameArray); -?> |