fix: replace all instances of <?

This commit is contained in:
Emmanuel BENOîT 2024-12-31 10:20:23 +01:00
parent 559668b6ee
commit c5e2b30a11
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
35 changed files with 100 additions and 100 deletions

View file

@ -31,7 +31,7 @@ if (!is_array($allAdmins)) {
foreach ($allAdmins as $id => $name) { foreach ($allAdmins as $id => $name) {
?> ?>
<input type="checkbox" name="sa[]" value="<?=$id?>" id="sa<?=$id?>" <?=(is_array($_SESSION['lw_new_game']['silent']) && in_array($id, $_SESSION['lw_new_game']['silent'])) ? "checked='checked'" : ""?> /> <label for="sa<?=$id?>"><?=htmlentities($name)?></label><br/> <input type="checkbox" name="sa[]" value="<?=$id?>" id="sa<?=$id?>" <?=(is_array($_SESSION['lw_new_game']['silent']) && in_array($id, $_SESSION['lw_new_game']['silent'])) ? "checked='checked'" : ""?> /> <label for="sa<?=$id?>"><?=htmlentities($name)?></label><br/>
<? <?php
} }
?> ?>

View file

@ -47,7 +47,7 @@ function __start($title) {
?> ?>
<h3><?=htmlentities($title)?></h3> <h3><?=htmlentities($title)?></h3>
<table border="1" width="80%" style="margin: 5px 30px"> <table border="1" width="80%" style="margin: 5px 30px">
<? <?php
} }
function __line($title, $contents) { function __line($title, $contents) {
@ -56,7 +56,7 @@ function __line($title, $contents) {
<th align="right" width="50%"><?=htmlentities($title)?>: </th> <th align="right" width="50%"><?=htmlentities($title)?>: </th>
<td><?=htmlentities($contents)?></td> <td><?=htmlentities($contents)?></td>
</tr> </tr>
<? <?php
} }
function __end() { function __end() {

View file

@ -7,7 +7,7 @@
<p> <p>
The Death of Rats is LegacyWorlds' experimental multi detection tool.<br/> The Death of Rats is LegacyWorlds' experimental multi detection tool.<br/>
Select page: Select page:
<? <?php
set_magic_quotes_runtime(false); set_magic_quotes_runtime(false);
@ -117,7 +117,7 @@ function showStatus() {
<b>Execution log</b>: the latest 200 runs of the Death of Rats. <b>Execution log</b>: the latest 200 runs of the Death of Rats.
</li> </li>
</ul> </ul>
<? <?php
} }
function showExecLog() { function showExecLog() {
@ -141,7 +141,7 @@ function showExecLog() {
<th>Changes</th> <th>Changes</th>
<th>Events</th> <th>Events</th>
</tr> </tr>
<? <?php
foreach ($entries as $entry) { foreach ($entries as $entry) {
?> ?>
<tr> <tr>
@ -149,11 +149,11 @@ function showExecLog() {
<td align="center"><?=$entry['events'] ? "<b>" : ""?><?=$entry['entries']?><?=$entry['events'] ? "</b>" : ""?></td> <td align="center"><?=$entry['events'] ? "<b>" : ""?><?=$entry['entries']?><?=$entry['events'] ? "</b>" : ""?></td>
<td align="center"><?=$entry['events'] ? "<b>" : ""?><?=$entry['events']?><?=$entry['events'] ? "</b>" : ""?></td> <td align="center"><?=$entry['events'] ? "<b>" : ""?><?=$entry['events']?><?=$entry['events'] ? "</b>" : ""?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
function showSingleLog() { function showSingleLog() {
@ -175,7 +175,7 @@ function showSingleLog() {
<th>Account</th> <th>Account</th>
<th align="left">Message</th> <th align="left">Message</th>
</tr> </tr>
<? <?php
$messages = array( $messages = array(
"ASSHOLE" => "Tried to log on using a banned account", "ASSHOLE" => "Tried to log on using a banned account",
@ -191,11 +191,11 @@ function showSingleLog() {
<td align="center"><?=htmlentities($entry['name'])?></td> <td align="center"><?=htmlentities($entry['name'])?></td>
<td><?=$messages[$entry['message']]?></td> <td><?=$messages[$entry['message']]?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
function showSinglePoints() { function showSinglePoints() {
@ -216,18 +216,18 @@ function showSinglePoints() {
<th>Account</th> <th>Account</th>
<th>Points</th> <th>Points</th>
</tr> </tr>
<? <?php
foreach ($entries as $entry) { foreach ($entries as $entry) {
?> ?>
<tr> <tr>
<td align="center"><?=htmlentities($entry['name'])?></td> <td align="center"><?=htmlentities($entry['name'])?></td>
<td align="center"><?=$entry['points']?></td> <td align="center"><?=$entry['points']?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
function showInGameChecks() { function showInGameChecks() {
@ -268,7 +268,7 @@ function showInGameChecks() {
<th align="left">Message</th> <th align="left">Message</th>
<th>Count</th> <th>Count</th>
</tr> </tr>
<? <?php
$messages = array( $messages = array(
"CHECK" => "Verifying accounts", "CHECK" => "Verifying accounts",
@ -292,11 +292,11 @@ function showInGameChecks() {
<td><?=$messages[$message]?></td> <td><?=$messages[$message]?></td>
<td align="center"><?=$count?></td> <td align="center"><?=$count?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
@ -321,7 +321,7 @@ function showMultiLog() {
<th>Account 2</th> <th>Account 2</th>
<th align="left">Message</th> <th align="left">Message</th>
</tr> </tr>
<? <?php
$messages = array( $messages = array(
"SIMPLE" => "Simple multiing / open pass sharing detected", "SIMPLE" => "Simple multiing / open pass sharing detected",
@ -348,11 +348,11 @@ function showMultiLog() {
<td align="center"><?=htmlentities($entry['name2'])?></td> <td align="center"><?=htmlentities($entry['name2'])?></td>
<td><?=$messages[$entry['message']]?></td> <td><?=$messages[$entry['message']]?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
function showFinalPoints() { function showFinalPoints() {
@ -375,7 +375,7 @@ function showFinalPoints() {
<th>Account 2</th> <th>Account 2</th>
<th>Points</th> <th>Points</th>
</tr> </tr>
<? <?php
foreach ($entries as $entry) { foreach ($entries as $entry) {
?> ?>
<tr> <tr>
@ -383,11 +383,11 @@ function showFinalPoints() {
<td align="center"><?=htmlentities($entry['name2'])?></td> <td align="center"><?=htmlentities($entry['name2'])?></td>
<td><?=$entry['points']?></td> <td><?=$entry['points']?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
@ -412,7 +412,7 @@ function showMultiPoints() {
<th>Account 2</th> <th>Account 2</th>
<th>Points</th> <th>Points</th>
</tr> </tr>
<? <?php
foreach ($entries as $entry) { foreach ($entries as $entry) {
$id = explode(',', $entry['id']); $id = explode(',', $entry['id']);
sort($id); sort($id);
@ -427,11 +427,11 @@ function showMultiPoints() {
<td align="center"><?=htmlentities($entry['name2'])?></td> <td align="center"><?=htmlentities($entry['name2'])?></td>
<td><?=$entry['points']?></td> <td><?=$entry['points']?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
@ -468,7 +468,7 @@ function showActionLog() {
<th>Account 2</th> <th>Account 2</th>
<th align="left">Message</th> <th align="left">Message</th>
</tr> </tr>
<? <?php
$messages = array( $messages = array(
"WARN" => "Warned player", "WARN" => "Warned player",
"PUNISH" => "Slaughtered player with a rat-sized scythe" "PUNISH" => "Slaughtered player with a rat-sized scythe"
@ -482,11 +482,11 @@ function showActionLog() {
<td align="center"><?=htmlentities($entry['name2'])?></td> <td align="center"><?=htmlentities($entry['name2'])?></td>
<td><?=$messages[$entry['atype']]?></td> <td><?=$messages[$entry['atype']]?></td>
</tr> </tr>
<? <?php
} }
?> ?>
</table> </table>
<? <?php
} }
?> ?>

View file

@ -71,7 +71,7 @@ if (is_null($config['maintenance'])) {
(current: <?=gmstrftime("%H:%M:%S on %m/%d/%Y", time())?>). (current: <?=gmstrftime("%H:%M:%S on %m/%d/%Y", time())?>).
</p> </p>
<p><a href="?disable=1">Disable maintenance mode</a></p> <p><a href="?disable=1">Disable maintenance mode</a></p>
<? <?php
} }
?> ?>

View file

@ -100,7 +100,7 @@ function listMaps() {
?> ?>
</table> </table>
<? <?php
} }
?> ?>
<p> <p>
@ -136,7 +136,7 @@ var initMap = {
}; };
//--></script> //--></script>
<script language="JavaScript" src="map_edit.js"></script> <script language="JavaScript" src="map_edit.js"></script>
<? <?php
} }
@ -154,7 +154,7 @@ function confirmDelete() {
<input type="submit" name="ok" value="Confirm" /> <input type="submit" name="ok" value="Confirm" />
<input type="submit" name="cancel" value="Cancel" /> <input type="submit" name="cancel" value="Cancel" />
</form> </form>
<? <?php
} }

View file

@ -1,4 +1,4 @@
<? <?php
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// LegacyWorlds Beta 5 // LegacyWorlds Beta 5

View file

@ -1,4 +1,4 @@
<? <?php
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// LegacyWorlds Beta 5 // LegacyWorlds Beta 5

View file

@ -1,4 +1,4 @@
<? <?php
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// LegacyWorlds Beta 5 // LegacyWorlds Beta 5

View file

@ -1,4 +1,4 @@
<? <?php
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// LegacyWorlds Beta 5 // LegacyWorlds Beta 5

View file

@ -1,4 +1,4 @@
<? <?php
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// LegacyWorlds Beta 5 // LegacyWorlds Beta 5

View file

@ -45,7 +45,7 @@ class msgformat_detect {
One of our fleets in Hyperspace stand-by around planet <b><?=utf8entities($this->data['p_name'])?></b> One of our fleets in Hyperspace stand-by around planet <b><?=utf8entities($this->data['p_name'])?></b>
has been detected by the planet's hyperspace beacon.<br/> has been detected by the planet's hyperspace beacon.<br/>
<br/> <br/>
<? <?php
switch ($this->data['i_level']) : switch ($this->data['i_level']) :
case 0: case 0:
echo "The beacon didn't manage to gather any information regarding the fleet, tho."; echo "The beacon didn't manage to gather any information regarding the fleet, tho.";
@ -70,7 +70,7 @@ has been detected by the planet's hyperspace beacon.<br/>
Our hyperspace beacon around planet <b><?=utf8entities($this->data['p_name'])?></b> has detected a fleet Our hyperspace beacon around planet <b><?=utf8entities($this->data['p_name'])?></b> has detected a fleet
in Hyperspace.<br/> in Hyperspace.<br/>
<br/> <br/>
<? <?php
switch ($this->data['i_level']) : switch ($this->data['i_level']) :
case 0: case 0:
echo "However, no additional information could be gathered due to heavy jamming."; echo "However, no additional information could be gathered due to heavy jamming.";

View file

@ -42,7 +42,7 @@ We are confident that you are now strong enough to survive, and wish you the bes
<br/> <br/>
Kind regards,<br/> Kind regards,<br/>
Peacekeeper Commander Dapkor Peacekeeper Commander Dapkor
<? <?php
break; break;
case 'BRK': case 'BRK':
?> ?>
@ -52,7 +52,7 @@ should you need our help again.<br/>
<br/> <br/>
Kind regards,<br/> Kind regards,<br/>
Peacekeeper Commander Multair Peacekeeper Commander Multair
<? <?php
break; break;
case 'ACT': case 'ACT':
?> ?>
@ -62,7 +62,7 @@ should you need our services again.<br/>
<br/> <br/>
Kind regards,<br/> Kind regards,<br/>
Peacekeeper Commander Hestaks Peacekeeper Commander Hestaks
<? <?php
break; break;
} }
$str = ob_get_contents(); $str = ob_get_contents();

View file

@ -54,7 +54,7 @@ This warning applies to the following planets:</p>
<?=$planets?> <?=$planets?>
<p>Best regards,<br/> <p>Best regards,<br/>
Peacekeeper Commander Dapkor Peacekeeper Commander Dapkor
<? <?php
break; break;
case 'D': case 'D':
?> ?>
@ -63,7 +63,7 @@ following planets:</p>
<?=$planets?> <?=$planets?>
<p>Regards,<br/> <p>Regards,<br/>
Peacekeeper Commander Multair Peacekeeper Commander Multair
<? <?php
break; break;
case 'E': case 'E':
?> ?>
@ -75,7 +75,7 @@ In addition, your fleets will be destroyed on the following planets:
<p>Sanctions against you will end at <b><?=gmstrftime("%H:%M</b> on <b>%d/%m/%Y", $this->data['delay'])?></b>. <p>Sanctions against you will end at <b><?=gmstrftime("%H:%M</b> on <b>%d/%m/%Y", $this->data['delay'])?></b>.
<br/> <br/>
Peacekeeper Commander Hestaks Peacekeeper Commander Hestaks
<? <?php
break; break;
} }
$str = ob_get_contents(); $str = ob_get_contents();

View file

@ -1,4 +1,4 @@
<? <?php
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// LegacyWorlds Beta 5 // LegacyWorlds Beta 5

View file

@ -24,7 +24,7 @@ if ($data['notfound']) {
Account email address: Account email address:
<input type="text" name="ma" value="<?=utf8entities($data['email'])?>" size="32" maxlength="128" /> <input type="text" name="ma" value="<?=utf8entities($data['email'])?>" size="32" maxlength="128" />
<input type="submit" name="mma" value="Change mail address" /> <input type="submit" name="mma" value="Change mail address" />
<? <?php
switch ($data['mailerr']) : switch ($data['mailerr']) :
case -1: print "<br/><span style='color:green; font-weight: bold'>Address changed</span>"; break; case -1: print "<br/><span style='color:green; font-weight: bold'>Address changed</span>"; break;
case 1: print "<br/><span style='color:red; font-weight: bold'>Invalid address</span>"; break; case 1: print "<br/><span style='color:red; font-weight: bold'>Invalid address</span>"; break;
@ -38,7 +38,7 @@ endswitch;
Account password: Account password:
<input type="text" name="pw" value="<?=utf8entities($data['password'])?>" size="32" maxlength="64" /> <input type="text" name="pw" value="<?=utf8entities($data['password'])?>" size="32" maxlength="64" />
<input type="submit" name="mpw" value="Change password" /> <input type="submit" name="mpw" value="Change password" />
<? <?php
switch ($data['passerr']) : switch ($data['passerr']) :
case -1: print "<br/><span style='color:green; font-weight: bold'>Password updated</span>"; break; case -1: print "<br/><span style='color:green; font-weight: bold'>Password updated</span>"; break;
case 1: print "<br/><span style='color:red; font-weight: bold'>Password too short (min 4 characters)</span>"; break; case 1: print "<br/><span style='color:red; font-weight: bold'>Password too short (min 4 characters)</span>"; break;

View file

@ -10,7 +10,7 @@
<a name='box'></a> <a name='box'></a>
<table cellspacing="0" cellpadding="0" style="width: 75%"> <table cellspacing="0" cellpadding="0" style="width: 75%">
<tr><td colspan='3'>&nbsp;</td></tr> <tr><td colspan='3'>&nbsp;</td></tr>
<? <?php
$errs = array('Subject is too short.', 'Subject is too long.', 'Contents are too short.', 'Contents are too long.'); $errs = array('Subject is too short.', 'Subject is too long.', 'Contents are too short.', 'Contents are too long.');
if ($data['err']) { if ($data['err']) {

View file

@ -1,4 +1,4 @@
<? <?php
function drawForumsMenu($mode,$fList) function drawForumsMenu($mode,$fList)
{ {
@ -13,7 +13,7 @@ function drawForumsMenu($mode,$fList)
</tr> </tr>
<tr><td colspan="2"><a href='?cmd=l' <?=tooltip('Click here to display the latest messages in all forums')?>><?=($mode=='l')?"<i>":""?>Latest messages<?=($mode=='l')?"</i>":""?></a></td></tr> <tr><td colspan="2"><a href='?cmd=l' <?=tooltip('Click here to display the latest messages in all forums')?>><?=($mode=='l')?"<i>":""?>Latest messages<?=($mode=='l')?"</i>":""?></a></td></tr>
<tr><td colspan="3">&nbsp;</td></tr> <tr><td colspan="3">&nbsp;</td></tr>
<? <?php
foreach ($fList as $cid => $cat) foreach ($fList as $cid => $cat)
{ {
@ -62,7 +62,7 @@ function drawForumsMenu($mode,$fList)
<tr><td colspan="3">&nbsp;</td> <tr><td colspan="3">&nbsp;</td>
<tr><th colspan="3"><a href="message" <?=tooltip('click here to go to the messaging system page')?>>Messages</a></th></tr> <tr><th colspan="3"><a href="message" <?=tooltip('click here to go to the messaging system page')?>>Messages</a></th></tr>
</table> </table>
<? <?php
} }
$sp = $args['sp']; $sp = $args['sp'];

View file

@ -1,4 +1,4 @@
<? <?php
$cat = $args['all'][$args['id']]; $cat = $args['all'][$args['id']];
@ -6,14 +6,14 @@ $cat = $args['all'][$args['id']];
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('C#'.$args['id'], $args['all']); ?> <?php drawForumsMenu('C#'.$args['id'], $args['all']); ?>
</td> </td>
<td> <td>
<table cellspacing='0' cellpadding='0'><tr> <table cellspacing='0' cellpadding='0'><tr>
<td class="pc50"><h1><?=utf8entities($cat['title'])?></h1></td> <td class="pc50"><h1><?=utf8entities($cat['title'])?></h1></td>
<td class='maar'><a href="?cmd=<?=urlencode('MC#'.$cat['type']."#".$cat['id'])?>" <?=tooltip('Click here to mark all topics in the forums belonging to this category as read')?>>Mark forums as read</a></td> <td class='maar'><a href="?cmd=<?=urlencode('MC#'.$cat['type']."#".$cat['id'])?>" <?=tooltip('Click here to mark all topics in the forums belonging to this category as read')?>>Mark forums as read</a></td>
</tr></table> </tr></table>
<p><? <p><?php
if ($cat['desc'] != '') if ($cat['desc'] != '')
echo preg_replace('/\n/', '<br/>', utf8entities($cat['desc'])); echo preg_replace('/\n/', '<br/>', utf8entities($cat['desc']));

View file

@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('', $args); ?> <?php drawForumsMenu('', $args); ?>
</td> </td>
<td> <td>
<h1>Category Not Found</h1> <h1>Category Not Found</h1>

View file

@ -1,4 +1,4 @@
<? <?php
$f = $args['forum']; $f = $args['forum'];
$fid = 'F#'.$f['ctype']."#".$f['id']; $fid = 'F#'.$f['ctype']."#".$f['id'];
list($tPPage,$page,$nPages) = $args['details']; list($tPPage,$page,$nPages) = $args['details'];
@ -7,14 +7,14 @@ $mod = $f['mod'];
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu($fid, $args['cats']); ?> <?php drawForumsMenu($fid, $args['cats']); ?>
</td> </td>
<td> <td>
<table cellspacing='0' cellpadding='0'><tr> <table cellspacing='0' cellpadding='0'><tr>
<td class="pc50"><h1><?=utf8entities($f['title'])?></h1></td> <td class="pc50"><h1><?=utf8entities($f['title'])?></h1></td>
<td class='maar'><a href="?cmd=<?=urlencode('MF#'.$f['ctype']."#".$f['id'])?>&pg=<?=$page?>" <?=tooltip('Click here to mark all topics in this forum as read')?>>Mark topics as read</a></td> <td class='maar'><a href="?cmd=<?=urlencode('MF#'.$f['ctype']."#".$f['id'])?>&pg=<?=$page?>" <?=tooltip('Click here to mark all topics in this forum as read')?>>Mark topics as read</a></td>
</tr></table> </tr></table>
<? <?php
if ($f['description'] != '') if ($f['description'] != '')
echo "<p>" . preg_replace('/\n/', '<br/>', utf8entities($f['description'])) . "</p>\n"; echo "<p>" . preg_replace('/\n/', '<br/>', utf8entities($f['description'])) . "</p>\n";
?> ?>
@ -23,7 +23,7 @@ if ($f['description'] != '')
<input type="hidden" name="pg" value="<?=$page?>" /> <input type="hidden" name="pg" value="<?=$page?>" />
<table cellspacing="0" cellpadding="0" class="fcmd"><tr> <table cellspacing="0" cellpadding="0" class="fcmd"><tr>
<td><? <td><?php
if ($f['user_post'] || $f['mod']) if ($f['user_post'] || $f['mod'])
echo "<a href='?cmd=n&f=".urlencode($fid)."' ".tooltip('Click here to go to the new topic form and post a new topic').">New topic</a>"; echo "<a href='?cmd=n&f=".urlencode($fid)."' ".tooltip('Click here to go to the new topic form and post a new topic').">New topic</a>";
@ -32,7 +32,7 @@ else
?></td> ?></td>
<td> <td>
Display <span <?=tooltip('Use this drop down list to choose the number of topics to display on each page')?>><select name="tpp" onChange="form.submit()"><? Display <span <?=tooltip('Use this drop down list to choose the number of topics to display on each page')?>><select name="tpp" onChange="form.submit()"><?php
for ($i=1;$i<6;$i++) for ($i=1;$i<6;$i++)
{ {
@ -44,7 +44,7 @@ for ($i=1;$i<6;$i++)
?></select></span> topics per page ?></select></span> topics per page
</td> </td>
<td <?=tooltip('Use this drop down list to choose the page of topics to display')?>>Page <? <td <?=tooltip('Use this drop down list to choose the page of topics to display')?>>Page <?php
if ($nPages <= 1) if ($nPages <= 1)
echo "1 / 1"; echo "1 / 1";
@ -60,7 +60,7 @@ else
</tr></table> </tr></table>
<table cellspacing="0" cellpadding="0" class="ftop"> <table cellspacing="0" cellpadding="0" class="ftop">
<? <?php
if ($f['topics'] == 0) if ($f['topics'] == 0)
echo "<tr><td class='fem'>This forum is empty.</tr></td>\n"; echo "<tr><td class='fem'>This forum is empty.</tr></td>\n";
@ -104,7 +104,7 @@ else
?> ?>
</table> </table>
<? <?php
if ($mod && count($topics)) if ($mod && count($topics))
{ {
?> ?>
@ -114,7 +114,7 @@ if ($mod && count($topics))
<input <?=tooltip('Click here to go to switch sticky status on the selected topics')?> type="submit" name="st" value="Switch sticky" onClick="return confirmSticky()" /> <input <?=tooltip('Click here to go to switch sticky status on the selected topics')?> type="submit" name="st" value="Switch sticky" onClick="return confirmSticky()" />
</td> </td>
<td> <td>
<? <?php
$mf = array(); $mf = array();
foreach ($args['cats'] as $cid => $cat) { foreach ($args['cats'] as $cid => $cat) {
if ($cat['type'] == 'A' && $f['ctype'] != 'A' || $cat['type'] != 'A' && $f['ctype'] == 'A') if ($cat['type'] == 'A' && $f['ctype'] != 'A' || $cat['type'] != 'A' && $f['ctype'] == 'A')
@ -136,7 +136,7 @@ if ($mod && count($topics))
} }
?></td> ?></td>
</tr></table> </tr></table>
<? <?php
} }
?> ?>

View file

@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('', $args); ?> <?php drawForumsMenu('', $args); ?>
</td> </td>
<td> <td>
<h1>Permission Denied</h1> <h1>Permission Denied</h1>

View file

@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('', $args); ?> <?php drawForumsMenu('', $args); ?>
</td> </td>
<td> <td>
<h1>Forum Not Found</h1> <h1>Forum Not Found</h1>

View file

@ -1,4 +1,4 @@
<? <?php
if ($args['cat'] == '') if ($args['cat'] == '')
{ {
$mode = 'l'; $mode = 'l';
@ -14,7 +14,7 @@ list($mPPage,$page) = $args['details'];
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu($mode, $args['cats']); ?> <?php drawForumsMenu($mode, $args['cats']); ?>
</td> </td>
<td> <td>
<h1><?=utf8entities($title)?></h1> <h1><?=utf8entities($title)?></h1>
@ -35,7 +35,7 @@ list($mPPage,$page) = $args['details'];
</table> </table>
</form> </form>
<? <?php
$p = $args['posts']; $p = $args['posts'];
$nbp = min($mPPage,count($p)); $nbp = min($mPPage,count($p));
@ -90,7 +90,7 @@ else
</tr> </tr>
</table> </table>
</form> </form>
<? <?php
} }
?> ?>
</td> </td>

View file

@ -1,11 +1,11 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('o', $args); ?> <?php drawForumsMenu('o', $args); ?>
</td> </td>
<td> <td>
<h1>Forums Overview</h1> <h1>Forums Overview</h1>
<? <?php
foreach ($args as $cid => $cat) foreach ($args as $cid => $cat)
{ {

View file

@ -1,4 +1,4 @@
<? <?php
$f = $args['forum']; $f = $args['forum'];
if ($args['cmd'] == 'n') if ($args['cmd'] == 'n')
$title = utf8entities($f['title'])." - New Topic"; $title = utf8entities($f['title'])." - New Topic";
@ -10,7 +10,7 @@ else if (substr($args['cmd'],0,2) == 'E#')
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('F#'.$args['cfid'], $args['cats']); ?> <?php drawForumsMenu('F#'.$args['cfid'], $args['cats']); ?>
</td> </td>
<td> <td>
<h2><?=$title?></h2> <h2><?=$title?></h2>
@ -23,7 +23,7 @@ else if (substr($args['cmd'],0,2) == 'E#')
<a name='box'></a> <a name='box'></a>
<table cellspacing="0" cellpadding="0" class="fpost"> <table cellspacing="0" cellpadding="0" class="fpost">
<tr><td colspan='3'>&nbsp;</td></tr> <tr><td colspan='3'>&nbsp;</td></tr>
<? <?php
$errs = array('Subject is too short.', 'Subject is too long.', 'Contents are too short.', 'Contents are too long.'); $errs = array('Subject is too short.', 'Subject is too long.', 'Contents are too short.', 'Contents are too long.');
if ($args['err']) if ($args['err'])
@ -46,7 +46,7 @@ if ($args['err'])
<input <?=tooltip('Use this checkbox to enable / disable forum tags')?> type='checkbox' name='fc' id="efc" value='1'<?=$args['fc']?" checked='checked'":""?> /> <label for="efc" accesskey="f">Enable forum tags</label> <input <?=tooltip('Use this checkbox to enable / disable forum tags')?> type='checkbox' name='fc' id="efc" value='1'<?=$args['fc']?" checked='checked'":""?> /> <label for="efc" accesskey="f">Enable forum tags</label>
</td> </td>
</tr> </tr>
<? <?php
if ($args['sst']) if ($args['sst'])
{ {
@ -57,7 +57,7 @@ if ($args['sst'])
<input <?=tooltip('Use this checkbox to change the sticky status of the post')?> type='checkbox' name='st' id="est" value='1'<?=$args['st']?" checked='checked'":""?> /> <label for="est" accesskey="y">Enable sticky topic</label> <input <?=tooltip('Use this checkbox to change the sticky status of the post')?> type='checkbox' name='st' id="est" value='1'<?=$args['st']?" checked='checked'":""?> /> <label for="est" accesskey="y">Enable sticky topic</label>
</td> </td>
</tr> </tr>
<? <?php
} }
?> ?>

View file

@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('', $args); ?> <?php drawForumsMenu('', $args); ?>
</td> </td>
<td> <td>
<h1>Post Not Found</h1> <h1>Post Not Found</h1>

View file

@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('s', $args['cats']); ?> <?php drawForumsMenu('s', $args['cats']); ?>
</td> </td>
<td> <td>
<h1>Search the Forums</h1> <h1>Search the Forums</h1>
@ -24,7 +24,7 @@
</tr> </tr>
<tr> <tr>
<th>Forum:</th> <th>Forum:</th>
<td <?=tooltip('Use this drop down list to select in which forums to search')?> ><select name="sif"><option value="">All Available Forums</option><? <td <?=tooltip('Use this drop down list to select in which forums to search')?> ><select name="sif"><option value="">All Available Forums</option><?php
foreach ($args['cats'] as $cid => $cat) foreach ($args['cats'] as $cid => $cat)
{ {

View file

@ -1,11 +1,11 @@
<? <?php
$mPPage = $args['sparm']['perpage']; $mPPage = $args['sparm']['perpage'];
$page = $args['sparm']['page']; $page = $args['sparm']['page'];
?> ?>
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('s', $args['cats']); ?> <?php drawForumsMenu('s', $args['cats']); ?>
</td> </td>
<td> <td>
<h1>Search results</h1> <h1>Search results</h1>
@ -26,7 +26,7 @@ $page = $args['sparm']['page'];
</table> </table>
</form> </form>
<? <?php
$p = $args['posts']; $p = $args['posts'];
$nbp = min($mPPage,count($p)); $nbp = min($mPPage,count($p));
@ -78,7 +78,7 @@ else
</tr> </tr>
</table> </table>
</form> </form>
<? <?php
} }
?> ?>
</td> </td>

View file

@ -1,11 +1,11 @@
<? <?php
$mPPage = $args['sparm']['perpage']; $mPPage = $args['sparm']['perpage'];
$page = $args['sparm']['page']; $page = $args['sparm']['page'];
?> ?>
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('s', $args['cats']); ?> <?php drawForumsMenu('s', $args['cats']); ?>
</td> </td>
<td> <td>
<h1>Search results</h1> <h1>Search results</h1>
@ -26,7 +26,7 @@ $page = $args['sparm']['page'];
</table> </table>
</form> </form>
<? <?php
$p = $args['topics']; $p = $args['topics'];
$nbp = min($mPPage,count($p)); $nbp = min($mPPage,count($p));
@ -84,7 +84,7 @@ else
</tr> </tr>
</table> </table>
</form> </form>
<? <?php
} }
?> ?>
</td> </td>

View file

@ -1,4 +1,4 @@
<? <?php
$f = $args['forum']; $f = $args['forum'];
$t = $args['topic']; $t = $args['topic'];
$fid = 'F#'.$f['ctype']."#".$f['id']; $fid = 'F#'.$f['ctype']."#".$f['id'];
@ -7,7 +7,7 @@ list($mPPage,$page,$nPages,$threaded,$reverse) = $args['details'];
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu($fid, $args['cats']); ?> <?php drawForumsMenu($fid, $args['cats']); ?>
</td> </td>
<td> <td>
<h1><?=utf8entities($t['title'])?></h1> <h1><?=utf8entities($t['title'])?></h1>
@ -37,7 +37,7 @@ else
</tr> </tr>
</table> </table>
<? <?php
$p = $args['posts']; $p = $args['posts'];
for ($i=0;$i<count($p);$i++) for ($i=0;$i<count($p);$i++)

View file

@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="mmenu"> <td class="mmenu">
<? drawForumsMenu('', $args); ?> <?php drawForumsMenu('', $args); ?>
</td> </td>
<td> <td>
<h1>Topic Not Found</h1> <h1>Topic Not Found</h1>

View file

@ -6,7 +6,7 @@ include('manual/en/header.inc');
?> ?>
</td> </td>
<td style="padding:0px 0px 0px 20px"> <td style="padding:0px 0px 0px 20px">
<? <?php
include("manual/en/" . handler::$h->subPage . ".inc"); include("manual/en/" . handler::$h->subPage . ".inc");
?> ?>
</td> </td>

View file

@ -39,7 +39,7 @@ if (!is_null(handler::$h->page)) {
<tr><td colspan="3"><h3 style="margin:0;padding:0">Contents</h3></td></tr> <tr><td colspan="3"><h3 style="margin:0;padding:0">Contents</h3></td></tr>
</table> </table>
<div id="manual"> <div id="manual">
<? <?php
function dumpManualStructure(&$sections, $depth) { function dumpManualStructure(&$sections, $depth) {
$br = false; $br = false;

View file

@ -95,7 +95,7 @@ if (is_null(handler::$h->page)) {
?> ?>
<a name="<?=handler::$h->page['name']?>"></a> <a name="<?=handler::$h->page['name']?>"></a>
<h1 style="margin:0;padding:0"><?=handler::$h->page['title']?></h1> <h1 style="margin:0;padding:0"><?=handler::$h->page['title']?></h1>
<? <?php
if (count(handler::$h->page['subsections'])) { if (count(handler::$h->page['subsections'])) {
$st = input::$IE ? "margin:0px 0px 0px 30px" : "margin:0px 0px 0px -15px"; $st = input::$IE ? "margin:0px 0px 0px 30px" : "margin:0px 0px 0px -15px";

View file

@ -1,4 +1,4 @@
<? <?php
include("menu.en.inc"); include("menu.en.inc");
$this->title = "Banned"; $this->title = "Banned";
$this->addStylesheet('text'); $this->addStylesheet('text');
@ -11,7 +11,7 @@ $this->startContents();
<p> <p>
Don't even think about coming back. Don't even think about coming back.
</p> </p>
<? <?php
$q = dbQuery("SELECT reason FROM account WHERE id=" . tracking::$data['uid'] . " AND status='KICKED'"); $q = dbQuery("SELECT reason FROM account WHERE id=" . tracking::$data['uid'] . " AND status='KICKED'");
list($reason) = dbFetchArray($q); list($reason) = dbFetchArray($q);