Skip to content
Permalink
Browse files
Porządkowanie
  • 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.
@@ -322,4 +322,4 @@
catch(PDOException $exception)
{
PDOErrorHandler($exception);
}
}
@@ -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");
@@ -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.