diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-03-30 00:37:07 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-03-30 00:37:07 +0000 |
commit | 4d322701de488c66916d15955099c3ed1ad061ab (patch) | |
tree | 19f13abdb83f21f13d6bd3b75f54c5eeccdf35a3 /include/functions_category.inc.php | |
parent | a2dd39df73d6c29073dbd8d7d87f34adf9aef621 (diff) |
fix: image_order cookie path fixed for url rewriting
improve: add function access_denied called when check_status or
check_restrictions fail
fix: french language correction
fix: remove php warnings in clean_iptc_value
split search functions into include/functions_search.inc.php
git-svn-id: http://piwigo.org/svn/trunk@1113 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_category.inc.php | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 601ec1b64..a671474ef 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -5,7 +5,7 @@ // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ // | branch : BSF (Best So Far) -// | file : $RCSfile$ +// | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ // | revision : $Revision$ @@ -42,22 +42,11 @@ */ function check_restrictions($category_id) { - global $user, $lang; + global $user; if (in_array($category_id, explode(',', $user['forbidden_categories']))) { - $login_url = - get_root_url().'identification.php?redirect=' - .urlencode(urlencode($_SERVER['REQUEST_URI'])); - - if (!$user['is_the_guest']) - { - die('Fatal: you are trying to reach a forbidden category'); - } - else - { - redirect($login_url); - } + access_denied(); } } @@ -360,4 +349,4 @@ function rank_compare($a, $b) return ($a['rank'] < $b['rank']) ? -1 : 1; } -?> +?>
\ No newline at end of file |