Permalink
Browse files

Porządkowanie

  • Loading branch information...
Rafik89 committed Aug 10, 2013
1 parent cab6d68 commit e425ecde2b4e0b968dbf94fdcc2ae85a5d83f603
Showing with 14 additions and 14 deletions.
  1. +1 −1 index.php
  2. +9 −9 pages/error.php
  3. +4 −4 templates/error.tpl
View
@@ -322,4 +322,4 @@
catch(PDOException $exception)
{
PDOErrorHandler($exception);
}
}
View
@@ -19,15 +19,7 @@
if (isNum($_route->getAction()))
{
if ($_route->getAction() === 404)
{
header("HTTP/1.0 404 Not Found");
$theme = array(
'Title' => __('Error 404 - Page not found'),
'Desc' => __('Not found this pages')
);
}
elseif ($_route->getAction() === 401)
if ($_route->getAction() === 401)
{
header("HTTP/1.0 401 Unauthorized");
$theme = array(
@@ -43,6 +35,14 @@
'Desc' => __('Access this page is forbidden')
);
}
elseif ($_route->getAction() === 404)
{
header("HTTP/1.0 404 Not Found");
$theme = array(
'Title' => __('Error 404 - Page not found'),
'Desc' => __('Not found this pages')
);
}
elseif ($_route->getAction() === 500)
{
header("HTTP/1.0 500 Forbidden");
View
@@ -2,14 +2,14 @@
{panel=i18n('Error 401 - Unauthorized')}
<p class="center error bold">{i18n('The request requires user authentication')}</p>
{/panel}
{elseif $error == '404'}
{panel=i18n('Error 404 - Page not found')}
<p class="center error bold">{i18n('Not found this pages')}</p>
{/panel}
{elseif $error == '403'}
{panel=i18n('Error 403 - Forbidden')}
<p class="center error bold">{i18n('Access this page is forbidden')}</p>
{/panel}
{elseif $error == '404'}
{panel=i18n('Error 404 - Page not found')}
<p class="center error bold">{i18n('Not found this pages')}</p>
{/panel}
{elseif $error == '500'}
{panel=i18n('Error 500 - Internal Server Error')}
<p class="center error bold">{i18n('Internal Server Error')}</p>

0 comments on commit e425ecd

Please sign in to comment.