<?php
//////////////////////////////////// BY MGHOOL ////////////////////////////////////

$bgcolor = "FDCEF8";
$LinkColor = "000000";
$LinkColor2 = "FE43C4";

$excludeforums = "";

$mgtitle = "منتديــ عهــ WwW.3HoOd.OrG ــود ــات";

//////////////////////////////////// BY MGHOOL ////////////////////////////////////

$LastLimit = "10";
$includeforums = "";
$bbtitle = "*~^*--=<||][ إدارة المنتدى ترحب بكم وتتمنى لكم تصفحاً ممتعاً بإذن الله ][||>=--*^~*";
include "../includes/config.php";
$Connect= mysql_connect($config['MasterServer']['servername'],$config['MasterServer']['username'],$config['MasterServer']['password']) or die (mysql_error());
mysql_select_db($config['Database']['dbname']) or die (mysql_error());
$wheresql = "WHERE thread.lastposter=user.username AND thread.open!='10'";
if ($excludeforums != "" && $includeforums != "") {
print("<font face='ms sans serif' color=#$LinkColor size='1'>
<body bgcolor=#$bgcolor><center>$bbtitle</center></body></font>");exit;}
if ($includeforums == "" or $includeforums <= "0") {$quarter = "no";} else {
$incfid = explode(",",$includeforums); $i = 0; $a = count($incfid);if ($a > 1) {
$wheresql .= " AND (thread.forumid='$incfid[0]'";++$i;while ($i < $a) {
$wheresql .= " OR thread.forumid='$incfid[$i]'"; ++$i;}
$wheresql .= ")";} else {$wheresql .= " AND thread.forumid='$incfid[$i]'";}}
if ($excludeforums == "" or $excludeforums <= "0") {$quarter = "no"; } else {
$excfid = explode(",",$excludeforums); $i = 0; $a = count($excfid); while ($i < $a) {
$wheresql .= " AND thread.forumid!='$excfid[$i]'"; ++$i;}}
echo "<html DIR='RTL' LANG='AR-SA'><meta http-equiv='Content-Type' content='text/html; charset=windows-1256'>

<meta http-equiv='Content-Language' content='ar-sa'><title>جديد المنتدى لهذا اليوم</title><style><!--
A:link {text-decoration: none ; color : #$LinkColor}A:visited {text-decoration: none ; color : #$LinkColor}
A:active {text-decoration: none ; color : #$LinkColor2}A:hover {text-decoration: none ; color : #$LinkColor2}//--></style><body bgcolor=#$bgcolor>
<marquee onmouseover='this.stop()' onmouseout='this.start()' scrollAmount='4' scrollDelay='0' direction='right'>";
$ConnectToDb = mysql_query("SELECT thread.postusername,thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid FROM thread,user $wheresql ORDER BY threadid desc limit $LastLimit ");
while($PHP = mysql_fetch_array($ConnectToDb)){ extract($PHP);
echo "<a title='$mgtitle'  target='blank' href='../showthread.php?p=$firstpostid&threadid=$threadid&goto=newpost'><font face='ms sans serif' size='1'>.::||[ $title  - بواسطة : $postusername - المشاركات : $replycount - آخر رد  : $lastposter - عدد الزيارات : $views ]||::.</a>&nbsp&nbsp&nbsp&nbsp";} echo "</marquee>";
?>