forget the updates to this file
parent
2a45506bff
commit
09fbdc9e35
|
@ -145,16 +145,16 @@ function loadConfig( $defineConsts=true )
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
global $configCats;
|
global $configCats;
|
||||||
|
global $dbConn;
|
||||||
|
|
||||||
$config = array();
|
$config = array();
|
||||||
$configCat = array();
|
$configCat = array();
|
||||||
|
|
||||||
$sql = "select * from Config order by Id asc";
|
$result = $dbConn->query( 'select * from Config order by Id asc' );
|
||||||
$result = mysql_query( $sql );
|
|
||||||
if ( !$result )
|
if ( !$result )
|
||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
$monitors = array();
|
$monitors = array();
|
||||||
while( $row = mysql_fetch_assoc( $result ) )
|
while( $row = dbFetchNext( $result ) )
|
||||||
{
|
{
|
||||||
if ( $defineConsts )
|
if ( $defineConsts )
|
||||||
define( $row['Name'], $row['Value'] );
|
define( $row['Name'], $row['Value'] );
|
||||||
|
|
Loading…
Reference in New Issue