Changeset 653
- Timestamp:
- Dec 21, 2004, 12:54:59 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r651 r653 167 167 $notif_yes = ($conf['mail_notification']=='true')?'checked="checked"':''; 168 168 $notif_no = ($conf['mail_notification']=='false')?'checked="checked"':''; 169 $lock_yes = ($conf['gallery_locked']=='true')?'checked="checked"':''; 170 $lock_no = ($conf['gallery_locked']=='false')?'checked="checked"':''; 169 171 170 172 $template->assign_block_vars( … … 180 182 'L_CONF_NOTIFICATION'=>$lang['conf_notification'], 181 183 'L_CONF_NOTIFICATION_INFO'=>$lang['conf_notification_info'], 184 'L_CONF_GALLERY_LOCKED'=>$lang['conf_gallery_locked'], 185 'L_CONF_GALLERY_LOCKED_INFO'=>$lang['conf_gallery_locked_info'], 182 186 183 187 'ADMIN_MAIL'=>$conf['mail_webmaster'], … … 186 190 'HISTORY_NO'=>$history_no, 187 191 'NOTIFICATION_YES'=>$notif_yes, 188 'NOTIFICATION_NO'=>$notif_no 192 'NOTIFICATION_NO'=>$notif_no, 193 'GALLERY_LOCKED_YES'=>$lock_yes, 194 'GALLERY_LOCKED_NO'=>$lock_no, 189 195 )); 190 196 break; -
trunk/include/common.inc.php
r650 r653 164 164 165 165 include(PHPWG_ROOT_PATH.'include/user.inc.php'); 166 167 // displaying the username in the language of the connected user, instead of168 // "guest" as you can find in the database169 if ($user['is_the_guest'])170 {171 $user['username'] = $lang['guest'];172 }173 166 ?> -
trunk/include/functions_user.inc.php
r651 r653 159 159 function check_login_authorization($guest_allowed = true) 160 160 { 161 global $user,$lang ;161 global $user,$lang,$conf,$template; 162 162 163 163 if ($user['is_the_guest'] and !$guest_allowed) … … 166 166 echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>'; 167 167 exit(); 168 } 169 170 if ($conf['gallery_locked']) 171 { 172 echo '<div style="text-align:center;">'; 173 echo $lang['gallery_locked_message']; 174 echo '</div>'; 175 if ($user['status'] != 'admin') 176 { 177 exit(); 178 } 168 179 } 169 180 } -
trunk/include/user.inc.php
r650 r653 106 106 } 107 107 108 // properties of user guest are found in the configuration 109 if ($user['is_the_guest']) 110 { 111 $user['template'] = $conf['default_template']; 112 $user['nb_image_line'] = $conf['nb_image_line']; 113 $user['nb_line_page'] = $conf['nb_line_page']; 114 $user['language'] = $conf['default_language']; 115 $user['maxwidth'] = $conf['default_maxwidth']; 116 $user['maxheight'] = $conf['default_maxheight']; 117 $user['recent_period'] = $conf['recent_period']; 118 $user['expand'] = $conf['auto_expand']; 119 $user['show_nb_comments'] = $conf['show_nb_comments']; 120 } 121 108 122 // if no information were found about user in user_forbidden table OR the 109 123 // forbidden categories must be updated … … 139 153 include_once(PHPWG_ROOT_PATH.'language/'.$user['language'].'/common.lang.php'); 140 154 155 // displaying the username in the language of the connected user, instead of 156 // "guest" as you can find in the database 157 if ($user['is_the_guest']) 158 { 159 $user['username'] = $lang['guest']; 160 } 161 141 162 // only if we are in the administration section 142 163 if (defined('IN_ADMIN') and IN_ADMIN) -
trunk/install/config.sql
r651 r653 27 27 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_exif','true','Show EXIF metadata on picture.php if asked by user'); 28 28 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('authorize_remembering','true','Authorize users to be remembered, see $conf{remember_me_length}'); 29 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_locked','false','Lock your gallery temporary for non admin users'); -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r651 r653 154 154 $lang['conf_notification'] = 'Mail notification'; 155 155 $lang['conf_notification_info'] = 'Automated mail notification for adminsitrators (and only for them) when a user add a comment or upload a picture.'; 156 $lang['conf_gallery_locked'] = 'Lock gallery'; 157 $lang['conf_gallery_locked_info'] = 'Lock the entire gallery for maintenance. Only administrator users will be able to reach the gallery'; 156 158 157 159 // Configuration -> comments … … 345 347 $lang['cat_unknown_id'] = 'This category is unknown in the database'; 346 348 $lang['install_warning'] = 'The file "install.php" is still present. Please remove it from your server. It is not secure to keep it.'; 347 348 349 350 351 349 ?> -
trunk/language/en_UK.iso-8859-1/common.lang.php
r649 r653 316 316 $lang['random_cat_hint'] = 'Displays a set of random pictures'; 317 317 $lang['picture_high'] = 'Click on the picture to see it in high definition'; 318 319 $lang['gallery_locked_message'] = 'The gallery is locked for maintenance. Please, come back later or loggin as an administrator to enter the gallery : <a href="'.PHPWG_ROOT_PATH.'identification.php">Identification</a>'; 318 320 ?> -
trunk/template/default/admin/configuration.tpl
r651 r653 38 38 <input type="radio" class="radio" name="mail_notification" value="false" {general.NOTIFICATION_NO} />{L_NO}</td> 39 39 </tr> 40 <tr> 41 <td><strong>{general.L_CONF_GALLERY_LOCKED} :</strong><br /><span class="small">{general.L_CONF_GALLERY_LOCKED_INFO}</span></td> 42 <td class="row1"><input type="radio" class="radio" name="gallery_locked" value="true" {general.GALLERY_LOCKED_YES} />{L_YES} 43 <input type="radio" class="radio" name="gallery_locked" value="false" {general.GALLERY_LOCKED_NO} />{L_NO}</td> 44 </tr> 40 45 <!-- END general --> 41 46 <!-- BEGIN comments -->
Note: See TracChangeset
for help on using the changeset viewer.