wyczyść cache strony? Ściagnij nową paczke??
http://gm-community....24&d=1293266389
Nowa paczka pobrana,
Wyczyszczono Cache strony
, menu nie działa, dodatkowo błędy msql nadal są:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'aqua254_verchk'@'localhost' (using password: YES) in /amxbans/include/sql.inc.php on line 664
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /amxbans/include/sql.inc.php on line 665
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /amxbans/include/sql.inc.php on line 668
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /amxbans/include/sql.inc.php on line 669
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /amxbans/include/sql.inc.php on line 691
Błędy odnoszą się do tego:
function sql_get_version_info($type = "web") {
global $config;
$version = "";
$conn_update = "";
$query = "";
//get versions from update db
$conn_update = mysql_connect('desagr.ru','aqua254_verchk','amxbansosnooley');
mysql_select_db('aqua254_gmabans', $conn_update);
if($type == "web") {
//get newest web versions info
$query = mysql_query("SELECT * FROM `version` WHERE `for`='web' ORDER BY `release` DESC LIMIT 1",$conn_update);
while($result = mysql_fetch_object($query)) {
$version=array(
"release"=>$result->release,
"beta"=>$result->beta,
"recommended_to"=>$result->recommended_to,
"changelog"=>$result->changelog,
"url"=>$result->url
);
}
} elseif($type == "plugin") {
//get newest plugin versions info
$query = mysql_query("SELECT * FROM `version` WHERE `for`='plugin' ORDER BY `release` DESC LIMIT 1",$conn_update);
while($result = mysql_fetch_object($query)) {
$version=array(
"release"=>$result->release,
"beta"=>$result->beta,
"recommended_to"=>$result->recommended_to,
"changelog"=>$result->changelog,
"url"=>$result->url
);
}
}
mysql_close($conn_update);
@mysql_connect($config->db_host,$config->db_user,$config->db_pass);
@mysql_select_db($config->db_db);
return $version;
}
//edit: Cześć błędów naprawiłem został tylko ten błąd:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /amxbans/include/sql.inc.php on line 669
Linijka 669:
while($result = mysql_fetch_object($query)) {
Użytkownik Magnetix edytował ten post 25.12.2010 15:18