summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/files.php b/lib/files.php
index 9e66f9dab82..d8133667954 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -30,15 +30,6 @@ require_once("log.php");
*/
class OC_FILES {
static $tmpFiles=array();
- /**
- * show a web GUI filebrowser
- *
- * @param basedir $basedir
- * @param dir $dir
- */
- public static function showBrowser($basedir,$dir){
- echo '<div id="content"></div>';
- }
/**
* get the content of a directory
@@ -101,7 +92,7 @@ class OC_FILES {
if(strpos($files,';')){
$files=explode(';',$files);
}
- echo 't';
+
if(is_array($files)){
$zip = new ZipArchive();
$filename = sys_get_temp_dir()."/ownCloud.zip";
@@ -300,13 +291,13 @@ class OC_FILES {
global $SERVERROOT;
global $WEBROOT;
$size=OC_HELPER::humanFileSize($size);
- echo $size;
$size=substr($size,0,-1);//strip the B
$size=str_replace(' ','',$size); //remove the space between the size and the postfix
- $content = "ErrorDocument 404 /$WEBROOT/templates/404.php\n";//custom 404 error page
+ $content = "ErrorDocument 404 /$WEBROOT/core/templates/404.php\n";//custom 404 error page
$content.= "php_value upload_max_filesize $size\n";//upload limit
$content.= "php_value post_max_size $size\n";
$content.= "SetEnv htaccessWorking true\n";
+ $content.= "Options -Indexes\n";
@file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
}
}