- Timestamp:
- Dec 20, 2004, 11:03:04 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r649 r651 163 163 case 'general' : 164 164 { 165 $access_free = ($conf['access']=='free')?'checked="checked"':'';166 $access_restricted = ($conf['access']=='restricted')?'checked="checked"':'';167 165 $history_yes = ($conf['log']=='true')?'checked="checked"':''; 168 166 $history_no = ($conf['log']=='false')?'checked="checked"':''; … … 178 176 'L_CONF_TN_PREFIX'=>$lang['conf_prefix'], 179 177 'L_CONF_TN_PREFIX_INFO'=>$lang['conf_prefix_info'], 180 'L_CONF_ACCESS'=>$lang['conf_access'],181 'L_CONF_ACCESS_INFO'=>$lang['conf_access_info'],182 'L_CONF_ACCESS_FREE'=>$lang['free'],183 'L_CONF_ACCESS_RESTRICTED'=>$lang['restricted'],184 178 'L_CONF_HISTORY'=>$lang['history'], 185 179 'L_CONF_HISTORY_INFO'=>$lang['conf_log_info'], … … 189 183 'ADMIN_MAIL'=>$conf['mail_webmaster'], 190 184 'THUMBNAIL_PREFIX'=>$conf['prefix_thumbnail'], 191 'ACCESS_FREE'=>$access_free,192 'ACCESS_RESTRICTED'=>$access_restricted,193 185 'HISTORY_YES'=>$history_yes, 194 186 'HISTORY_NO'=>$history_no, -
trunk/identification.php
r631 r651 96 96 } 97 97 } 98 99 98 //-------------------------------------------------------------- visit as guest 100 if ( $conf['access'] == 'free' ) 101 { 102 $template->assign_block_vars('free_access',array()); 103 } 99 $template->assign_block_vars('free_access',array()); 104 100 //----------------------------------------------------------- html code display 105 101 $template->pparse('identification'); -
trunk/include/functions_user.inc.php
r650 r651 159 159 function check_login_authorization($guest_allowed = true) 160 160 { 161 global $user,$lang,$conf,$page; 162 163 if ( $user['is_the_guest']) 164 { 165 if ( $conf['access'] == 'restricted' || !$guest_allowed ) 161 global $user,$lang; 162 163 if ($user['is_the_guest'] and !$guest_allowed) 166 164 { 167 165 echo '<div style="text-align:center;">'.$lang['only_members'].'<br />'; 168 166 echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>'; 169 167 exit(); 170 }171 168 } 172 169 } -
trunk/index.php
r593 r651 26 26 // +-----------------------------------------------------------------------+ 27 27 28 //----------------------------------------------------------- include29 28 define('PHPWG_ROOT_PATH','./'); 30 29 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); 31 if ( $conf['access'] == 'restricted' ) 32 { 33 if ( isset( $_COOKIE['id'] ) ) $url = 'category'; 34 else $url = 'identification'; 35 } 36 else $url = 'category'; 37 // redirection 38 $url.= '.php'; 39 redirect( $url ); 30 redirect('category.php'); 40 31 ?> -
trunk/install/config.sql
r649 r651 7 7 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_maxwidth','','maximum width authorized for displaying images'); 8 8 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_maxheight','','maximum height authorized for the displaying images'); 9 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('access','free','access type to your gallery (free|restricted)');10 9 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('nb_comment_page','10','number of comments to display on each page'); 11 10 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('upload_maxfilesize','150','maximum filesize for the uploaded pictures'); -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r647 r651 42 42 $lang['authorized'] = 'Authorized'; 43 43 $lang['forbidden'] = 'Forbidden'; 44 $lang['free'] = 'Free';45 $lang['restricted'] = 'Restricted';46 44 $lang['public'] = 'public'; 47 45 $lang['private'] = 'private'; … … 153 151 $lang['conf_prefix_error'] = 'Thumbnail\'s prefix must only contain characters among : a to z (case insensitive), "-" or "_"'; 154 152 $lang['conf_access'] = 'Access type'; 155 $lang['conf_access_info'] = '- free : anyone can enter the site, any visitor can create an account in order to customize the appareance of the website<br />- restricted : the webmaster create accounts. Only registered users can enter the site';156 153 $lang['conf_log_info'] = 'Keep an history of visits on your website ? Visits will be shown in the history section of the administration panel'; 157 154 $lang['conf_notification'] = 'Mail notification'; -
trunk/language/fr_FR.iso-8859-1/admin.lang.php
r646 r651 42 42 $lang['authorized'] = 'Autorisé'; 43 43 $lang['forbidden'] = 'Interdit'; 44 $lang['free'] = 'Libre';45 $lang['restricted'] = 'Restreint';46 44 $lang['public'] = 'Publique'; 47 45 $lang['private'] = 'Privée'; … … 154 152 $lang['conf_prefix_thumbnail_error'] = 'Le préfixe doit être uniquement composé des caractères suivant : a-z, "-" ou "_"'; 155 153 $lang['conf_access'] = 'Type d\'acces'; 156 $lang['conf_access_info'] = '- libre : n\'importe qui peut accéder à vos photos, tous les visiteurs peuvent se créer un compte pour pouvoir personnaliser l\'affichage<br />157 - restreint : l\'administrateur s\'occupe de créer des comptes, seuls les personnes membres peuvent accéder au site';158 154 $lang['conf_log_info'] = 'historiser les visites sur le site ? Les visites seront visibles dans l\'historique de l\'administration'; 159 155 $lang['conf_notification'] = 'Notification par mail'; -
trunk/template/default/admin/configuration.tpl
r649 r651 29 29 </tr> 30 30 <tr> 31 <td><strong>{general.L_CONF_ACCESS} :</strong><br /><span class="small">{general.L_CONF_ACCESS_INFO}</span></td>32 <td class="row1"><input type="radio" class="radio" name="access" value="free" {general.ACCESS_FREE} />{general.L_CONF_ACCESS_FREE} 33 <input type="radio" class="radio" name="access" value="restricted" {general.ACCESS_RESTRICTED} />{general.L_CONF_ACCESS_RESTRICTED}</td>34 </tr>35 <tr>36 31 <td><strong>{general.L_CONF_HISTORY} :</strong><br /><span class="small">{general.L_CONF_HISTORY_INFO}</span></td> 37 32 <td class="row1"><input type="radio" class="radio" name="log" value="true" {general.HISTORY_YES} />{L_YES}
Note: See TracChangeset
for help on using the changeset viewer.