Ignore:
Timestamp:
Apr 27, 2006, 11:05:07 PM (18 years ago)
Author:
plg
Message:

bug 228 fixed one more time ;-): use boolean_to_string on
$confnewuser_default_enabled_high during user infos creation. Useless
use of boolean_to_string on $confnewcat_default_status was removed.

modification: loading configuration parameter from database was moved to a
dedicated function to be called from include/common.inc.php and from
install.php.

improvement: use of clean insert function during install.

bug fixed: during user information creation, support new status
webmaster/normal/guest instead of admin/guest.

bug fixed: during install, no need to insert obsolete mail_webmaster
configuration parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/common.inc.php

    r1119 r1282  
    163163// since basic gallery information is not available
    164164//
    165 $query = '
    166 SELECT param,value
    167  FROM '.CONFIG_TABLE.'
    168 ;';
    169 if (!($result = pwg_query($query)))
    170 {
    171   die("Could not query config information");
    172 }
    173 
    174 while ( $row =mysql_fetch_array( $result ) )
    175 {
    176   if ( isset( $row['value'] ) )
    177   {
    178     $conf[$row['param']] = $row['value'];
    179   }
    180   else
    181   {
    182     $conf[$row['param']] = '';
    183   }
    184   // If the field is true or false, the variable is transformed into a
    185   // boolean value.
    186   if ( $conf[$row['param']] == 'true' or $conf[$row['param']] == 'false' )
    187   {
    188     $conf[$row['param']] = get_boolean( $conf[$row['param']] );
    189   }
    190 }
     165load_conf_from_db();
    191166
    192167include(PHPWG_ROOT_PATH.'include/user.inc.php');
Note: See TracChangeset for help on using the changeset viewer.