Changeset 567


Ignore:
Timestamp:
Oct 12, 2004, 12:35:48 AM (20 years ago)
Author:
z0rglub
Message:
  • refactoring
  • add or modified parameters comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config.inc.php

    r555 r567  
    2626// +-----------------------------------------------------------------------+
    2727
    28 // How to change the order of display for images in a category ?
     28/**
     29 *                           configuration page
     30 *
     31 * Set configuration parameters that are not in the table config. In the
     32 * application, configuration parameters are considered in the same way
     33 * coming from config table or config.inc.php.
     34 *
     35 * Why having some parameters in config table and others in config.inc.php ?
     36 * Modifying config.inc.php is a "hard" task for low skilled users, they
     37 * need a GUI for this : admin/configuration. But only parameters that might
     38 * be modified by low skilled users are in config table, other parameters
     39 * are in config.inc.php
     40 */
     41
     42// order_by : how to change the order of display for images in a category ?
    2943//
    30 // You have to modify $conf['order_by'].
    3144// There are several fields that can order the display :
     45//
    3246//  - date_available : the date of the adding to the gallery
    3347//  - file : the name of the file
    34 // Once you've chosen which field(s) to use for ordering,
    35 // you must chose the ascending or descending order for each field.
    36 // examples :
     48//  - id : element identifier
     49//  - date_creation : date of element creation
     50//
     51// Once you've chosen which field(s) to use for ordering, you must chose the
     52// ascending or descending order for each field.  examples :
     53//
    3754// 1. $conf['order_by'] = " order by date_available desc, file asc";
    3855//    will order pictures by date_available descending & by filename ascending
     56//
    3957// 2. $conf['order_by'] = " order by file asc";
    40 //    will only order pictures by file ascending
    41 //    without taking into account the date_available
     58//    will only order pictures by file ascending without taking into account
     59//    the date_available
    4260$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
    4361
    44 $conf['nb_image_row']       = array(4,5,6,7,8);
    45 $conf['nb_row_page']        = array(2,3,4,5,6,7,10,20,1000);
    46 $conf['slideshow_period']   = 4;
    47 $conf['last_days']          = array(1,2,3,10,30,365);
     62// slideshow_period : waiting time in seconds before loading a new page
     63// during automated slideshow
     64$conf['slideshow_period'] = 4;
    4865
    49 // $conf['file_ext'] lists all extensions (case insensitive) allowed for
    50 // your PhpWebGallery installation
    51 $conf['file_ext']           = array('jpg','JPG','png','PNG','gif','GIF'
    52                                     ,'mpg','zip','avi','mp3','ogg');
    53 // $conf['picture_ext'] must bea subset of $conf['file_ext']
    54 $conf['picture_ext']        = array('jpg','JPG','png','PNG','gif','GIF');
    55 $conf['top_number']         = 10; // used for "best rated" and "most visited"
    56 $conf['anti-flood_time']    = 60; // seconds between 2 comments : 0 to disable
     66// last_days : options for X last days to displays for comments
     67$conf['last_days'] = array(1,2,3,10,30,365);
     68
     69// file_ext : file extensions (case insensitive) authorized
     70$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF','mpg','zip',
     71                          'avi','mp3','ogg');
     72
     73// picture_ext : file extensions for picture file, must be a subset of
     74// file_ext
     75$conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF');
     76
     77// top_number : number of element to display for "best rated" and "most
     78// visited" categories
     79$conf['top_number'] = 10;
     80
     81// anti-flood_time : number of seconds between 2 comments : 0 to disable
     82$conf['anti-flood_time'] = 60;
     83
     84// max_LOV_categories : maximum number of categories to display in a list of
     85// value. Over this limit, a textfield is displayed, asking for a category
     86// identifier
    5787$conf['max_LOV_categories'] = 50;
    5888
    59 // $conf['show_iptc_mapping'] is used for showing IPTC metadata on
    60 // picture.php page. For each key of the array, you need to have the same
    61 // key in the $lang array. For example, if my first key is 'iptc_keywords'
    62 // (associated to '2#025') then you need to have $lang['iptc_keywords'] set
    63 // in language/$user['language']/common.lang.php. If you don't have the lang
     89// show_iptc_mapping : is used for showing IPTC metadata on picture.php
     90// page. For each key of the array, you need to have the same key in the
     91// $lang array. For example, if my first key is 'iptc_keywords' (associated
     92// to '2#025') then you need to have $lang['iptc_keywords'] set in
     93// language/$user['language']/common.lang.php. If you don't have the lang
    6494// var set, the key will be simply displayed
    6595//
     
    73103  );
    74104
    75 // in EXIF fields, you can choose to display fields in sub-arrays, for
    76 // example ['COMPUTED']['ApertureFNumber']. for this, add
     105// show_exif_fields : in EXIF fields, you can choose to display fields in
     106// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
    77107// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
    78108//
     
    81111// last part : for key 'COMPUTED;ApertureFNumber', you need
    82112// $lang['exif_field_ApertureFNumber']
     113//
     114// for PHP version newer than 4.1.2 :
     115// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
     116//
    83117$conf['show_exif_fields'] = array('Make',
    84118                                  'Model',
    85119                                  'DateTime',
    86120                                  'COMPUTED;ApertureFNumber');
    87 // for PHP version newer than 4.1.2 :
    88 // $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
    89121
     122// calendar_datefield : date field of table "images" used for calendar
     123// catgory
    90124$conf['calendar_datefield'] = 'date_available';
     125
     126// rate : enable feature for rating elements
    91127$conf['rate'] = true;
    92128
    93 // time of validity for "remember me" cookies, in seconds.
     129// remember_me_length : time of validity for "remember me" cookies, in
     130// seconds.
    94131$conf['remember_me_length'] = 31536000;
    95132
    96 // time of validity for normal session, in seconds.
     133// session_length : time of validity for normal session, in seconds.
    97134$conf['session_length'] = 3600;
    98135
    99 // session id size. A session identifier is compound of alphanumeric
     136// session_id_size : a session identifier is compound of alphanumeric
    100137// characters and is case sensitive. Each character is among 62
    101138// possibilities. The number of possible sessions is
    102139// 62^$conf['session_id_size'].
     140//
    103141// 62^5  =             916,132,832
    104142// 62^10 = 839,299,365,868,340,224
     143//
    105144$conf['session_id_size'] = 10;
    106145?>
Note: See TracChangeset for help on using the changeset viewer.