This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathresults.php
64 lines (62 loc) · 1.93 KB
/
results.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?
require("include/top.php");
$query ="SELECT parties.name FROM parties where parties.id=".$which." LIMIT 1";
$result=mysql_query($query);
$party = mysql_fetch_array($result);
if(!$f) $f=1;
?>
<br>
<table><tr><td>
<table bgcolor="#000000" cellspacing="1" cellpadding="0" border="0" width="100%">
<tr>
<td>
<table bgcolor="#000000" cellspacing="1" cellpadding="2" border="0" width="100%">
<tr>
<td bgcolor="#224488">
<b>
<font size="+1"><? print(stripslashes($party["name"])." ".$when." results"); ?></font>
</b>
</td>
</tr>
<tr bgcolor="#446688">
<td align="center">
<table><tr><td>
<? if($f=='none'): ?>
<pre class="results"><? readfile('results/'.$which.'_'.$when.'.txt'); ?></pre>
<? else: ?>
<img src="ascii.php?results=<?=$which?>&when=<?=$when?>&f=<?=$f?>"><br>
<? endif; ?>
</td></tr></table>
</td>
</tr>
<tr>
<td bgcolor="#6688AA" align="center">
<? $txt=array("dos 80*25","dos 80*50","rez's ascii","amiga medres","amiga hires");
print("<b>[ "); ?>
<a href="results.php?which=<?=$which?>&when=<?=$when?>&f=none">html</a>
<? for($i=0;$i<=count($txt)-1;$i++): ?>
| <a href="results.php?which=<?=$which?>&when=<?=$when?>&f=<?=$i+1?>"><?=$txt[$i]?></a>
<? endfor;
print(" ]</b>"); ?>
</td>
</tr>
<tr>
<td bgcolor="#224488" align="right">
<?
if($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') {
?>
<b>[ <a href="submitpartyresults.php?which=<?=$which?>&when=<?=$when?>">admin: upload new res</a> ]</b>
<b>[ <a href="results/<?=$which?>_<?=$when?>.txt">admin: download res</a> ]</b>
<?
}
?>
<b>[ <a href="party.php?which=<? print($which); ?>&when=<? print($when); ?>">back to the party releases</a> ]</b><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<br>
<? require("include/bottom.php"); ?>