add error 403 site
This commit is contained in:
parent
34c08b3165
commit
ec40f69c9e
|
@ -1,3 +1,4 @@
|
||||||
|
ErrorDocument 403 /core/templates/403.php
|
||||||
ErrorDocument 404 /core/templates/404.php
|
ErrorDocument 404 /core/templates/404.php
|
||||||
<IfModule mod_php5.c>
|
<IfModule mod_php5.c>
|
||||||
php_value upload_max_filesize 512M
|
php_value upload_max_filesize 512M
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if(!isset($_)){//also provide standalone error page
|
||||||
|
require_once '../../lib/base.php';
|
||||||
|
|
||||||
|
$tmpl = new OC_Template( '', '403', 'guest' );
|
||||||
|
$tmpl->printPage();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<ul>
|
||||||
|
<li class='error'>
|
||||||
|
<?php echo $l->t( 'Access forbidden' ); ?><br/>
|
||||||
|
<p class='hint'><?php if(isset($_['file'])) echo $_['file']?></p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
Loading…
Reference in New Issue