We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$template->assign('PageTopic','Racial Standings'); |
|
3 | +$template->assign('PageTopic', 'Racial Standings'); |
|
4 | 4 | |
5 | 5 | Menu::rankings(2, 1); |
6 | 6 |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | $player->setNewbieWarning(false); |
3 | -forward(create_container('skeleton.php','newbie_warning.php')); |
|
3 | +forward(create_container('skeleton.php', 'newbie_warning.php')); |
@@ -18,12 +18,12 @@ discard block |
||
18 | 18 | if ($action == 'INC' || $action == 'DEC') { |
19 | 19 | $db->query('REPLACE INTO player_votes_relation |
20 | 20 | (account_id, game_id, race_id_1, race_id_2, action, time) |
21 | - VALUES(' . $db->escapeNumber($player->getAccountID()) . ', ' . $db->escapeNumber($player->getGameID()) . ', ' . $db->escapeNumber($player->getRaceID()) . ', '.$db->escapeNumber($race_id).', '.$db->escapeString($action).', '.$db->escapeNumber(TIME).')'); |
|
21 | + VALUES(' . $db->escapeNumber($player->getAccountID()) . ', ' . $db->escapeNumber($player->getGameID()) . ', ' . $db->escapeNumber($player->getRaceID()) . ', ' . $db->escapeNumber($race_id) . ', ' . $db->escapeString($action) . ', ' . $db->escapeNumber(TIME) . ')'); |
|
22 | 22 | } |
23 | 23 | elseif ($action == 'YES' || $action == 'NO') { |
24 | 24 | $db->query('REPLACE INTO player_votes_pact |
25 | 25 | (account_id, game_id, race_id_1, race_id_2, vote) |
26 | - VALUES(' . $db->escapeNumber($player->getAccountID()) . ', ' . $db->escapeNumber($player->getGameID()) . ', ' . $db->escapeNumber($player->getRaceID()) . ', '.$db->escapeNumber($race_id).', '.$db->escapeString($action).')'); |
|
26 | + VALUES(' . $db->escapeNumber($player->getAccountID()) . ', ' . $db->escapeNumber($player->getGameID()) . ', ' . $db->escapeNumber($player->getRaceID()) . ', ' . $db->escapeNumber($race_id) . ', ' . $db->escapeString($action) . ')'); |
|
27 | 27 | } |
28 | 28 | elseif ($action == 'VETO') { |
29 | 29 | // try to cancel both votings |
@@ -37,11 +37,11 @@ discard block |
||
37 | 37 | AND race_id_2 = '.$db->escapeNumber($race_id)); |
38 | 38 | $db->query('DELETE FROM race_has_voting ' . |
39 | 39 | 'WHERE game_id = ' . $db->escapeNumber($player->getGameID()) . ' |
40 | - AND race_id_1 = '.$db->escapeNumber($race_id).' |
|
40 | + AND race_id_1 = '.$db->escapeNumber($race_id) . ' |
|
41 | 41 | AND race_id_2 = ' . $db->escapeNumber($player->getRaceID())); |
42 | 42 | $db->query('DELETE FROM player_votes_pact ' . |
43 | 43 | 'WHERE game_id = ' . $db->escapeNumber($player->getGameID()) . ' |
44 | - AND race_id_1 = '.$db->escapeNumber($race_id).' |
|
44 | + AND race_id_1 = '.$db->escapeNumber($race_id) . ' |
|
45 | 45 | AND race_id_2 = ' . $db->escapeNumber($player->getRaceID())); |
46 | 46 | |
47 | 47 | } |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | -$template->assign('PageTopic','Alliance Profit Rankings'); |
|
2 | +$template->assign('PageTopic', 'Alliance Profit Rankings'); |
|
3 | 3 | Menu::rankings(1, 1); |
4 | 4 | |
5 | 5 | $db->query('SELECT count(*) FROM alliance |
6 | 6 | WHERE game_id = ' . $db->escapeNumber($player->getGameID())); |
7 | 7 | $db->nextRecord(); |
8 | 8 | $numAlliances = $db->getInt('count(*)'); |
9 | -$profitType = array('Trade','Money','Profit'); |
|
10 | -$profitTypeEscaped = $db->escapeArray($profitType,false,true,':',false); |
|
9 | +$profitType = array('Trade', 'Money', 'Profit'); |
|
10 | +$profitTypeEscaped = $db->escapeArray($profitType, false, true, ':', false); |
|
11 | 11 | |
12 | 12 | $ourRank = 0; |
13 | 13 | if ($player->hasAlliance()) { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | $db->query('SELECT * FROM player |
29 | 29 | WHERE game_id = ' . $db->escapeNumber($player->getGameID()) . ' |
30 | - AND player_name LIKE ' . $db->escapeString('%'.$player_name.'%') . ' |
|
30 | + AND player_name LIKE ' . $db->escapeString('%' . $player_name . '%') . ' |
|
31 | 31 | AND player_name != ' . $db->escapeString($player_name) . ' |
32 | 32 | ORDER BY player_name LIMIT 5'); |
33 | 33 | $similarPlayers = array(); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $result['NewsHREF'] = SmrSession::getNewHREF($container); |
69 | 69 | |
70 | 70 | if (in_array($player->getAccountID(), Globals::getHiddenPlayers())) { |
71 | - $container= create_container('sector_jump_processing.php'); |
|
71 | + $container = create_container('sector_jump_processing.php'); |
|
72 | 72 | $container['to'] = $curr_player->getSectorID(); |
73 | 73 | $result['JumpHREF'] = SmrSession::getNewHREF($container); |
74 | 74 | } |
@@ -13,5 +13,5 @@ |
||
13 | 13 | $db->query('INSERT INTO anon_bank (game_id, anon_id, owner_id, password, amount) VALUES (' . $db->escapeNumber($player->getGameID()) . ', ' . $db->escapeNumber($new_acc) . ', ' . $db->escapeNumber($player->getAccountID()) . ', ' . $db->escapeString($password) . ', 0)'); |
14 | 14 | |
15 | 15 | $container = create_container('skeleton.php', 'bank_anon.php'); |
16 | -$container['message'] = '<p>Account #'.$new_acc.' has been opened for you.</p>'; |
|
16 | +$container['message'] = '<p>Account #' . $new_acc . ' has been opened for you.</p>'; |
|
17 | 17 | forward($container); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | transfer('LocationID'); |
28 | 28 | $template->assign('LottoClaimHREF', SmrSession::getNewHREF($container)); |
29 | 29 | } |
30 | -$template->assign('WinningTicket',$winningTicket); |
|
30 | +$template->assign('WinningTicket', $winningTicket); |
|
31 | 31 | |
32 | 32 | //get rid of drinks older than 30 mins |
33 | 33 | $db->query('DELETE FROM player_has_drinks WHERE time < ' . $db->escapeNumber(TIME - 1800)); |
@@ -42,5 +42,5 @@ |
||
42 | 42 | } |
43 | 43 | $template->assign('OwnedAnon', $ownedAnon); |
44 | 44 | |
45 | -$container = create_container('skeleton.php','bank_anon_create.php'); |
|
45 | +$container = create_container('skeleton.php', 'bank_anon_create.php'); |
|
46 | 46 | $template->assign('CreateHREF', SmrSession::getNewHREF($container)); |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | if (!isset($var['alliance_id'])) { |
3 | - SmrSession::updateVar('alliance_id',$player->getAllianceID()); |
|
3 | + SmrSession::updateVar('alliance_id', $player->getAllianceID()); |
|
4 | 4 | } |
5 | 5 | $alliance_id = $var['alliance_id']; |
6 | 6 | |
7 | -$alliance = SmrAlliance::getAlliance($alliance_id,$player->getGameID()); |
|
7 | +$alliance = SmrAlliance::getAlliance($alliance_id, $player->getGameID()); |
|
8 | 8 | $template->assign('PageTopic', $alliance->getAllianceName(false, true)); |
9 | 9 | Menu::alliance($alliance_id, $alliance->getLeaderID()); |
10 | 10 | |
11 | -$container=create_container('alliance_stat_processing.php'); |
|
11 | +$container = create_container('alliance_stat_processing.php'); |
|
12 | 12 | $container['alliance_id'] = $alliance_id; |
13 | 13 | |
14 | -$form = create_form($container,'Change'); |
|
14 | +$form = create_form($container, 'Change'); |
|
15 | 15 | |
16 | 16 | $role_id = $player->getAllianceRole($alliance->getAllianceID()); |
17 | 17 |