Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.05 KB | None | 0 0
  1. <?php
  2.  
  3. // standard hack prevent
  4. define('IN_PHPBB', true);
  5. $phpbb_root_path = './';
  6. include($phpbb_root_path . 'extension.inc');
  7. include($phpbb_root_path . 'common.'.$phpEx);
  8.  
  9. // standard session management
  10. $userdata = session_pagestart($user_ip, PAGE_SITEMAP);
  11. init_userprefs($userdata);
  12.  
  13. // set page title
  14. $page_title = 'Sitemap PlatinumW';
  15.  
  16. // standard page header
  17. include($phpbb_root_path . 'includes/page_header.'.$phpEx);
  18.  
  19. // assign template
  20. $template->set_filenames(array(
  21.         'body' => 'sitemap.tpl')
  22. );
  23.  
  24.  
  25. $template->pparse('body');
  26. ?>
  27.  
  28. <?php
  29. echo "
  30. ";
  31. echo "<h2>phpBB Categories</h2>";
  32.  
  33. $result = mysql_query("SELECT cat_title, cat_id FROM phpbb_categories WHERE cat_id=3 ORDER BY cat_title");
  34. while($row=  mysql_fetch_assoc($result))
  35. {
  36.       echo "<a href='index.php?c=".$row["cat_id"]."'>".$row["cat_title"]."</a><br>";
  37.  
  38. }
  39.  
  40. echo "<h2>phpBB Forums</h2>";
  41.  
  42. $result = mysql_query("SELECT forum_id, forum_name, forum_desc FROM phpbb_forums WHERE `forum_id` = 69 OR `forum_id` = 2 OR `forum_id` = 4 OR `forum_id` = 57 OR `forum_id` = 30 OR `forum_id` = 6 OR `forum_id` = 8 OR `forum_id` = 27 OR `forum_id` = 7 OR `forum_id` = 5 OR `forum_id` = 70 OR `forum_id` = 29 OR `forum_id` = 75  OR `forum_id` = 3  OR `forum_id` = 34 OR `forum_id` = 32 OR `forum_id` = 48 ");
  43. while($row=  mysql_fetch_assoc($result))
  44. {
  45.       echo "<a href='viewforum.php?f=".$row["forum_id"]."'>".$row["forum_name"]."</a><br>";
  46.  
  47. }
  48. echo "<h2>phpBB Topics</h2>";
  49.  
  50. $result = mysql_query("SELECT topic_title, topic_id FROM phpbb_topics ORDER BY topic_title");
  51. while($row=  mysql_fetch_assoc($result))
  52. {
  53.       echo "<a href='viewtopic.php?t=".$row["topic_id"]."'>".$row["topic_title"]."</a><br>";
  54. }
  55. echo "<h2>phpBB Users</h2>";
  56.  
  57. $result = mysql_query("SELECT user_id,  username  FROM phpbb_users ORDER BY user_id");
  58. while($row=  mysql_fetch_assoc($result))
  59. {
  60.     echo "<a href='profile.php?mode=viewprofile&u=".$row["user_id"]."'>".$row["username"]."</a><br>";
  61.  
  62. }
  63. ?>
  64.  
  65. <?php
  66.  
  67.  
  68.  
  69. include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
  70.  
  71. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement