We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | if ($action == 'Yes') { |
20 | 20 | // get game id |
21 | - $game_id = $var['game_id']; |
|
21 | + $game_id = $var['game_id']; |
|
22 | 22 | |
23 | 23 | if ($save) { |
24 | 24 | $db->query('SELECT * FROM alliance WHERE game_id = '.$db->escapeNumber($game_id)); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | // Form to make planet changes |
31 | 31 | $container = create_container('1.6/universe_create_save_processing.php', |
32 | - '1.6/universe_create_sectors.php', $var); |
|
32 | + '1.6/universe_create_sectors.php', $var); |
|
33 | 33 | $template->assign('CreatePlanetsFormHREF', SmrSession::getNewHREF($container)); |
34 | 34 | |
35 | 35 | // HREF to cancel and return to the previous page |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | // Form to make location changes |
89 | 89 | $container = create_container('1.6/universe_create_save_processing.php', |
90 | - '1.6/universe_create_sectors.php', $var); |
|
90 | + '1.6/universe_create_sectors.php', $var); |
|
91 | 91 | $template->assign('CreateLocationsFormHREF', SmrSession::getNewHREF($container)); |
92 | 92 | |
93 | 93 | // HREF to cancel and return to the previous page |
@@ -3,7 +3,7 @@ |
||
3 | 3 | // Get the dates |
4 | 4 | $start = DateTime::createFromFormat('d/m/Y', $_REQUEST['game_start']); |
5 | 5 | $startTurns = empty($_REQUEST['game_start_turns']) ? $start : |
6 | - DateTime::createFromFormat('d/m/Y', $_REQUEST['game_start_turns']); |
|
6 | + DateTime::createFromFormat('d/m/Y', $_REQUEST['game_start_turns']); |
|
7 | 7 | $end = DateTime::createFromFormat('d/m/Y', $_REQUEST['game_end']); |
8 | 8 | |
9 | 9 | $game = SmrGame::createGame($var['game_id']); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $template->assign('SelectedPortRaceID', $selectedPortRaceID); |
26 | 26 | |
27 | 27 | $sectorLocationIDs = array_pad(array_keys($editSector->getLocations()), |
28 | - UNI_GEN_LOCATION_SLOTS, 0); |
|
28 | + UNI_GEN_LOCATION_SLOTS, 0); |
|
29 | 29 | $template->assign('SectorLocationIDs', $sectorLocationIDs); |
30 | 30 | |
31 | 31 | if ($editSector->hasWarp()) { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // Get the dates |
19 | 19 | $start = DateTime::createFromFormat('d/m/Y', $_REQUEST['game_start']); |
20 | 20 | $startTurns = empty($_REQUEST['game_start_turns']) ? $start : |
21 | - DateTime::createFromFormat('d/m/Y', $_REQUEST['game_start_turns']); |
|
21 | + DateTime::createFromFormat('d/m/Y', $_REQUEST['game_start_turns']); |
|
22 | 22 | $end = DateTime::createFromFormat('d/m/Y', $_REQUEST['game_end']); |
23 | 23 | |
24 | 24 | $game = SmrGame::createGame($newID); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | $db->query('SELECT game_id, game_name FROM game WHERE start_date < ' . $db->escapeNumber(TIME) . ' AND end_date > ' . $db->escapeNumber(TIME) . ' ORDER BY start_date DESC'); |
8 | 8 | while ($db->nextRecord()) { |
9 | 9 | $activeGames[] = array('game_name' => $db->getField('game_name'), |
10 | - 'game_id' => $db->getInt('game_id')); |
|
10 | + 'game_id' => $db->getInt('game_id')); |
|
11 | 11 | } |
12 | 12 | $template->assign('ActiveGames', $activeGames); |
13 | 13 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $db->query('SELECT account_id FROM galactic_post_writer WHERE game_id=' . $db->escapeNumber($var['selected_game_id']) . ' AND position=' . $db->escapeString('editor')); |
27 | 27 | while ($db->nextRecord()) { |
28 | 28 | $editor = SmrPlayer::getPlayer($db->getInt('account_id'), |
29 | - $var['selected_game_id']); |
|
29 | + $var['selected_game_id']); |
|
30 | 30 | $currentEditors[] = $editor->getDisplayName(); |
31 | 31 | } |
32 | 32 | $template->assign('CurrentEditors', $currentEditors); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | // Set the body of the e-mail |
37 | 37 | set_mail_body($mail, $var['newsletter_html'], $var['newsletter_text'], |
38 | - $_REQUEST['salutation']); |
|
38 | + $_REQUEST['salutation']); |
|
39 | 39 | |
40 | 40 | if($_REQUEST['to_email']=='*') { |
41 | 41 | // Send the newsletter to all players. |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | $db->query('SELECT game_id, game_name FROM game WHERE game_type=' . $db->escapeNumber(SmrGame::GAME_TYPE_DRAFT) . ' AND start_date < ' . $db->escapeNumber(TIME) . ' AND end_date > ' . $db->escapeNumber(TIME) . ' ORDER BY start_date DESC'); |
8 | 8 | while ($db->nextRecord()) { |
9 | 9 | $activeGames[] = array('game_name' => $db->getField('game_name'), |
10 | - 'game_id' => $db->getInt('game_id')); |
|
10 | + 'game_id' => $db->getInt('game_id')); |
|
11 | 11 | } |
12 | 12 | $template->assign('ActiveGames', $activeGames); |
13 | 13 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $db->query('SELECT account_id FROM draft_leaders WHERE game_id=' . $db->escapeNumber($var['selected_game_id'])); |
27 | 27 | while ($db->nextRecord()) { |
28 | 28 | $editor = SmrPlayer::getPlayer($db->getInt('account_id'), |
29 | - $var['selected_game_id']); |
|
29 | + $var['selected_game_id']); |
|
30 | 30 | $currentLeaders[] = $editor->getDisplayName(); |
31 | 31 | } |
32 | 32 | $template->assign('CurrentLeaders', $currentLeaders); |