Changeset 651 for trunk


Ignore:
Timestamp:
Dec 20, 2004, 11:03:04 PM (19 years ago)
Author:
plg
Message:
  • restricted access mode deleted : set all your categories as private instead
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r649 r651  
    163163  case 'general' :
    164164  {
    165     $access_free = ($conf['access']=='free')?'checked="checked"':'';
    166     $access_restricted = ($conf['access']=='restricted')?'checked="checked"':'';
    167165    $history_yes = ($conf['log']=='true')?'checked="checked"':'';
    168166    $history_no  = ($conf['log']=='false')?'checked="checked"':'';
     
    178176        'L_CONF_TN_PREFIX'=>$lang['conf_prefix'],
    179177        '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'],
    184178        'L_CONF_HISTORY'=>$lang['history'],
    185179        'L_CONF_HISTORY_INFO'=>$lang['conf_log_info'],
     
    189183        'ADMIN_MAIL'=>$conf['mail_webmaster'],
    190184        'THUMBNAIL_PREFIX'=>$conf['prefix_thumbnail'],
    191         'ACCESS_FREE'=>$access_free,
    192         'ACCESS_RESTRICTED'=>$access_restricted,
    193185        'HISTORY_YES'=>$history_yes,
    194186        'HISTORY_NO'=>$history_no,
  • trunk/identification.php

    r631 r651  
    9696  }
    9797}
    98 
    9998//-------------------------------------------------------------- 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());
    104100//----------------------------------------------------------- html code display
    105101$template->pparse('identification');
  • trunk/include/functions_user.inc.php

    r650 r651  
    159159function check_login_authorization($guest_allowed = true)
    160160{
    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)
    166164  {
    167165    echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
    168166    echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
    169167    exit();
    170   }
    171168  }
    172169}
  • trunk/index.php

    r593 r651  
    2626// +-----------------------------------------------------------------------+
    2727
    28 //----------------------------------------------------------- include
    2928define('PHPWG_ROOT_PATH','./');
    3029include_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 );
     30redirect('category.php');
    4031?>
  • trunk/install/config.sql

    r649 r651  
    77INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_maxwidth','','maximum width authorized for displaying images');
    88INSERT 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)');
    109INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('nb_comment_page','10','number of comments to display on each page');
    1110INSERT 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  
    4242$lang['authorized'] = 'Authorized';
    4343$lang['forbidden'] = 'Forbidden';
    44 $lang['free'] = 'Free';
    45 $lang['restricted'] = 'Restricted';
    4644$lang['public'] = 'public';
    4745$lang['private'] = 'private';
     
    153151$lang['conf_prefix_error'] = 'Thumbnail\'s prefix must only contain characters among : a to z (case insensitive), "-" or "_"';
    154152$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';
    156153$lang['conf_log_info'] = 'Keep an history of visits on your website ? Visits will be shown in the history section of the administration panel';
    157154$lang['conf_notification'] = 'Mail notification';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r646 r651  
    4242$lang['authorized'] = 'Autorisé';
    4343$lang['forbidden'] = 'Interdit';
    44 $lang['free'] = 'Libre';
    45 $lang['restricted'] = 'Restreint';
    4644$lang['public'] = 'Publique';
    4745$lang['private'] = 'Privée';
     
    154152$lang['conf_prefix_thumbnail_error'] = 'Le préfixe doit être uniquement composé des caractères suivant : a-z, "-" ou "_"';
    155153$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';
    158154$lang['conf_log_info'] = 'historiser les visites sur le site ? Les visites seront visibles dans l\'historique de l\'administration';
    159155$lang['conf_notification'] = 'Notification par mail';
  • trunk/template/default/admin/configuration.tpl

    r649 r651  
    2929  </tr>
    3030  <tr>
    31   <td><strong>{general.L_CONF_ACCESS}&nbsp;:</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}&nbsp;&nbsp;
    33         <input type="radio" class="radio" name="access" value="restricted" {general.ACCESS_RESTRICTED} />{general.L_CONF_ACCESS_RESTRICTED}</td>
    34   </tr>
    35   <tr>
    3631    <td><strong>{general.L_CONF_HISTORY}&nbsp;:</strong><br /><span class="small">{general.L_CONF_HISTORY_INFO}</span></td>
    3732        <td class="row1"><input type="radio" class="radio" name="log" value="true" {general.HISTORY_YES} />{L_YES}&nbsp;&nbsp;
Note: See TracChangeset for help on using the changeset viewer.