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
/
preview_prod.php
81 lines (72 loc) · 2.95 KB
/
preview_prod.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?
require("include/misc.php");
require("include/libbb.php");
session_start();
conn_db();
$user = array();
$customid = $_SESSION["SCENEID_ID"];
$result=mysql_query(sprintf('select displayimages from usersettings where id=%d',$customid));
$usersettings=mysql_fetch_assoc($result);
if (!$usersettings) {
$result=mysql_query(sprintf('select displayimages from usersettings where id=11057',$customid));
$usersettings=mysql_fetch_assoc($result);
}
$user=array_merge($user,$usersettings);
$query=sprintf("SELECT name FROM prods WHERE id=%d",$which);
$result=mysql_query($query) or die(mysql_error());
//$topictitle=htmlcleanonerow(mysql_result($result,0));
$o = mysql_fetch_object($result);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<title>pouet.net BBS :: preview :: because broken bbcode makes ps cry</title>
<link rel="stylesheet" href="include/style.css" type="text/css">
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_prod.xml" title="pouët.net - prod search" />
<meta name="description" content="pouët.net - your online demoscene resource">
<meta name="keywords" content="pouët.net,256b,1k,4k,40k,64k,cracktro,demo,dentro,diskmag,intro,invitation,lobster sex,musicdisk,Amiga AGA,Amiga ECS,Amiga PPC,Amstrad CPC,Atari ST,BeOS,Commodore 64,Falcon,MS-Dos,Linux,MacOS,Windows">
</head>
<body background="gfx/trumpet.gif" bgcolor="#3A6EA5">
<br />
<br />
<table bgcolor="#000000" cellspacing="1" cellpadding="0" width="75%" style="margin: 0px auto;">
<tr>
<td>
<table bgcolor="#000000" cellspacing="1" cellpadding="2" width="100%">
<tr>
<th><center>
<?=htmlcleanonerow($o->name)?>
</center></th>
</tr>
<tr><td bgcolor="#446688">
<? print(parse_message($_POST["comment"])); ?>
</td></tr>
<tr class="cite-<?=$_SESSION["SCENEID_ID"]?>">
<td bgcolor="#6688AA" colspan="2" align="right">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<? if($_POST["rating"]=="rulez"): ?>
<td width="100%"><img src="gfx/rulez.gif" width="16" height="16" border="0" title="rulez">
</td>
<? elseif($_POST["rating"]=="sucks"): ?>
<td width="100%"><img src="gfx/sucks.gif" width="16" height="16" border="0" title="sucks"></td>
<? else: ?>
<td width="100%"> </td>
<? endif; ?>
<td nowrap>added on the <?=date("Y-m-d")?> by <a href="user.php?who=<?=$_SESSION["SCENEID_ID"]?>"><?=$_SESSION["SESSION_NICKNAME"]?></a></td>
<td nowrap> </td>
<td nowrap><a href="user.php?who=<?=$_SESSION["SCENEID_ID"]?>"><img src="avatars/<?=$_SESSION["SESSION_AVATAR"]?>" width="16" height="16" border="0" title="<?=$_SESSION["SESSION_NICKNAME"]?>"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
</div>
</body>
</html>