Sry, I was a bit unprecise...
You should execute the query above with PHPMyAdmin and then replace
PHP Code:
public static function GetMaintenanceStatus()
{
$sql = dbquery("SELECT maintenance FROM site_config LIMIT 1");
if(!$sql)
echo mysql_error();
else
echo "MYSQL SEEMS OK";
if(mysql_num_rows($sql) != 1)
echo "MYSQL DOES NOT RETURN ANYTHING";
else
echo "EVERYTHINGS OK";
return mysql_result($sql,0);
}
with
PHP Code:
public static function GetMaintenanceStatus()
{
return mysql_result(dbquery("SELECT maintenance FROM site_config LIMIT 1"),0);
}