fix 404
This commit is contained in:
parent
0bf67298d1
commit
2073d3b08e
|
@ -1,4 +1,4 @@
|
||||||
ErrorDocument 404 //owncloud/templates/404.php
|
ErrorDocument 404 //core/templates/404.php
|
||||||
php_value upload_max_filesize 20M
|
php_value upload_max_filesize 20M
|
||||||
php_value post_max_size 20M
|
php_value post_max_size 20M
|
||||||
SetEnv htaccessWorking true
|
SetEnv htaccessWorking true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if(!isset($_)){//also provide standalone error page
|
if(!isset($_)){//also provide standalone error page
|
||||||
require_once '../lib/base.php';
|
require_once '../../lib/base.php';
|
||||||
require( 'template.php' );
|
require( 'template.php' );
|
||||||
|
|
||||||
$tmpl = new OC_TEMPLATE( '', '404', 'guest' );
|
$tmpl = new OC_TEMPLATE( '', '404', 'guest' );
|
||||||
|
|
|
@ -293,7 +293,7 @@ class OC_FILES {
|
||||||
$size=OC_HELPER::humanFileSize($size);
|
$size=OC_HELPER::humanFileSize($size);
|
||||||
$size=substr($size,0,-1);//strip the B
|
$size=substr($size,0,-1);//strip the B
|
||||||
$size=str_replace(' ','',$size); //remove the space between the size and the postfix
|
$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 upload_max_filesize $size\n";//upload limit
|
||||||
$content.= "php_value post_max_size $size\n";
|
$content.= "php_value post_max_size $size\n";
|
||||||
$content.= "SetEnv htaccessWorking true\n";
|
$content.= "SetEnv htaccessWorking true\n";
|
||||||
|
|
|
@ -184,7 +184,7 @@ class OC_SETUP {
|
||||||
private static function createHtaccess() {
|
private static function createHtaccess() {
|
||||||
global $SERVERROOT;
|
global $SERVERROOT;
|
||||||
global $WEBROOT;
|
global $WEBROOT;
|
||||||
$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 20M\n";//upload limit
|
$content.= "php_value upload_max_filesize 20M\n";//upload limit
|
||||||
$content.= "php_value post_max_size 20M\n";
|
$content.= "php_value post_max_size 20M\n";
|
||||||
$content.= "SetEnv htaccessWorking true\n";
|
$content.= "SetEnv htaccessWorking true\n";
|
||||||
|
|
Loading…
Reference in New Issue