add error 403 site

This commit is contained in:
Georg Ehrke 2012-03-25 14:16:39 +02:00
parent 34c08b3165
commit ec40f69c9e
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,4 @@
ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 512M

15
core/templates/403.php Normal file
View file

@ -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>