Changeset 1082 for trunk/include/functions_category.inc.php
- Timestamp:
- Mar 15, 2006, 11:44:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r1081 r1082 47 47 if (in_array($category_id, explode(',', $user['forbidden_categories']))) 48 48 { 49 $login_url = './identification.php?redirect='. 50 urlencode(urlencode($_SERVER['REQUEST_URI'])); 51 if ( ! $user['is_the_guest'] ) 52 { 53 echo '<div style="text-align:center;">'; 54 echo $lang['hello'].' '.$user['username'].'! '; 55 echo $lang['access_forbiden'].'<br />'; 56 echo '<a href="./category.php">'.$lang['thumbnails'].'</a> '; 57 echo '</div>'; 58 exit(); 49 $login_url = 50 './identification.php?redirect=' 51 .urlencode(urlencode($_SERVER['REQUEST_URI'])); 52 53 if (!$user['is_the_guest']) 54 { 55 die('Fatal: you are trying to reach a forbidden category'); 59 56 } 60 57 else
Note: See TracChangeset
for help on using the changeset viewer.