Changeset 592
- Timestamp:
- Nov 5, 2004, 10:36:35 PM (19 years ago)
- Location:
- trunk/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config.inc.php
r587 r592 147 147 // admin/infos_images 148 148 $conf['info_nb_elements_page'] = 5; 149 150 // default_language : language used if language set in user database is not 151 // available 152 $conf['default_language'] = 'en_UK.iso-8859-1'; 153 154 // show_queries : for debug purpose, show queries and execution times 155 $conf['show_queries'] = false; 156 157 // show_gt : display generation time at the bottom of each page 158 $conf['show_gt'] = true; 149 159 ?> -
trunk/include/constants.php
r589 r592 27 27 28 28 // Default settings 29 define('DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');30 29 define('PHPWG_VERSION', 'BSF'); 31 30 define('PHPWG_URL', 'http://www.phpwebgallery.net'); 32 31 define('PHPWG_FORUM_URL', 'http://forum.phpwebgallery.net'); 33 32 34 // Debug Level : 1 = on, 0 = off35 define('DEBUG', 0);36 37 33 // User level 38 34 define('ANONYMOUS', 2); -
trunk/include/functions.inc.php
r587 r592 447 447 function pwg_query($query) 448 448 { 449 global $conf; 450 449 451 $start = get_moment(); 450 452 $result = mysql_query($query); 451 453 452 if ( DEBUG)454 if ($conf['show_queries']) 453 455 { 454 456 global $count_queries,$queries_time; -
trunk/include/functions_user.inc.php
r587 r592 227 227 if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php')) ) 228 228 { 229 $language = DEFAULT_LANGUAGE;229 $language = $conf['default_language']; 230 230 } 231 231 include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php'); … … 236 236 if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language. '/admin.lang.php')) ) 237 237 { 238 $language = DEFAULT_LANGUAGE;238 $language = $conf['default_language']; 239 239 } 240 240 include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/admin.lang.php'); -
trunk/include/page_tail.php
r589 r592 44 44 )); 45 45 46 //if (DEBUG) 47 if (true) 46 if ($conf['show_gt']) 48 47 { 49 48 $template->assign_block_vars('debug', array());
Note: See TracChangeset
for help on using the changeset viewer.