Changeset 1036 for trunk/include/functions_user.inc.php
- Timestamp:
- Feb 12, 2006, 10:52:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_user.inc.php
r906 r1036 101 101 } 102 102 103 function check_login_authorization($guest_allowed = true)104 {105 global $user,$lang,$conf,$template;106 107 if ($user['is_the_guest'] and !$guest_allowed)108 {109 echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';110 echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';111 exit();112 }113 114 if ($conf['gallery_locked'])115 {116 echo '<div style="text-align:center;">';117 echo $lang['gallery_locked_message'];118 echo '</div>';119 if ($user['status'] != 'admin')120 {121 exit();122 }123 }124 }125 126 103 function setup_style($style) 127 104 {
Note: See TracChangeset
for help on using the changeset viewer.