forked from EQMacEmu/allaclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.php
27 lines (25 loc) · 768 Bytes
/
news.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
<?php
include('./includes/constantes.php');
include('./includes/config.php');
include($includes_dir.'mysql.php');
$Title="News and Updates";
include($includes_dir.'headers.php');
include($includes_dir.'functions.php');
if ($EnableNews==FALSE)
{
print "Access forbidden";
die;
}
$query="SELECT *
FROM $tbnews
ORDER BY DATE desc";
$result=mysql_query($query) or message_die('news.php','MYSQL_QUERY',$query,mysql_error());
$sep="";
while ($res=mysql_fetch_array($result))
{
print "<center>$sep<b>".WriteDate($res["date"])."</b></center>";
print "<blockquote><b><u>".$res["title"]."</u></b><br/>".$res["content"]."</blockquote>";
$sep="<center><p><img src=images/line.gif width=75% height=5><p></center>";
}
include($includes_dir."footers.php");
?>