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

@ -153,7 +153,7 @@ if (isset($_POST) && !empty($_POST)) {
planet = '" . $irak['planet_angreifer'] . "' AND
planet_type = '1'", 'planets', true);
if (mysql_num_rows($planet_start) == 1) {
if ($planet_start->rowCount() == 1) {
$planet = mysql_fetch_array($planet_start);
}
@ -197,7 +197,7 @@ if (isset($_POST) && !empty($_POST)) {
$newMessages = new Legacies_Core_View();
$newMessages->setTemplate('empire/overview/messages.phtml');
$newMessages['count'] = (int) $count;
/** Gestion des officiers
* Update miner and raider level
*
@ -220,7 +220,7 @@ if (isset($_POST) && !empty($_POST)) {
$user->setData('rpg_points', $user->getData('rpg_points') +1);
$user->save();
}
/**
* Page display
* Refactoring needed