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
/
othernfo.php
65 lines (61 loc) · 1.88 KB
/
othernfo.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
65
<?
require("include/top.php");
$query ="SELECT * FROM othernfos WHERE id=".$which;
$result = mysql_query($query);
$prod = mysql_fetch_array($result);
if ($prod["type"]=="group") $query="SELECT name FROM groups WHERE id=".$prod["refid"];
else $query="SELECT name FROM bbses WHERE id=".$prod["refid"];
$result=mysql_query($query);
$tmp=mysql_fetch_array($result);
$prod["name"]=$tmp["name"];
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($prod["name"])); ?></font>
</b>
</td>
</tr>
<tr bgcolor="#446688">
<td align="center">
<table><tr><td>
<? if($f=='none'): ?>
<pre><? readfile('othernfo/'.$which.'.nfo'); ?></pre>
<? else: ?>
<img src="ascii.php?othernfo=<?=$which?>&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="othernfo.php?which=<?=$which?>&f=none">html</a>
<? for($i=0;$i<=count($txt)-1;$i++): ?>
| <a href="othernfo.php?which=<?=$which?>&f=<?=$i+1?>"><?=$txt[$i]?></a>
<? endfor;
print(" ]</b>"); ?>
</td>
</tr>
<tr>
<td bgcolor="#224488" align="right">
<? if ($prod["type"]=="group"): ?> <b>[ <a href="group.php?which=<? print($prod["refid"]); ?>">back to the group</a> ]</b><br />
<? else: ?> <b>[ <a href="bbses.php?which=<? print($prod["refid"]); ?>">back to the bbs</a> ]</b><br />
<? endif; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<br />
<? require("include/bottom.php"); ?>