'PWG website', // 'http://forum.phpwebgallery.net' => 'PWG forum', // 'http://phpwebgallery.net/doc' => 'PWG wiki' // ); // // Advenced use: // You can also used special options. Instead to pass a string like parameter value // you can pass a array with different optional parameter values // $conf['links'] = array( // 'http://phpwebgallery.net' => array('label' => 'PWG website', 'new_window' => false, 'eval_visible' => 'return true;'), // 'http://forum.phpwebgallery.net' => array('label' => 'For ADMIN', 'new_window' => true, 'eval_visible' => 'return is_admin();'), // 'http://phpwebgallery.net/doc' => array('label' => 'For Guest', 'new_window' => true, 'eval_visible' => 'return $user[\'is_the_guest\'];'), // 'http://download.gna.org/phpwebgallery/' => // array('label' => 'PopUp', 'new_window' => true, // 'nw_name' => 'PopUp', 'nw_features' => 'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'), // ); // Parameters: // 'label': // Label to display for the link, must be defined // 'new_window': // If true open link on tab/window // [Default value is true if it's not defined] // 'nw_name': // Name use when new_window is true // [Default value is '' if it's not defined] // 'nw_features': // features use when new_window is true // [Default value is '' if it's not defined] // 'eval_visible': // It's php code witch must return if the link is visible or not // [Default value is true if it's not defined] // // Equivalence: // $conf['links'] = array( // 'http://phpwebgallery.net' => 'PWG website', // ); // $conf['links'] = array( // 'http://phpwebgallery.net' => array('label' => 'PWG website', 'new_window' => false, 'visible' => 'return true;'), // ); // // If the array is empty, the "Links" box won't be displayed on the main // page. $conf['links'] = array(); // random_index_redirect: list of 'internal' links to use when no section is defined on index.php. // An example is the best than a long explanation : // // for each link is associated a php condition // '' condition is equivalent to 'return true;' // $conf['random_index_redirect'] = array( // PHPWG_ROOT_PATH.'index.php?/best_rated' => 'return true;', // PHPWG_ROOT_PATH.'index.php?/recent_pics' => 'return $user[\'is_the_guest\'];', // PHPWG_ROOT_PATH.'random.php' => '', // PHPWG_ROOT_PATH.'index.php?/categories' => '', // ); $conf['random_index_redirect'] = array(); // List of notes to display on all header page // example $conf['header_notes'] = array('Test', 'Hello'); $conf['header_notes'] = array(); // show_thumbnail_caption : on thumbnails page, show thumbnail captions ? $conf['show_thumbnail_caption'] = true; // show_picture_name_on_title : on picture presentation page, show picture // name ? $conf['show_picture_name_on_title'] = true; // subcatify: display thumbnails representing a category a different way // than thumbnails representing a picture. $conf['subcatify'] = true; // allow_random_representative : do you wish PhpWebGallery to search among // categories elements a new representative at each reload ? // // If false, an element is randomly or manually chosen to represent its // category and remains the representative as long as an admin does not // change it. // // Warning : setting this parameter to true is CPU consuming. Each time you // change the value of this parameter from false to true, an administrator // must update categories informations in screen [Admin > General > // Maintenance]. $conf['allow_random_representative'] = false; // allow_html_descriptions : authorize administrators to use HTML in // category and element description. $conf['allow_html_descriptions'] = true; // prefix_thumbnail : string before filename. Thumbnail's prefix must only // contain characters among : a to z (case insensitive), "-" or "_". $conf['prefix_thumbnail'] = 'TN-'; // users_page: how many users to display in screen // Administration>Identification>Users? $conf['users_page'] = 20; // mail_options: only set it true if you have a send mail warning with // "options" parameter missing on mail() function execution. $conf['mail_options'] = false; // send_bcc_mail_webmaster: send bcc mail to webmaster. Set true for debug // or test. $conf['send_bcc_mail_webmaster'] = false; // enabled_format_email: // on true email will be formatted with name and address // on false email will be only address // There are webhosting wich not allow email formatted (Lycos, ...) $conf['enabled_format_email'] = true; // default_email_format: // Define the default email format use to send email // Value could be text/plain or text/html $conf['default_email_format'] = 'text/html'; // check_upgrade_feed: check if there are database upgrade required. Set to // true, a message will strongly encourage you to upgrade your database if // needed. // // This configuration parameter is set to true in BSF branch and to false // elsewhere. $conf['check_upgrade_feed'] = false; // rate_items: available rates for a picture $conf['rate_items'] = array(0,1,2,3,4,5); // Define default method to use ('http' or 'html' in order to do redirect) $conf['default_redirect_method'] = 'http'; // +-----------------------------------------------------------------------+ // | metadata | // +-----------------------------------------------------------------------+ // show_iptc: Show IPTC metadata on picture.php if asked by user $conf['show_iptc'] = false; // show_iptc_mapping : is used for showing IPTC metadata on picture.php // page. For each key of the array, you need to have the same key in the // $lang array. For example, if my first key is 'iptc_keywords' (associated // to '2#025') then you need to have $lang['iptc_keywords'] set in // language/$user['language']/common.lang.php. If you don't have the lang // var set, the key will be simply displayed // // To know how to associated iptc_field with their meaning, use // tools/metadata.php $conf['show_iptc_mapping'] = array( 'iptc_keywords' => '2#025', 'iptc_caption_writer' => '2#122', 'iptc_byline_title' => '2#085', 'iptc_caption' => '2#120' ); // use_iptc: Use IPTC data during database synchronization with files // metadata $conf['use_iptc'] = false; // use_iptc_mapping : in which IPTC fields will PhpWebGallery find image // information ? This setting is used during metadata synchronisation. It // associates a phpwebgallery_images column name to a IPTC key $conf['use_iptc_mapping'] = array( 'keywords' => '2#025', 'date_creation' => '2#055', 'author' => '2#122', 'name' => '2#005', 'comment' => '2#120' ); // show_exif: Show EXIF metadata on picture.php (table or line presentation // avalaible) $conf['show_exif'] = true; // show_exif_fields : in EXIF fields, you can choose to display fields in // sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add // 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields'] // // The key displayed in picture.php will be $lang['exif_field_Make'] for // example and if it exists. For compound fields, only take into account the // last part : for key 'COMPUTED;ApertureFNumber', you need // $lang['exif_field_ApertureFNumber'] // // for PHP version newer than 4.1.2 : // $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime'); // $conf['show_exif_fields'] = array( 'Make', 'Model', 'DateTimeOriginal', 'COMPUTED;ApertureFNumber' ); // use_exif: Use EXIF data during database synchronization with files // metadata $conf['use_exif'] = true; // use_exif_mapping: same behaviour as use_iptc_mapping $conf['use_exif_mapping'] = array( 'date_creation' => 'DateTimeOriginal' ); // +-----------------------------------------------------------------------+ // | sessions | // +-----------------------------------------------------------------------+ // session_use_cookies: specifies to use cookie to store // the session id on client side $conf['session_use_cookies'] = true; // session_use_only_cookies: specifies to only use cookie to store // the session id on client side $conf['session_use_only_cookies'] = true; // session_use_trans_sid: do not use transparent session id support $conf['session_use_trans_sid'] = false; // session_name: specifies the name of the session which is used as cookie name $conf['session_name'] = 'pwg_id'; // session_save_handler: comment the line below // to use file handler for sessions. $conf['session_save_handler'] = 'db'; // authorize_remembering : permits user to stay logged for a long time. It // creates a cookie on client side. $conf['authorize_remembering'] = true; // remember_me_name: specifies the name of the cookie used to stay logged $conf['remember_me_name'] = 'pwg_remember'; // remember_me_length : time of validity for "remember me" cookies, in // seconds. $conf['remember_me_length'] = 5184000; // session_length : time of validity for normal session, in seconds. $conf['session_length'] = 3600; // +-----------------------------------------------------------------------+ // | debug | // +-----------------------------------------------------------------------+ // show_queries : for debug purpose, show queries and execution times $conf['show_queries'] = false; // show_gt : display generation time at the bottom of each page $conf['show_gt'] = false; // debug_l10n : display a warning message each time an unset language key is // accessed $conf['debug_l10n'] = false; // die_on_sql_error: if an SQL query fails, should everything stop? $conf['die_on_sql_error'] = false; // +-----------------------------------------------------------------------+ // | authentication | // +-----------------------------------------------------------------------+ // apache_authentication : use Apache authentication as reference instead of // users table ? $conf['apache_authentication'] = false; // users_table: which table is the reference for users? Can be a different // table than PhpWebGallery table // // If you decide to use another table than the default one, you need to // prepare your database by deleting some datas : // // delete from phpwebgallery_user_access; // delete from phpwebgallery_user_cache; // delete from phpwebgallery_user_feed; // delete from phpwebgallery_user_group; // delete from phpwebgallery_user_infos; // delete from phpwebgallery_sessions; // delete from phpwebgallery_rate; // update phpwebgallery_images set average_rate = NULL; // delete from phpwebgallery_caddie; // delete from phpwebgallery_favorites; // // All informations contained in these tables and column are related to // phpwebgallery_users table. $conf['users_table'] = $prefixeTable.'users'; // user_fields : mapping between generic field names and table specific // field names. For example, in PWG, the mail address is names // "mail_address" and in punbb, it's called "email". $conf['user_fields'] = array( 'id' => 'id', 'username' => 'username', 'password' => 'password', 'email' => 'mail_address' ); // pass_convert : function to crypt or hash the clear user password to store // it in the database $conf['pass_convert'] = create_function('$s', 'return md5($s);'); // guest_id : id of the anonymous user $conf['guest_id'] = 2; // default_user_id : id of user used for default value $conf['default_user_id'] = $conf['guest_id']; // webmaster_id : webmaster'id. $conf['webmaster_id'] = 1; // allow to use adviser mode $conf['allow_adviser'] = false; // does the guest have access ? // (not a security feature, set your categories "private" too) // If false it'll be redirected from index.php to identification.php $conf['guest_access'] = true; // +-----------------------------------------------------------------------+ // | upload | // +-----------------------------------------------------------------------+ // upload_maxfilesize: maximum filesize for the uploaded pictures. In // kilobytes. $conf['upload_maxfilesize'] = 200; // upload_maxheight: maximum height authorized for the uploaded images. In // pixels. $conf['upload_maxheight'] = 800; // upload_maxwidth: maximum width authorized for the uploaded images. In // pixels. $conf['upload_maxwidth'] = 800; // upload_maxheight_thumbnail: maximum height authorized for the uploaded // thumbnails $conf['upload_maxheight_thumbnail'] = 128; // upload_maxwidth_thumbnail: maximum width authorized for the uploaded // thumbnails $conf['upload_maxwidth_thumbnail'] = 128; // +-----------------------------------------------------------------------+ // | history | // +-----------------------------------------------------------------------+ // nb_logs_page : how many logs to display on a page $conf['nb_logs_page'] = 300; // +-----------------------------------------------------------------------+ // | urls | // +-----------------------------------------------------------------------+ // question_mark_in_urls : the generated urls contain a ? sign. This can be // changed to false only if the server translates PATH_INFO variable // (depends on the server AcceptPathInfo directive configuration) $conf['question_mark_in_urls'] = true; // php_extension_in_urls : if true, the urls generated for picture and // category will not contain the .php extension. This will work only if // .htaccess defines Options +MultiViews parameter or url rewriting rules // are active. $conf['php_extension_in_urls'] = true; // category_url_style : one of 'id' (default) or 'id-name'. 'id-name' // means that an simplified ascii represntation of the category name will // appear in the url $conf['category_url_style'] = 'id'; // picture_url_style : one of 'id' (default), 'id-file' or 'file'. 'id-file' // or 'file' mean that the file name (without extension will appear in the // url). Note that one aditionnal sql query will occur if 'file' is choosen. // Note that you might experience navigation issues if you choose 'file' // and your file names are not unique $conf['picture_url_style'] = 'id'; // tag_url_style : one of 'id-tag' (default), 'id' or 'tag'. // Note that if you choose 'tag' and the url (ascii) representation of your // tags is not unique, all tags with the same url representation will be shown $conf['tag_url_style'] = 'id-tag'; // +-----------------------------------------------------------------------+ // | tags | // +-----------------------------------------------------------------------+ // full_tag_cloud_items_number: number of tags to show in the full tag // cloud. Only the most represented tags will be shown $conf['full_tag_cloud_items_number'] = 200; // menubar_tag_cloud_items_number: number of tags to show in the tag // cloud in the menubar. Only the most represented tags will be shown $conf['menubar_tag_cloud_items_number'] = 100; // content_tag_cloud_items_number: number of tags to show in the tag // cloud on the content page. Only the most represented tags will be shown $conf['content_tag_cloud_items_number'] = 12; // tags_levels: number of levels to use for display. Each level is bind to a // CSS class tagLevelX. $conf['tags_levels'] = 5; // +-----------------------------------------------------------------------+ // | Notification by mail | // +-----------------------------------------------------------------------+ // Default Value for nbm user $conf['nbm_default_value_user_enabled'] = false; // Search list user to send quickly (List all without to check news) // More quickly but less fun to use $conf['nbm_list_all_enabled_users_to_send'] = false; // Max time used on one pass in order to send mails. // Timeout delay ratio. $conf['nbm_max_treatment_timeout_percent'] = 0.8; // If timeout cannot be compite with nbm_max_treatment_timeout_percent, // nbm_treatment_timeout_default is used by default $conf['nbm_treatment_timeout_default'] = 20; // Parameters used in get_recent_post_dates for the 2 kind of notification $conf['recent_post_dates'] = array( 'RSS' => array('max_dates' => 5, 'max_elements' => 6, 'max_cats' => 6), 'NBM' => array('max_dates' => 7, 'max_elements' => 3, 'max_cats' => 9) ); // +-----------------------------------------------------------------------+ // | Set default admin layout | // +-----------------------------------------------------------------------+ // Must be user setable in future // Default value of admin layout // Step 1, default_admin_layout is not defined // null value, user_layout is used for admin layout // defined value, this value are used for admin layout // Next on step 2, default_admin_layout will be used // if there are not checked like admin layout // stored on user informations //$conf['default_admin_layout']='yoga/dark'; // should we load the active plugins ? true=Yes, false=No $conf['enable_plugins']=true; // +-----------------------------------------------------------------------+ // | Set default for Web Service | // +-----------------------------------------------------------------------+ // Web services are allowed (true) or completely forbidden (false) $conf['allow_web_services'] = true; // Maximum number of images to be returned foreach call to the web service $conf['ws_max_images_per_page'] = 500; // On Access control false / Admim Web Service need Php cURL extension // Controls are done on public basis or // if connected on member authorization basis $conf['ws_access_control'] = false; // On Access control true // Additionnal controls are made based on Web Service Access Table // Max returned rows number ( > 0 ) $conf['ws_allowed_limit'] = array(1,2,3,5,10,25); // By default can be delayed by 0, 1, 2, 3, 5, 7, 14 or 30 days // 0 it's Now(), don't remove that one $conf['ws_postponed_start'] = array(0,1,2,3,5,7,14,30); /* In days */ // By default 10, 5, 2, 1 year(s) or 6, 3, 1 month(s) // or 15, 10, 7, 5, 1, 0 day(s) // 0 it's temporary closed (Useful for one access) $conf['ws_durations'] = array(3650,1825,730,365,182,91,30,15,10,7,5,1,0); // +-----------------------------------------------------------------------+ // | Filter | // +-----------------------------------------------------------------------+ // $conf['filter_pages'] contains configuration for each pages // o If values are not defined for a specific page, default value are used // o Array is composed by the basename of each page without extention // o List of value names: // - used: filter function are used // (if false nothing is done [start, cancel, stop, ...] // - cancel: cancel current started filter // - add_notes: add notes about current started filter on the header // o Empty configuration in order to disable completely filter functions // No filter, No icon,... // $conf['filter_pages'] = array(); $conf['filter_pages'] = array ( // Default page 'default' => array( 'used' => true, 'cancel' => false, 'add_notes' => false), // Real pages 'index' => array('add_notes' => true), 'tags' => array('add_notes' => true), 'search' => array('add_notes' => true), 'comments' => array('add_notes' => true), 'admin' => array('used' => false), 'feed' => array('used' => false), 'notification' => array('used' => false), 'nbm' => array('used' => false), 'popuphelp' => array('used' => false), 'profile' => array('used' => false), 'web_service' => array('used' => false), 'ws' => array('used' => false), 'identification' => array('cancel' => true), 'install' => array('cancel' => true), 'password' => array('cancel' => true), 'register' => array('cancel' => true), 'upgrade_feed' => array('cancel' => true), ); // +-----------------------------------------------------------------------+ // | Light slideshow | // +-----------------------------------------------------------------------+ // $conf['light_slideshow'] indicates to use slideshow.tpl in state of // picture.tpl for slideshow // Take care to have slideshow.tpl in all available templates // Or set it false. // Check if Picture's plugins are compliant with it // Every plugin from 1.7 would be design to manage light_slideshow case. $conf['light_slideshow'] = true; ?>