Fixed mysql_* calls

Updated skin
Fixed minor bugs in shipyard pages display
Fixed various bugs in legacy fleet pages source code.

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-09-22 01:19:45 +02:00
commit cfeb6aca6d
68 changed files with 1561 additions and 1451 deletions

View file

@ -42,7 +42,7 @@ require_once dirname(__FILE__) .'/common.php';
$query = doquery("SELECT * FROM {{table}} WHERE fleet_id = '" . $fleetid . "'", 'fleets');
if (mysql_num_rows($query) != 1) {
if ($query->rowCount() != 1) {
message('Cette flotte n\'existe pas (ou plus)!', 'Erreur');
}
@ -104,10 +104,9 @@ require_once dirname(__FILE__) .'/common.php';
id = '" . $fleet['fleet_group'] . "'"
, 'aks');
if (mysql_num_rows($aks) != 1) {
if ($aks->rowCount() != 1) {
message('AKS nicht gefunden!', 'Fehler');
}
$aks = mysql_num_rows($aks);
}
$missiontype = array(1 => 'Attaquer',