From 45de7ad221f9e505abdabcc5084dd12c80851469 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Wed, 18 Apr 2012 17:27:34 +0200 Subject: move files to app folder --- apps/files/ajax/list.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 apps/files/ajax/list.php (limited to 'apps/files/ajax/list.php') diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php new file mode 100644 index 00000000000..83914332a7d --- /dev/null +++ b/apps/files/ajax/list.php @@ -0,0 +1,46 @@ + $pathtohere, "name" => $i ); + } + } + + $breadcrumbNav = new OC_Template( "files", "part.breadcrumb", "" ); + $breadcrumbNav->assign( "breadcrumb", $breadcrumb ); + + $data['breadcrumb'] = $breadcrumbNav->fetchPage(); +} + +// make filelist +$files = array(); +foreach( OC_Files::getdirectorycontent( $dir ) as $i ){ + $i["date"] = OC_Util::formatDate($i["mtime"] ); + $files[] = $i; +} + +$list = new OC_Template( "files", "part.list", "" ); +$list->assign( "files", $files ); +$data = array('files' => $list->fetchPage()); + +OC_JSON::success(array('data' => $data)); + +?> -- cgit v1.2.3