Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-04-02 21:39:24 +0400
committerBartek Przybylski <bart.p.pl@gmail.com>2012-04-02 21:39:24 +0400
commitf21d6d4f9fcd48ffe4e2e42b4f3a4e8b7bcfd142 (patch)
tree2766d82790ecee0b19dcdc9a388f12e9bb27fbd4 /files
parentff4b0c4d7f6b422c9426205897c015b497429b03 (diff)
dialogs filepicker first draft
Diffstat (limited to 'files')
-rw-r--r--files/ajax/rawlist.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/files/ajax/rawlist.php b/files/ajax/rawlist.php
new file mode 100644
index 00000000000..0abe81e6725
--- /dev/null
+++ b/files/ajax/rawlist.php
@@ -0,0 +1,23 @@
+<?php
+
+// only need filesystem apps
+$RUNTIME_APPTYPES=array('filesystem');
+
+// Init owncloud
+require_once('../../lib/base.php');
+
+OC_JSON::checkLoggedIn();
+
+// Load the files
+$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
+
+// make filelist
+$files = array();
+foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
+ $i["date"] = OC_Util::formatDate($i["mtime"] );
+ $files[] = $i;
+}
+
+OC_JSON::success(array('data' => $files));
+
+?>