<?php require('./global.php');

// This file can be saved as any name, but upload to your forum dir.

// Only real variables for you to change. Include the trailing /

$siteurl = "http://www.des-by.com/vb";
$sitename = "منتديات ديز باي Des By ، دورة تصميم mms وسائط دورة الوسائط ، دروس فوتوشوب ، درس ، سكرابز ، فرش ، خطوط ، الفوتوشوب ، حلم كل مصمم Des By . com , mms , sms , design , خدمة جوال وسائط ديز باي ديزاين";

// You can safely edit the header and footer as well.

?>

<html dir=rtl>

<head>
<title>خريطة المنتدى</title>
<meta name="description" content="منتديات ديز باي Des By ، دورة تصميم mms وسائط دورة الوسائط ، دروس فوتوشوب ، درس ، سكرابز ، فرش ، خطوط ، الفوتوشوب ، حلم كل مصمم Des By . com , mms , sms , design , خدمة جوال وسائط ديز باي ديزاين">

<style>
<!--
h1           { font-family: tahoma; font-size: 14pt; color: #666666 }
h2           { font-family: tahoma; font-size: 12pt; color: #666666 }
body         { font-family: tahoma; font-size: 8pt; color: #666666 }
p            { font-family: tahoma; font-size: 8pt; color: #666666 }
-->
</style>

</head>

<body>

<?php

echo "\r\n<h1>$sitename - الخريطه</h1>\r\n";

echo "\r\n<p>اضغط هنا للعوده الى <a href='$siteurl/'>$sitename</a></p>\r\n";

echo "\r\n<h2>$sitename - أقسام المنتدى</h2>\r\r\n";

$result = mysql_query("SELECT title, forumid, description FROM forum ORDER BY forumid");

echo "<b>عدد الاقسام: </b>".mysql_num_rows($result)."<br><br>\r\n";

while($row = mysql_fetch_assoc($result))
{
      echo "<a href='$siteurl/forumdisplay.php?f=".$row["forumid"]."'>".$row["title"]."</a> - ".$row["description"]."<br>\r\n";

}

echo "\r\n<h2>$sitename - أفضل المواضيع</h2>\r\r\n";

$result = mysql_query("SELECT title, threadid FROM thread ORDER BY threadid LIMIT 100");

echo "<b>أفضل 100 موضوع</b><br><br>\r\n";

while($row = mysql_fetch_assoc($result))
{
      echo "<a href='$siteurl/showthread.php?t=".$row["threadid"]."'>".$row["title"]."</a><br>\r\n";

}

echo "\r\n<h2>مواضيع المنتدى</h2>\r\r\n";

$result = mysql_query("SELECT title, threadid FROM thread ORDER BY title");

echo "<b>عدد المواضيع: </b>".mysql_num_rows($result)."<br><br>\r\n";

while($row = mysql_fetch_assoc($result))
{
      echo "<a href='$siteurl/showthread.php?t=".$row["threadid"]."'>".$row["title"]."</a><br>\r\n";
}

?>

</body>
</div>
</html>
