diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-04-02 19:39:24 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-04-02 19:39:24 +0200 |
commit | f21d6d4f9fcd48ffe4e2e42b4f3a4e8b7bcfd142 (patch) | |
tree | 2766d82790ecee0b19dcdc9a388f12e9bb27fbd4 /files | |
parent | ff4b0c4d7f6b422c9426205897c015b497429b03 (diff) | |
download | nextcloud-server-f21d6d4f9fcd48ffe4e2e42b4f3a4e8b7bcfd142.tar.gz nextcloud-server-f21d6d4f9fcd48ffe4e2e42b4f3a4e8b7bcfd142.zip |
dialogs filepicker first draft
Diffstat (limited to 'files')
-rw-r--r-- | files/ajax/rawlist.php | 23 |
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)); + +?> |