We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$template->assign('PageTopic','Report a Message'); |
|
3 | +$template->assign('PageTopic', 'Report a Message'); |
|
4 | 4 | Menu::messages(); |
5 | 5 | |
6 | -if(!isset($var['notified_time'])) |
|
7 | - SmrSession::updateVar('notified_time',TIME); |
|
6 | +if (!isset($var['notified_time'])) |
|
7 | + SmrSession::updateVar('notified_time', TIME); |
|
8 | 8 | |
9 | 9 | if (empty($var['message_id'])) |
10 | 10 | create_error('Please click the small yellow icon to report a message!'); |
@@ -1,24 +1,24 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | $db2 = new SmrMySqlDatabase(); |
4 | -$db->query('SELECT * FROM galactic_post_paper WHERE paper_id = '.$db->escapeNumber($var['id']).' AND game_id = ' . $db->escapeNumber($player->getGameID())); |
|
4 | +$db->query('SELECT * FROM galactic_post_paper WHERE paper_id = ' . $db->escapeNumber($var['id']) . ' AND game_id = ' . $db->escapeNumber($player->getGameID())); |
|
5 | 5 | $db->nextRecord(); |
6 | 6 | $paper_title = bbifyMessage($db->getField('title')); |
7 | -$db->query('SELECT * FROM galactic_post_paper_content WHERE paper_id = '.$db->escapeNumber($var['id']).' AND game_id = ' . $db->escapeNumber($player->getGameID())); |
|
7 | +$db->query('SELECT * FROM galactic_post_paper_content WHERE paper_id = ' . $db->escapeNumber($var['id']) . ' AND game_id = ' . $db->escapeNumber($player->getGameID())); |
|
8 | 8 | Menu::galactic_post(); |
9 | 9 | |
10 | -$PHP_OUTPUT.=($paper_title.'<br /><br /><ul>'); |
|
10 | +$PHP_OUTPUT .= ($paper_title . '<br /><br /><ul>'); |
|
11 | 11 | while ($db->nextRecord()) { |
12 | 12 | $db2->query('SELECT * FROM galactic_post_article WHERE game_id = ' . $db->escapeNumber($player->getGameID()) . ' AND article_id = ' . $db->escapeNumber($db->getInt('article_id'))); |
13 | 13 | $db2->nextRecord(); |
14 | - $PHP_OUTPUT.='<li>'.bbifyMessage($db2->getField('title')).'<br /><li>'.bbifyMessage($db2->getField('text')).'<br /></li>'; |
|
14 | + $PHP_OUTPUT .= '<li>' . bbifyMessage($db2->getField('title')) . '<br /><li>' . bbifyMessage($db2->getField('text')) . '<br /></li>'; |
|
15 | 15 | $container = create_container('galactic_post_paper_edit_processing.php'); |
16 | 16 | $container['article_id'] = $db->getField('article_id'); |
17 | 17 | transfer('id'); |
18 | - $PHP_OUTPUT.=create_link($container, 'Remove this article from '.$paper_title.'</li>'); |
|
19 | - $PHP_OUTPUT.=('<br /><br />'); |
|
18 | + $PHP_OUTPUT .= create_link($container, 'Remove this article from ' . $paper_title . '</li>'); |
|
19 | + $PHP_OUTPUT .= ('<br /><br />'); |
|
20 | 20 | |
21 | 21 | } |
22 | -$PHP_OUTPUT.=('</ul>'); |
|
22 | +$PHP_OUTPUT .= ('</ul>'); |
|
23 | 23 | if (!$db->getNumRows()) |
24 | - $PHP_OUTPUT.=('This paper has no articles'); |
|
24 | + $PHP_OUTPUT .= ('This paper has no articles'); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | ////////////////////////////////////////////////// |
9 | 9 | |
10 | 10 | if (!in_array($var['loc_id'], $SECTOR[$THIS_PLAYER->getSectorID()]['Locations'])) { |
11 | - $error .= get_status_message('red','Error','That shop does not exist in this sector!'); |
|
11 | + $error .= get_status_message('red', 'Error', 'That shop does not exist in this sector!'); |
|
12 | 12 | require($GAME_FILES . '/error.php'); |
13 | 13 | return; |
14 | 14 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | foreach ($GADGETS as $gad_name => $gad_arr) $rev_gad[$gad_arr['ID']] = $gad_name; |
19 | 19 | |
20 | 20 | print_title('Browsing Gadgets'); |
21 | -$PHP_OUTPUT.= '<br />'; |
|
21 | +$PHP_OUTPUT .= '<br />'; |
|
22 | 22 | print_error($error); |
23 | 23 | |
24 | 24 | $this_shop_sells = $SHOP_SELLS_GADGET[$var['loc_id']]; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | if (is_array($SHOP_SELLS_GADGET_SPECIAL[$var['loc_id']])) { |
27 | 27 | foreach ($SHOP_SELLS_GADGET_SPECIAL[$var['loc_id']] as $gad_id => $require_array) { |
28 | 28 | |
29 | - if (checkHardwareRequirements($require_array,$THIS_SECTOR,$THIS_PLAYER,$THIS_SHIP)) |
|
29 | + if (checkHardwareRequirements($require_array, $THIS_SECTOR, $THIS_PLAYER, $THIS_SHIP)) |
|
30 | 30 | $this_shop_sells[] = $gad_id; |
31 | 31 | } |
32 | 32 | } |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | else $special_stock = FALSE; |
35 | 35 | |
36 | 36 | if (sizeof($this_shop_sells) > 0) { |
37 | - if ($special_stock) $PHP_OUTPUT.= 'It looks like you have access to some of our special stock.<br />'; |
|
38 | - $PHP_OUTPUT.= '<table class="standard"><tr><th>Name</th><th>Cost</th><th>Action</th></tr>'; |
|
37 | + if ($special_stock) $PHP_OUTPUT .= 'It looks like you have access to some of our special stock.<br />'; |
|
38 | + $PHP_OUTPUT .= '<table class="standard"><tr><th>Name</th><th>Cost</th><th>Action</th></tr>'; |
|
39 | 39 | foreach ($this_shop_sells as $gad_id) { |
40 | - $PHP_OUTPUT.= '<tr><td>'.$rev_gad[$gad_id].'</td><td>'.number_format($GADGETS[$rev_gad[$gad_id]]['Cost']).'</td><td>'; |
|
41 | - if ($THIS_PLAYER->getGadget($gad_id)!==false) $PHP_OUTPUT.= 'Already Owned'; |
|
40 | + $PHP_OUTPUT .= '<tr><td>' . $rev_gad[$gad_id] . '</td><td>' . number_format($GADGETS[$rev_gad[$gad_id]]['Cost']) . '</td><td>'; |
|
41 | + if ($THIS_PLAYER->getGadget($gad_id) !== false) $PHP_OUTPUT .= 'Already Owned'; |
|
42 | 42 | else { |
43 | 43 | $link = array(); |
44 | 44 | $link['body'] = 'shop_gadget.php'; |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | $link['gad_id'] = $gad_id; |
50 | 50 | create_button($link, $id); |
51 | 51 | } |
52 | - $PHP_OUTPUT.= '</td></tr>'; |
|
52 | + $PHP_OUTPUT .= '</td></tr>'; |
|
53 | 53 | } |
54 | - $PHP_OUTPUT.= '</table>'; |
|
54 | + $PHP_OUTPUT .= '</table>'; |
|
55 | 55 | } |
56 | 56 | else { |
57 | - $PHP_OUTPUT.= 'We\'ve got nothing for you here! Get outta here!<br />'; |
|
57 | + $PHP_OUTPUT .= 'We\'ve got nothing for you here! Get outta here!<br />'; |
|
58 | 58 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | // If sender is mail banned or blacklisted by receiver, omit the custom message |
13 | 13 | $db->query('SELECT 1 FROM message_blacklist |
14 | - WHERE account_id='.$db->escapeNumber($receiverID).' |
|
14 | + WHERE account_id='.$db->escapeNumber($receiverID) . ' |
|
15 | 15 | AND blacklisted_id='.$db->escapeNumber($player->getAccountID())); |
16 | 16 | if ($db->nextRecord() || $account->isMailBanned()) { |
17 | 17 | $addMessage = ''; |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | |
20 | 20 | // Construct the mail to send to the receiver |
21 | 21 | $msg = 'You have been invited to join an alliance! |
22 | -This invitation will remain open for '.$expireDays.' '.pluralise('day', $expireDays).' or until you join another alliance. |
|
22 | +This invitation will remain open for '.$expireDays . ' ' . pluralise('day', $expireDays) . ' or until you join another alliance. |
|
23 | 23 | If you are currently in an alliance, you will leave it if you accept this invitation. |
24 | 24 | |
25 | -[join_alliance='.$player->getAllianceID().'] |
|
25 | +[join_alliance='.$player->getAllianceID() . '] |
|
26 | 26 | '; |
27 | 27 | if (!empty($addMessage)) { |
28 | 28 | $msg .= '<br />' . $addMessage; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $player->sendMessage($receiverID, MSG_PLAYER, $msg, false, true, $expires, true); |
33 | 33 | |
34 | 34 | // Record invitation in the database |
35 | -$db->query('INSERT INTO alliance_invites_player (game_id, account_id, alliance_id, invited_by_id, expires) VALUES('.$db->escapeNumber($player->getGameID()).', '.$db->escapeNumber($receiverID).', '.$db->escapeNumber($player->getAllianceID()).', '.$db->escapeNumber($player->getAccountID()).', '.$db->escapeNumber($expires).')'); |
|
35 | +$db->query('INSERT INTO alliance_invites_player (game_id, account_id, alliance_id, invited_by_id, expires) VALUES(' . $db->escapeNumber($player->getGameID()) . ', ' . $db->escapeNumber($receiverID) . ', ' . $db->escapeNumber($player->getAllianceID()) . ', ' . $db->escapeNumber($player->getAccountID()) . ', ' . $db->escapeNumber($expires) . ')'); |
|
36 | 36 | |
37 | 37 | $container = create_container('skeleton.php', 'alliance_invite_player.php'); |
38 | 38 | forward($container); |
@@ -6,12 +6,12 @@ discard block |
||
6 | 6 | } |
7 | 7 | $game_name = $var['game_name']; |
8 | 8 | $game_id = $var['view_game_id']; |
9 | -$template->assign('PageTopic','Old SMR Game : '.$game_name); |
|
9 | +$template->assign('PageTopic', 'Old SMR Game : ' . $game_name); |
|
10 | 10 | Menu::history_games(0); |
11 | 11 | |
12 | 12 | $db = new $var['HistoryDatabase'](); |
13 | 13 | $db->query('SELECT start_date, type, end_date, game_name, speed, game_id ' . |
14 | - 'FROM game WHERE game_id = '.$db->escapeNumber($game_id)); |
|
14 | + 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
15 | 15 | $db->nextRecord(); |
16 | 16 | $template->assign('GameName', $game_name); |
17 | 17 | $template->assign('Start', date(DATE_DATE_SHORT, $db->getField('start_date'))); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $template->assign('Type', $db->getField('type')); |
20 | 20 | $template->assign('Speed', $db->getField('speed')); |
21 | 21 | |
22 | -$db->query('SELECT count(*), max(experience), max(alignment), min(alignment), max(kills) FROM player WHERE game_id = '.$db->escapeNumber($game_id)); |
|
22 | +$db->query('SELECT count(*), max(experience), max(alignment), min(alignment), max(kills) FROM player WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
23 | 23 | if ($db->nextRecord()) { |
24 | 24 | $template->assign('NumPlayers', $db->getInt('count(*)')); |
25 | 25 | $template->assign('MaxExp', $db->getInt('max(experience)')); |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | $template->assign('MinAlign', $db->getInt('min(alignment)')); |
28 | 28 | $template->assign('MaxKills', $db->getInt('max(kills)')); |
29 | 29 | } |
30 | -$db->query('SELECT count(*) FROM alliance WHERE game_id = '.$db->escapeNumber($game_id)); |
|
30 | +$db->query('SELECT count(*) FROM alliance WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
31 | 31 | $db->nextRecord(); |
32 | 32 | $template->assign('NumAlliances', $db->getInt('count(*)')); |
33 | 33 | |
34 | 34 | $playerExp = []; |
35 | -$db->query('SELECT * FROM player WHERE game_id = '.$db->escapeNumber($game_id).' ORDER BY experience DESC LIMIT 10'); |
|
35 | +$db->query('SELECT * FROM player WHERE game_id = ' . $db->escapeNumber($game_id) . ' ORDER BY experience DESC LIMIT 10'); |
|
36 | 36 | while ($db->nextRecord()) { |
37 | 37 | $playerExp[] = [ |
38 | 38 | 'exp' => $db->getField('experience'), |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $template->assign('PlayerExp', $playerExp); |
43 | 43 | |
44 | 44 | $playerKills = []; |
45 | -$db->query('SELECT * FROM player WHERE game_id = '.$db->escapeNumber($game_id).' ORDER BY kills DESC LIMIT 10'); |
|
45 | +$db->query('SELECT * FROM player WHERE game_id = ' . $db->escapeNumber($game_id) . ' ORDER BY kills DESC LIMIT 10'); |
|
46 | 46 | while ($db->nextRecord()) { |
47 | 47 | $playerKills[] = [ |
48 | 48 | 'kills' => $db->getField('kills'), |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $allianceExp = []; |
60 | 60 | $db->query('SELECT SUM(experience) as exp, alliance_name, alliance_id |
61 | 61 | FROM player JOIN alliance USING (game_id, alliance_id) |
62 | - WHERE game_id = '.$db->escapeNumber($game_id).' GROUP BY alliance_id ORDER BY exp DESC LIMIT 10'); |
|
62 | + WHERE game_id = '.$db->escapeNumber($game_id) . ' GROUP BY alliance_id ORDER BY exp DESC LIMIT 10'); |
|
63 | 63 | while ($db->nextRecord()) { |
64 | 64 | $alliance = stripslashes($db->getField('alliance_name')); |
65 | 65 | $id = $db->getField('alliance_id'); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $template->assign('AllianceExp', $allianceExp); |
73 | 73 | |
74 | 74 | $allianceKills = []; |
75 | -$db->query('SELECT kills, alliance_name, alliance_id FROM alliance WHERE game_id = '.$db->escapeNumber($game_id).' ORDER BY kills DESC LIMIT 10'); |
|
75 | +$db->query('SELECT kills, alliance_name, alliance_id FROM alliance WHERE game_id = ' . $db->escapeNumber($game_id) . ' ORDER BY kills DESC LIMIT 10'); |
|
76 | 76 | while ($db->nextRecord()) { |
77 | 77 | $alliance = stripslashes($db->getField('alliance_name')); |
78 | 78 | $id = $db->getField('alliance_id'); |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$chessGame =& ChessGame::getChessGame($var['ChessGameID']); |
|
4 | -$template->assign('ChessGame',$chessGame); |
|
5 | -if(is_numeric($_REQUEST['x']) && is_numeric($_REQUEST['y']) && is_numeric($_REQUEST['toX']) && is_numeric($_REQUEST['toY'])) { |
|
3 | +$chessGame = & ChessGame::getChessGame($var['ChessGameID']); |
|
4 | +$template->assign('ChessGame', $chessGame); |
|
5 | +if (is_numeric($_REQUEST['x']) && is_numeric($_REQUEST['y']) && is_numeric($_REQUEST['toX']) && is_numeric($_REQUEST['toY'])) { |
|
6 | 6 | $x = $_REQUEST['x']; |
7 | 7 | $y = $_REQUEST['y']; |
8 | 8 | $toX = $_REQUEST['toX']; |
9 | 9 | $toY = $_REQUEST['toY']; |
10 | - if(!$chessGame->hasEnded()) { |
|
11 | - if($chessGame->isCurrentTurn($account->getAccountID())) { |
|
10 | + if (!$chessGame->hasEnded()) { |
|
11 | + if ($chessGame->isCurrentTurn($account->getAccountID())) { |
|
12 | 12 | $board = $chessGame->getBoard(); |
13 | - if($board[$y][$x] != null) { |
|
14 | - switch($chessGame->tryMove($x, $y, $toX, $toY, $account->getAccountID(), ChessPiece::QUEEN)) { |
|
13 | + if ($board[$y][$x] != null) { |
|
14 | + switch ($chessGame->tryMove($x, $y, $toX, $toY, $account->getAccountID(), ChessPiece::QUEEN)) { |
|
15 | 15 | case 0: |
16 | 16 | //Success |
17 | 17 | break; |
@@ -1,60 +1,60 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$template->assign('PageTopic','Galactic Post'); |
|
3 | +$template->assign('PageTopic', 'Galactic Post'); |
|
4 | 4 | if ($player->isGPEditor()) { |
5 | 5 | $db2 = new SmrMySqlDatabase(); |
6 | 6 | Menu::galactic_post(); |
7 | 7 | |
8 | - $PHP_OUTPUT.=('Welcome '.$player->getPlayerName().', your position is <i>Editor</i><br /><br />'); |
|
9 | - $PHP_OUTPUT.=('<b>EDITOR OPTIONS<br /></b>'); |
|
10 | - $PHP_OUTPUT.=create_link(create_container('skeleton.php', 'galactic_post_view_applications.php'), 'View the applications'); |
|
11 | - $PHP_OUTPUT.=('<br />'); |
|
12 | - $PHP_OUTPUT.=create_link(create_container('skeleton.php', 'galactic_post_view_article.php'), 'View the articles'); |
|
13 | - $PHP_OUTPUT.=('<br />'); |
|
14 | - $PHP_OUTPUT.=create_link(create_container('skeleton.php', 'galactic_post_make_paper.php'), 'Make a paper'); |
|
15 | - $PHP_OUTPUT.=('<br />'); |
|
16 | - $PHP_OUTPUT.=create_link(create_container('skeleton.php', 'galactic_post_view_members.php'), 'View Members'); |
|
17 | - $PHP_OUTPUT.=('<br /><br />'); |
|
8 | + $PHP_OUTPUT .= ('Welcome ' . $player->getPlayerName() . ', your position is <i>Editor</i><br /><br />'); |
|
9 | + $PHP_OUTPUT .= ('<b>EDITOR OPTIONS<br /></b>'); |
|
10 | + $PHP_OUTPUT .= create_link(create_container('skeleton.php', 'galactic_post_view_applications.php'), 'View the applications'); |
|
11 | + $PHP_OUTPUT .= ('<br />'); |
|
12 | + $PHP_OUTPUT .= create_link(create_container('skeleton.php', 'galactic_post_view_article.php'), 'View the articles'); |
|
13 | + $PHP_OUTPUT .= ('<br />'); |
|
14 | + $PHP_OUTPUT .= create_link(create_container('skeleton.php', 'galactic_post_make_paper.php'), 'Make a paper'); |
|
15 | + $PHP_OUTPUT .= ('<br />'); |
|
16 | + $PHP_OUTPUT .= create_link(create_container('skeleton.php', 'galactic_post_view_members.php'), 'View Members'); |
|
17 | + $PHP_OUTPUT .= ('<br /><br />'); |
|
18 | 18 | $db->query('SELECT * FROM galactic_post_paper WHERE game_id = ' . $db->escapeNumber($player->getGameID())); |
19 | 19 | if ($db->getNumRows()) { |
20 | - $PHP_OUTPUT.=('The following papers are already made (papers must have 3-8 articles to go to the press):<br /><br />'); |
|
20 | + $PHP_OUTPUT .= ('The following papers are already made (papers must have 3-8 articles to go to the press):<br /><br />'); |
|
21 | 21 | } |
22 | - while($db->nextRecord()) { |
|
22 | + while ($db->nextRecord()) { |
|
23 | 23 | $paper_name = $db->getField('title'); |
24 | 24 | $paper_id = $db->getField('paper_id'); |
25 | 25 | $published = $db->getInt('online_since'); |
26 | 26 | |
27 | - $PHP_OUTPUT.=('<span class="red">***</span><i>'.$paper_name.'</i>'); |
|
27 | + $PHP_OUTPUT .= ('<span class="red">***</span><i>' . $paper_name . '</i>'); |
|
28 | 28 | $db2->query('SELECT * FROM galactic_post_paper_content WHERE paper_id = ' . $db2->escapeNumber($paper_id) . ' AND game_id = ' . $db->escapeNumber($player->getGameID())); |
29 | 29 | $hasEnoughArticles = $db2->getNumRows() > 2 && $db2->getNumRows() < 9; |
30 | 30 | |
31 | 31 | // Use red/green to show if a paper has enough articles |
32 | - $PHP_OUTPUT.=(' which contains <span class="' . ($hasEnoughArticles ? "green" : "red") . '"> ' . $db2->getNumRows() . ' </span>articles. '); |
|
32 | + $PHP_OUTPUT .= (' which contains <span class="' . ($hasEnoughArticles ? "green" : "red") . '"> ' . $db2->getNumRows() . ' </span>articles. '); |
|
33 | 33 | if (!empty($published)) { |
34 | - $PHP_OUTPUT.=('<span class="bold green">PUBLISHED!</span>'); |
|
34 | + $PHP_OUTPUT .= ('<span class="bold green">PUBLISHED!</span>'); |
|
35 | 35 | } else if ($hasEnoughArticles) { |
36 | 36 | $container = array(); |
37 | 37 | $container['url'] = 'galactic_post_make_current.php'; |
38 | 38 | $container['id'] = $paper_id; |
39 | - $PHP_OUTPUT.=create_link($container, '<b>HIT THE PRESS!</b>'); |
|
39 | + $PHP_OUTPUT .= create_link($container, '<b>HIT THE PRESS!</b>'); |
|
40 | 40 | } |
41 | 41 | |
42 | - $PHP_OUTPUT.=('<br />'); |
|
42 | + $PHP_OUTPUT .= ('<br />'); |
|
43 | 43 | $container = array(); |
44 | 44 | $container['url'] = 'skeleton.php'; |
45 | 45 | $container['body'] = 'galactic_post_delete_confirm.php'; |
46 | 46 | $container['paper'] = 'yes'; |
47 | 47 | $container['id'] = $paper_id; |
48 | - $PHP_OUTPUT.=create_link($container, 'Delete '.$paper_name); |
|
49 | - $PHP_OUTPUT.=('<br />'); |
|
48 | + $PHP_OUTPUT .= create_link($container, 'Delete ' . $paper_name); |
|
49 | + $PHP_OUTPUT .= ('<br />'); |
|
50 | 50 | $container = array(); |
51 | 51 | $container['url'] = 'skeleton.php'; |
52 | 52 | $container['body'] = 'galactic_post_paper_edit.php'; |
53 | 53 | $container['id'] = $paper_id; |
54 | - $PHP_OUTPUT.=create_link($container, 'Edit '.$paper_name); |
|
55 | - $PHP_OUTPUT.=('<br /><br />'); |
|
54 | + $PHP_OUTPUT .= create_link($container, 'Edit ' . $paper_name); |
|
55 | + $PHP_OUTPUT .= ('<br /><br />'); |
|
56 | 56 | } |
57 | - $PHP_OUTPUT.=('<br />'); |
|
58 | - $PHP_OUTPUT.=('<span class="blue">If you wish to edit an article you must first view it.</span>'); |
|
59 | - $PHP_OUTPUT.=('<br /><br />'); |
|
57 | + $PHP_OUTPUT .= ('<br />'); |
|
58 | + $PHP_OUTPUT .= ('<span class="blue">If you wish to edit an article you must first view it.</span>'); |
|
59 | + $PHP_OUTPUT .= ('<br /><br />'); |
|
60 | 60 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | if ($player->getTurns() == 0) |
24 | 24 | create_error('You don\'t have enough turns to loot.'); |
25 | 25 | |
26 | -$account->log(LOG_TYPE_TRADING, 'Player Loots '.$amount.' '.$good_name, $player->getSectorID()); |
|
26 | +$account->log(LOG_TYPE_TRADING, 'Player Loots ' . $amount . ' ' . $good_name, $player->getSectorID()); |
|
27 | 27 | $container = create_container('skeleton.php', 'port_loot.php'); |
28 | -$ship->increaseCargo($good_id,$amount); |
|
28 | +$ship->increaseCargo($good_id, $amount); |
|
29 | 29 | $ship->updateCargo(); |
30 | -$port->decreaseGoodAmount($good_id,$amount); |
|
30 | +$port->decreaseGoodAmount($good_id, $amount); |
|
31 | 31 | $port->update(); |
32 | 32 | forward($container); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$template->assign('PageTopic','Donations'); |
|
3 | +$template->assign('PageTopic', 'Donations'); |
|
4 | 4 | $db->query('SELECT SUM(amount) as total_donation FROM account_donated WHERE time > ' . $db->escapeNumber(TIME) . ' - (86400 * 90)'); |
5 | 5 | if ($db->nextRecord()) |
6 | 6 | $template->assign('TotalDonation', $db->getField('total_donation')); |