[ ! ] ليس هاك ولكن بلوك؟؟؟؟
المشرف: alhitary
[ ! ] ??? ??? ???? ????????
??? ????? ?? ????? ???? ???? ??? ????? ???? ??? ??
??? ??? ?????? ???? ???????? ?????? ??? ?? ????? ??????? ??? phpbb ??? ??? ??? ????????? ??????? ?? ?????? ?? ???? ???? ???? ?? ???? ??? ???? ???? ??? ???
???? ???????? ???? ??? ????? ?? ????? ?????
??? ?? ????? ???? ::::::..............::::::::::::::
?? ???? ?????? ????? ?? ??????? ??? ???? ?? ??? ???? ???? ???????? ?????? ??? nuke_bbkkkkkkkkkkk ??? phpbb ????? ???????? kkkkkkk_
?? ???? ??? ??? ??? ????????? ??? ???? ????? ?? ???? ??? ?? ???? ??? ??? ?????? ???? ???? ???????? ??????? ?? ?? ??? ?? ??????? ??? ?????? ???????? ??? ??????
??? ??? ?????? ???? ???????? ?????? ??? ?? ????? ??????? ??? phpbb ??? ??? ??? ????????? ??????? ?? ?????? ?? ???? ???? ???? ?? ???? ??? ???? ???? ??? ???
???? ???????? ???? ??? ????? ?? ????? ?????
??? ?? ????? ???? ::::::..............::::::::::::::
?? ???? ?????? ????? ?? ??????? ??? ???? ?? ??? ???? ???? ???????? ?????? ??? nuke_bbkkkkkkkkkkk ??? phpbb ????? ???????? kkkkkkk_
كود: تحديد الكل
<?php
if (eregi("block-Forum_Latest_Topics.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $prefix, $db, $sitename;
//Number of topics to show.
$fltNrTopics = 5;
//flpContentPrefix goes before output, flpContentSuffix after.
$fltContentPrefix = "<font class=\"content\">";
$fltContentSuffix = "<br></font>";
$content = $fltContentPrefix;
$content .= '<table width="100%"><tr>';
///////from here i start as a test; /////////////
//////////////////////////ÃÞÓÇã ÇáÌÇãÚÉ/////////////////////////
$content .= "</td><td valign=\"top\"><br>
<img src=\"images/center_r.gif\" border=\"0\" alt=\"\" title=\"\" > <b>ãäÊÏíÇÊ ÇáÌÇãÚÉ</b><br><br>
<a href=\"phpBB2/viewforum.php?f=2\">BIT</a> |
<a href=\"phpBB2/viewforum.php?f=3\">ISE</a> |
<a href=\"phpBB2/viewforum.php?f=4\">HND</a> |
<a href=\"phpBB2/viewforum.php?f=6\">ENG</a>
<br><br>";
$Topic_IDs_Used = array();
$Topics_Printed = 0;
$Start_Limit = 0;
$forum_ids = ('2,3,4,6,7,23,29');
$sql = "SELECT ".$prefix."_posts.forum_id AS forum_id, "
.$prefix."_posts.topic_id AS topic_id, "
.$prefix."_topics.topic_title AS topic_title, "
.$prefix."_topics.topic_replies AS topic_replies "
."FROM ".$prefix."_posts, ".$prefix."_topics "
."WHERE (".$prefix."_posts.topic_id = ".$prefix."_topics.topic_id) "
."AND (".$prefix."_posts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_posts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
while (( $db->sql_numrows($result) > 0 ) && ($Topics_Printed < $fltNrTopics) ) {
while ( ($row = $db->sql_fetchrow($result)) && ($Topics_Printed < $fltNrTopics) ) {
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
$topic_replies = $row['topic_replies'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Now have topic_id and topic_title, ordered by last post time.
//Next, do authorization to read check.
$sql_auth = "SELECT auth_view, auth_read FROM ".$prefix."_forums WHERE forum_id='$forum_id'";
$result_auth = $db->sql_query($sql_auth);
$row_auth = $db->sql_fetchrow($result_auth);
$auth_view = $row_auth[auth_view];
$auth_read = $row_auth[auth_read];
if (($auth_view < 2) OR ($auth_read < 2)) {
$postsperpage = 15;
if ($topic_replies > $postsperpage-1){
$z = '&start=' . ($postsperpage * (ceil($topic_replies/$postsperpage-0.99)));
}
$content .= "<img src=\"images/forum-top.gif\" border=\"0\" alt=\"\" title=\"\" width=\"7\" height=\"7\"> <a href=\"phpBB2/viewtopic.php?t=$topic_id$z\">" . $topic_title . "</a><br>";
$z="";
}
}
}
$sql = "SELECT ".$prefix."_posts.forum_id AS forum_id, "
.$prefix."_posts.topic_id AS topic_id, "
.$prefix."_topics.topic_title AS topic_title, "
.$prefix."_topics.topic_replies AS topic_replies "
."FROM ".$prefix."_posts, ".$prefix."_topics "
."WHERE (".$prefix."_posts.topic_id = ".$prefix."_topics.topic_id) "
."AND (".$prefix."_posts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_posts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
}
//Number of topics to show.
$fltNrTopics = 6;
//////////&the end for my test but it didn't work;//////////////
//////////////////////////ÔÛáÇÊ ÈÊÝíÏß///////////////////
$content .= "</td><td valign=\"top\"><br><img src=\"images/center_r.gif\" border=\"0\" alt=\"\" title=\"\" > <b><a href=\"modules.php?name=Forums&file=index&c=8\"><font color='#000000'>ÔÛáÇÊ ÈÊÝíÏß</font></a></b><br><br>";
$Topic_IDs_Used = array();
$Topics_Printed = 0;
$Start_Limit = 0;
$forum_ids = ('8,9,10,11,12,13,23,25');
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
while (( $db->sql_numrows($result) > 0 ) && ($Topics_Printed < $fltNrTopics) ) {
while ( ($row = $db->sql_fetchrow($result)) && ($Topics_Printed < $fltNrTopics) ) {
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
$topic_replies = $row['topic_replies'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Now have topic_id and topic_title, ordered by last post time.
//Next, do authorization to read check.
$sql_auth = "SELECT auth_view, auth_read FROM ".$prefix."_bbforums WHERE forum_id='$forum_id'";
$result_auth = $db->sql_query($sql_auth);
$row_auth = $db->sql_fetchrow($result_auth);
$auth_view = $row_auth[auth_view];
$auth_read = $row_auth[auth_read];
if (($auth_view < 2) OR ($auth_read < 2)) {
$postsperpage = 15;
if ($topic_replies > $postsperpage-1){
$z = '&start=' . ($postsperpage * (ceil($topic_replies/$postsperpage-0.99)));
}
$content .= "<img src=\"images/forum-top.gif\" border=\"0\" alt=\"\" title=\"\" width=\"7\" height=\"7\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id$z\">" . $topic_title . "</a><br>";
$z="";
}
}
}
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
}
//////////////////////////ÇáãäÊÏì ÇáÚÇã///////////////////
$content .= "</td></tr><tr><td valign=\"top\"><br><img src=\"images/center_r.gif\" border=\"0\" alt=\"\" title=\"\" > <b><a href=\"modules.php?name=Forums&file=viewforum&f=20&sid=7194d7f73778b7febfbbb3dd2d5fc757\"><font color='#000000'>ÇáãäÊÏì ÇáÚÇã</font></a></b><br><br>";
$Topic_IDs_Used = array();
$Topics_Printed = 0;
$Start_Limit = 0;
$forum_ids = ('20');
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
while (( $db->sql_numrows($result) > 0 ) && ($Topics_Printed < $fltNrTopics) ) {
while ( ($row = $db->sql_fetchrow($result)) && ($Topics_Printed < $fltNrTopics) ) {
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
$topic_replies = $row['topic_replies'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Now have topic_id and topic_title, ordered by last post time.
//Next, do authorization to read check.
$sql_auth = "SELECT auth_view, auth_read FROM ".$prefix."_bbforums WHERE forum_id='$forum_id'";
$result_auth = $db->sql_query($sql_auth);
$row_auth = $db->sql_fetchrow($result_auth);
$auth_view = $row_auth[auth_view];
$auth_read = $row_auth[auth_read];
if (($auth_view < 2) OR ($auth_read < 2)) {
$postsperpage = 15;
if ($topic_replies > $postsperpage-1){
$z = '&start=' . ($postsperpage * (ceil($topic_replies/$postsperpage-0.99)));
}
$content .= "<img src=\"images/forum-top.gif\" border=\"0\" alt=\"\" title=\"\" width=\"7\" height=\"7\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id$z\">" . $topic_title . "</a><br>";
$z="";
}
}
}
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
}
//////////////////////////ãäÊÏíÇÊ Ú ÇáÈíÚÉ///////////////////
$content .= "</td><td valign=\"top\" ><br><img src=\"images/center_r.gif\" border=\"0\" alt=\"\" title=\"\" > <b><a href=\"modules.php?name=Forums&file=index&c=9\"><font color='#000000'>ãäÊÏíÇÊ Ú ÇáÈíÚÉ</font></a></b><br><br>";
$Topic_IDs_Used = array();
$Topics_Printed = 0;
$Start_Limit = 0;
$forum_ids = ('14,15,16,18,17,26');
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
while (( $db->sql_numrows($result) > 0 ) && ($Topics_Printed < $fltNrTopics) ) {
while ( ($row = $db->sql_fetchrow($result)) && ($Topics_Printed < $fltNrTopics) ) {
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
$topic_replies = $row['topic_replies'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Now have topic_id and topic_title, ordered by last post time.
//Next, do authorization to read check.
$sql_auth = "SELECT auth_view, auth_read FROM ".$prefix."_bbforums WHERE forum_id='$forum_id'";
$result_auth = $db->sql_query($sql_auth);
$row_auth = $db->sql_fetchrow($result_auth);
$auth_view = $row_auth[auth_view];
$auth_read = $row_auth[auth_read];
if (($auth_view < 2) OR ($auth_read < 2)) {
$postsperpage = 15;
if ($topic_replies > $postsperpage-1){
$z = '&start=' . ($postsperpage * (ceil($topic_replies/$postsperpage-0.99)));
}
$content .= "<img src=\"images/forum-top.gif\" border=\"0\" alt=\"\" title=\"\" width=\"7\" height=\"7\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id$z\">" . $topic_title . "</a><br>";
$z="";
}
}
}
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
}
//Number of topics to show.
$fltNrTopics = 3;
//////////////////////////ãÚÇ äÈäí ÇáãæÞÚ///////////////////
$content .= "</td></tr><tr><td valign=\"top\"><br><img src=\"images/center_r.gif\" border=\"0\" alt=\"\" title=\"\" > <b><a href=\"modules.php?name=Forums&file=index&c=12\"><font color='#000000'>ãÚÇð äÈäí ÇáãæÞÚ</font></a></b><br><br>";
$Topic_IDs_Used = array();
$Topics_Printed = 0;
$Start_Limit = 0;
$forum_ids = ('28,27,22');
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
while (( $db->sql_numrows($result) > 0 ) && ($Topics_Printed < $fltNrTopics) ) {
while ( ($row = $db->sql_fetchrow($result)) && ($Topics_Printed < $fltNrTopics) ) {
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
$topic_replies = $row['topic_replies'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Now have topic_id and topic_title, ordered by last post time.
//Next, do authorization to read check.
$sql_auth = "SELECT auth_view, auth_read FROM ".$prefix."_bbforums WHERE forum_id='$forum_id'";
$result_auth = $db->sql_query($sql_auth);
$row_auth = $db->sql_fetchrow($result_auth);
$auth_view = $row_auth[auth_view];
$auth_read = $row_auth[auth_read];
if (($auth_view < 2) OR ($auth_read < 2)) {
$postsperpage = 15;
if ($topic_replies > $postsperpage-1){
$z = '&start=' . ($postsperpage * (ceil($topic_replies/$postsperpage-0.99)));
}
$content .= "<img src=\"images/forum-top.gif\" border=\"0\" alt=\"\" title=\"\" width=\"7\" height=\"7\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id$z\">" . $topic_title . "</a><br>";
$z="";
}
}
}
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
}
//////////////////////////ÇáÓæÞ ÇáÇÝÊÑÇÖí///////////////////
$content .= "</td><td valign=\"top\" ><br><img src=\"images/center_r.gif\" border=\"0\" alt=\"\" title=\"\" > <b><a href=\"modules.php?name=Forums&file=viewforum&f=26\"><font color='#000000'>ÇáÓæÞ ÇáÇÝÊÑÇÖí</font></a></b><br><br>";
$Topic_IDs_Used = array();
$Topics_Printed = 0;
$Start_Limit = 0;
$forum_ids = ('26');
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
while (( $db->sql_numrows($result) > 0 ) && ($Topics_Printed < $fltNrTopics) ) {
while ( ($row = $db->sql_fetchrow($result)) && ($Topics_Printed < $fltNrTopics) ) {
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
$topic_replies = $row['topic_replies'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Now have topic_id and topic_title, ordered by last post time.
//Next, do authorization to read check.
$sql_auth = "SELECT auth_view, auth_read FROM ".$prefix."_bbforums WHERE forum_id='$forum_id'";
$result_auth = $db->sql_query($sql_auth);
$row_auth = $db->sql_fetchrow($result_auth);
$auth_view = $row_auth[auth_view];
$auth_read = $row_auth[auth_read];
if (($auth_view < 2) OR ($auth_read < 2)) {
$postsperpage = 15;
if ($topic_replies > $postsperpage-1){
$z = '&start=' . ($postsperpage * (ceil($topic_replies/$postsperpage-0.99)));
}
$content .= "<img src=\"images/forum-top.gif\" border=\"0\" alt=\"\" title=\"\" width=\"7\" height=\"7\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id$z\">" . $topic_title . "</a><br>";
$z="";
}
}
}
$sql = "SELECT ".$prefix."_bbposts.forum_id AS forum_id, "
.$prefix."_bbposts.topic_id AS topic_id, "
.$prefix."_bbtopics.topic_title AS topic_title, "
.$prefix."_bbtopics.topic_replies AS topic_replies "
."FROM ".$prefix."_bbposts, ".$prefix."_bbtopics "
."WHERE (".$prefix."_bbposts.topic_id = ".$prefix."_bbtopics.topic_id) "
."AND (".$prefix."_bbposts.forum_id IN (" . $forum_ids . ")) "
."ORDER BY ".$prefix."_bbposts.post_time DESC LIMIT $Start_Limit,$fltNrTopics";
$result = $db->sql_query($sql);
$Start_Limit+=$fltNrTopics;
}
$content .= '</td></tr></table>';
$content .= $fltContentSuffix;
?>
?? ???? ??? ??? ??? ????????? ??? ???? ????? ?? ???? ??? ?? ???? ??? ??? ?????? ???? ???? ???????? ??????? ?? ?? ??? ?? ??????? ??? ?????? ???????? ??? ??????
الموجودون الآن
المتصفحون للمنتدى الآن: Ahrefs [Bot] و 14 زائرًا