From 9ea0ae39f8517bcd898c80999ea860fa6961d1d8 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 25 Apr 2005 22:11:57 +0000 Subject: - include/config.inc.php becomes include/config_default.inc.php : this file should not be modified. A new file include/config_local.inc.php can be used for overwriting configuration parameters git-svn-id: http://piwigo.org/svn/trunk@770 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/common.inc.php | 3 +- include/config.inc.php | 198 ---------------------------------------- include/config_default.inc.php | 202 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 204 insertions(+), 199 deletions(-) delete mode 100644 include/config.inc.php create mode 100644 include/config_default.inc.php (limited to 'include') diff --git a/include/common.inc.php b/include/common.inc.php index 1672f42ba..a57e00641 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -121,7 +121,8 @@ if (!defined('PHPWG_INSTALLED')) } include(PHPWG_ROOT_PATH . 'include/constants.php'); -include(PHPWG_ROOT_PATH . 'include/config.inc.php'); +include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); +@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php'); include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); include(PHPWG_ROOT_PATH . 'include/template.php'); diff --git a/include/config.inc.php b/include/config.inc.php deleted file mode 100644 index 27001795a..000000000 --- a/include/config.inc.php +++ /dev/null @@ -1,198 +0,0 @@ - '2#025', - 'iptc_caption_writer' => '2#122', - 'iptc_byline_title' => '2#085', - 'iptc_caption' => '2#120' - ); - -// 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_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', - 'DateTime', - 'COMPUTED;ApertureFNumber'); - -// calendar_datefield : date field of table "images" used for calendar -// catgory -$conf['calendar_datefield'] = 'date_creation'; - -// rate : enable feature for rating elements -$conf['rate'] = true; - -// remember_me_length : time of validity for "remember me" cookies, in -// seconds. -$conf['remember_me_length'] = 31536000; - -// session_length : time of validity for normal session, in seconds. -$conf['session_length'] = 3600; - -// session_id_size : a session identifier is compound of alphanumeric -// characters and is case sensitive. Each character is among 62 -// possibilities. The number of possible sessions is -// 62^$conf['session_id_size']. -// -// 62^5 = 916,132,832 -// 62^10 = 839,299,365,868,340,224 -// -$conf['session_id_size'] = 10; - -// info_nb_elements_page : number of elements to display per page on -// admin/infos_images -$conf['info_nb_elements_page'] = 5; - -// 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'] = true; - -// newcat_default_commentable : at creation, must a category be commentable -// or not ? -$conf['newcat_default_commentable'] = 'true'; - -// newcat_default_uploadable : at creation, must a category be uploadable or -// not ? -$conf['newcat_default_uploadable'] = 'false'; - -// newcat_default_visible : at creation, must a category be visible or not ? -// Warning : if the parent category is invisible, the category is -// automatically create invisible. (invisible = locked) -$conf['newcat_default_visible'] = 'true'; - -// newcat_default_status : at creation, must a category be public or private -// ? Warning : if the parent category is private, the category is -// automatically create private. -$conf['newcat_default_status'] = 'public'; - -// level_separator : character string used for separating a category level -// to the sub level. Suggestions : ' / ', ' » ', ' → ', ' - ', -// ' >' -$conf['level_separator'] = ' / '; - -// paginate_pages_around : on paginate navigation bar, how many pages -// display before and after the current page ? -$conf['paginate_pages_around'] = 2; - -// tn_width : default width for thumbnails creation -$conf['tn_width'] = 128; - -// tn_height : default height for thumbnails creation -$conf['tn_height'] = 96; - -// show_version : shall the version of PhpWebGallery be displayed at the -// bottom of each page ? -$conf['show_version'] = true; -?> diff --git a/include/config_default.inc.php b/include/config_default.inc.php new file mode 100644 index 000000000..0fea39a78 --- /dev/null +++ b/include/config_default.inc.php @@ -0,0 +1,202 @@ + '2#025', + 'iptc_caption_writer' => '2#122', + 'iptc_byline_title' => '2#085', + 'iptc_caption' => '2#120' + ); + +// 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_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', + 'DateTime', + 'COMPUTED;ApertureFNumber'); + +// calendar_datefield : date field of table "images" used for calendar +// catgory +$conf['calendar_datefield'] = 'date_creation'; + +// rate : enable feature for rating elements +$conf['rate'] = true; + +// remember_me_length : time of validity for "remember me" cookies, in +// seconds. +$conf['remember_me_length'] = 31536000; + +// session_length : time of validity for normal session, in seconds. +$conf['session_length'] = 3600; + +// session_id_size : a session identifier is compound of alphanumeric +// characters and is case sensitive. Each character is among 62 +// possibilities. The number of possible sessions is +// 62^$conf['session_id_size']. +// +// 62^5 = 916,132,832 +// 62^10 = 839,299,365,868,340,224 +// +$conf['session_id_size'] = 10; + +// info_nb_elements_page : number of elements to display per page on +// admin/infos_images +$conf['info_nb_elements_page'] = 5; + +// 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'] = true; + +// newcat_default_commentable : at creation, must a category be commentable +// or not ? +$conf['newcat_default_commentable'] = 'true'; + +// newcat_default_uploadable : at creation, must a category be uploadable or +// not ? +$conf['newcat_default_uploadable'] = 'false'; + +// newcat_default_visible : at creation, must a category be visible or not ? +// Warning : if the parent category is invisible, the category is +// automatically create invisible. (invisible = locked) +$conf['newcat_default_visible'] = 'true'; + +// newcat_default_status : at creation, must a category be public or private +// ? Warning : if the parent category is private, the category is +// automatically create private. +$conf['newcat_default_status'] = 'public'; + +// level_separator : character string used for separating a category level +// to the sub level. Suggestions : ' / ', ' » ', ' → ', ' - ', +// ' >' +$conf['level_separator'] = ' / '; + +// paginate_pages_around : on paginate navigation bar, how many pages +// display before and after the current page ? +$conf['paginate_pages_around'] = 2; + +// tn_width : default width for thumbnails creation +$conf['tn_width'] = 128; + +// tn_height : default height for thumbnails creation +$conf['tn_height'] = 96; + +// show_version : shall the version of PhpWebGallery be displayed at the +// bottom of each page ? +$conf['show_version'] = true; +?> -- cgit v1.2.3