Skip to content

Commit

Permalink
Porządkowanie
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal (Rafik89) Krupiński committed Aug 10, 2013
1 parent cab6d68 commit e425ecd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -322,4 +322,4 @@
catch(PDOException $exception)
{
PDOErrorHandler($exception);
}
}
18 changes: 9 additions & 9 deletions pages/error.php
Expand Up @@ -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(
Expand All @@ -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");
Expand Down
8 changes: 4 additions & 4 deletions templates/error.tpl
Expand Up @@ -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>
Expand Down

0 comments on commit e425ecd

Please sign in to comment.