-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.php
More file actions
34 lines (29 loc) · 782 Bytes
/
rules.php
File metadata and controls
34 lines (29 loc) · 782 Bytes
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
<?php
//
// TorrentTrader v2.x
// $LastChangedDate: 2011-10-27 20:00:39 +0100 (Thu, 27 Oct 2011) $
// $LastChangedBy: dj-howarth1 $
//
// http://www.torrenttrader.org
//
require_once("backend/functions.php");
dbconn();
stdhead( T_("SITE_RULES") );
$res = SQL_Query_exec("SELECT * FROM `rules` ORDER BY `id`");
while ($row = mysql_fetch_assoc($res))
{
if ($row["public"] == "yes")
{
begin_frame($row["title"]);
echo format_comment($row["text"]);
end_frame();
}
else if ($row["public"] == "no" && $row["class"] <= $CURUSER["class"])
{
begin_frame($row["title"]);
echo format_comment($row["text"]);
end_frame();
}
}
stdfoot();
?>