aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 2bc455775..8b5bd58a4 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -46,16 +46,13 @@ function check_restrictions($category_id)
if (in_array($category_id, explode(',', $user['forbidden_categories'])))
{
- $login_url = './identification.php?redirect='.
- urlencode(urlencode($_SERVER['REQUEST_URI']));
- if ( ! $user['is_the_guest'] )
+ $login_url =
+ './identification.php?redirect='
+ .urlencode(urlencode($_SERVER['REQUEST_URI']));
+
+ if (!$user['is_the_guest'])
{
- echo '<div style="text-align:center;">';
- echo $lang['hello'].' '.$user['username'].'! ';
- echo $lang['access_forbiden'].'<br />';
- echo '<a href="./category.php">'.$lang['thumbnails'].'</a> ';
- echo '</div>';
- exit();
+ die('Fatal: you are trying to reach a forbidden category');
}
else
{