summaryrefslogtreecommitdiffstats
path: root/files/ajax/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/ajax/list.php')
-rw-r--r--files/ajax/list.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/files/ajax/list.php b/files/ajax/list.php
deleted file mode 100644
index 83914332a7d..00000000000
--- a/files/ajax/list.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-// only need filesystem apps
-$RUNTIME_APPTYPES=array('filesystem');
-
-// Init owncloud
-
-
-OC_JSON::checkLoggedIn();
-
-// Load the files
-$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
-$doBreadcrumb = isset( $_GET['breadcrumb'] ) ? true : false;
-$data = array();
-
-// Make breadcrumb
-if($doBreadcrumb){
- $breadcrumb = array();
- $pathtohere = "/";
- foreach( explode( "/", $dir ) as $i ){
- if( $i != "" ){
- $pathtohere .= "$i/";
- $breadcrumb[] = array( "dir" => $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));
-
-?>