Changeset 882


Ignore:
Timestamp:
10/08/05 01:25:42 (15 years ago)
Author:
plg
Message:
  • modification: configuration parameters gallery_title and gallery_description are GUI managed in Administration>Configuration>General
  • bug fixed: configuration parameters (use|show)_(exif|iptc) and authorize_remembering should have been deleted from config table some time ago.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r869 r882  
    112112      if (isset($_POST[$row['param']])) 
    113113      { 
     114        $value = $_POST[$row['param']]; 
     115       
     116        if ('gallery_title' == $row['param'] 
     117            or 'gallery_description' == $row['param']) 
     118        { 
     119          if (!$conf['allow_html_descriptions']) 
     120          { 
     121            $value = strip_tags($value); 
     122          } 
     123        } 
     124         
    114125        $query = ' 
    115126UPDATE '.CONFIG_TABLE.' 
    116   SET value = \''. str_replace("\'", "''", $_POST[$row['param']]).'\' 
     127  SET value = \''. str_replace("\'", "''", $value).'\' 
    117128  WHERE param = \''.$row['param'].'\' 
    118129;'; 
     
    158169        'GALLERY_LOCKED_YES'=>$lock_yes, 
    159170        'GALLERY_LOCKED_NO'=>$lock_no, 
     171        'CONF_GALLERY_TITLE' => $conf['gallery_title'], 
     172        'CONF_GALLERY_DESCRIPTION' => $conf['gallery_description'], 
    160173        )); 
    161174    break; 
  • trunk/doc/ChangeLog

    r881 r882  
     12005-10-08 Pierrick LE GALL 
     2 
     3        * modification: configuration parameters gallery_title and 
     4        gallery_description are GUI managed in 
     5        Administration>Configuration>General 
     6 
     7        * bug fixed: configuration parameters (use|show)_(exif|iptc) and 
     8        authorize_remembering should have been deleted from config table 
     9        some time ago. 
     10         
    1112005-10-08 Pierrick LE GALL 
    212 
  • trunk/include/config_default.inc.php

    r880 r882  
    168168$conf['allow_html_descriptions'] = true; 
    169169 
    170 // gallery_title : Title at top of each page and for RSS feed 
    171 $conf['gallery_title'] = 'PhpWebGallery demonstration site'; 
    172  
    173 // gallery_description : Short description displayed with gallery title 
    174 $conf['gallery_description'] = 'My photos web site'; 
    175  
    176170// galery_url : URL given in RSS feed 
    177171$conf['gallery_url'] = 'http://demo.phpwebgallery.net'; 
  • trunk/install/config.sql

    r860 r882  
    1414INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('auto_expand','false','Auto expand of the category tree'); 
    1515INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_nb_comments','false','Show the number of comments under the thumbnails'); 
    16 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('use_iptc','false','Use IPTC data during database synchronization with files metadata'); 
    17 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('use_exif','false','Use EXIF data during database synchronization with files metadata'); 
    18 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_iptc','false','Show IPTC metadata on picture.php if asked by user'); 
    19 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_exif','true','Show EXIF metadata on picture.php if asked by user'); 
    20 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('authorize_remembering','true','Authorize users to be remembered, see $conf{remember_me_length}'); 
    2116INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_locked','false','Lock your gallery temporary for non admin users'); 
     17INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_title','PhpWebGallery demonstration site','Title at top of each page and for RSS feed'); 
     18INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_description','My photos web site','Short description displayed with gallery title'); 
     19 
  • trunk/template/yoga/admin/configuration.tpl

    r859 r882  
    1414 
    1515  <ul> 
     16    <li> 
     17      <label for="gallery_title"><strong>{lang:Gallery title}</strong></label> 
     18      <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{general.CONF_GALLERY_TITLE}" /> 
     19    </li> 
     20 
     21    <li> 
     22      <label for="gallery_description"><strong>{lang:Gallery description}</strong></label> 
     23      <textarea cols="50" rows="5" name="gallery_description" id="gallery_description">{general.CONF_GALLERY_DESCRIPTION}</textarea> 
     24    </li> 
     25 
    1626    <li> 
    1727      <label><strong>{lang:History}</strong></label> 
Note: See TracChangeset for help on using the changeset viewer.