Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. <?php
  2. include("config.php");
  3. echo "
  4. <html><head><title>$ServerName ModReq</title></head>
  5. <body>
  6. <table class=\"tablehead\" align=\"center\"><tr><td class=\"tdhead\"><h1>$ServerName ModReq</h1>
  7. </td></tr>
  8. </table>
  9. <div align=\"center\">
  10. ";
  11. $Connect = mysql_connect("$Host","$DatabaseLoginUsername","$DatabaseLoginPassword") or die("<p class=pbad>Sorry but we where unable to connect to MySQL. Please try again later.</p>");
  12. $Result = @mysql_select_db("$DatabaseName",$Connect)or die("<p class=pbad>Sorry - unable to select the database. Please try again later.</p>") ;
  13. $SQL = "select * from requests where status=\"open\"";
  14. $Result = @mysql_query($SQL);
  15. echo "<h2>Open Mod Requests</h2>
  16. <table class=\"tablemodreq\">
  17. <tr>
  18. <td class=\"tdmodreq\" width=\"3%\"><h3>ID</h3></td>
  19. <td class=\"tdmodreq\" width=\"7%\"><h3>Submitter</h3></td>
  20. <td class=\"tdmodreq\" width=\"10%\"><h3>Date</h3></td>
  21. <td class=\"tdmodreq\" width=\"10%\"><h3>Location</h3></td>
  22. <td class=\"tdmodreq\" width=\"10%\"><h3>Staff</h3></td>
  23. <td class=\"tdmodreq\" width=\"30%\"><h3>Message</h3></td>
  24. <td class=\"tdmodreq\" width=\"30%\"><h3>Comment</h3></td>
  25. </tr>
  26. </table>
  27. ";
  28. while ($row = mysql_fetch_array($Result))
  29. {
  30. $ID = $row["id"];
  31. $Submitter = $row["submitter"];
  32. $Message = $row["message"];
  33. $Date = $row["date"];
  34. $Comment = $row["comment"];
  35. $Location = $row["location"];
  36. $Staff = $row["staff"];
  37. echo "
  38. <table class=\"tablemodreq\">
  39. <tr>
  40. <td class=\"tdmodreq\" width=\"3%\"><p>$ID</p></td>
  41. <td class=\"tdmodreq\" width=\"7%\"><p>$Submitter</p></td>
  42. <td class=\"tdmodreq\" width=\"10%\"><p>$Date</p></td>
  43. <td class=\"tdmodreq\" width=\"10%\"><p>$Location</p></td>
  44. <td class=\"tdmodreq\" width=\"10%\"><p>$Staff</p></td>
  45. <td class=\"tdmodreq\" width=\"30%\"><p>$Message</p></td>
  46. <td class=\"tdmodreq\" width=\"30%\"><p>$Comment</p></td>
  47. </tr>
  48. </table>
  49. ";
  50. }
  51.  
  52. $Connect2 = mysql_connect("$Host","$DatabaseLoginUsername","$DatabaseLoginPassword") or die("<p class=pbad>Sorry but we where unable to connect to MySQL. Please try again later.</p>");
  53. $Result2 = @mysql_select_db("$DatabaseName",$Connect2)or die("<p class=pbad>Sorry - unable to select the database. Please try again later.</p>") ;
  54. $SQL2 = "select * from requests where status=\"claimed\"";
  55. $Result2 = @mysql_query($SQL2);
  56. echo "<h2>Claimed Mod Requests</h2>
  57. <table class=\"tablemodreq\">
  58. <tr>
  59. <td class=\"tdmodreq\" width=\"3%\"><h3>ID</h3></td>
  60. <td class=\"tdmodreq\" width=\"7%\"><h3>Submitter</h3></td>
  61. <td class=\"tdmodreq\" width=\"10%\"><h3>Date</h3></td>
  62. <td class=\"tdmodreq\" width=\"10%\"><h3>Location</h3></td>
  63. <td class=\"tdmodreq\" width=\"10%\"><h3>Staff</h3></td>
  64. <td class=\"tdmodreq\" width=\"30%\"><h3>Message</h3></td>
  65. <td class=\"tdmodreq\" width=\"30%\"><h3>Comment</h3></td>
  66. </tr>
  67. </table>
  68. ";
  69. while ($row2 = mysql_fetch_array($Result2))
  70. {
  71. $ID2 = $row2["id"];
  72. $Submitter2 = $row2["submitter"];
  73. $Message2 = $row2["message"];
  74. $Date2 = $row2["date"];
  75. $Comment2 = $row2["comment"];
  76. $Location2 = $row2["location"];
  77. $Staff2 = $row2["staff"];
  78. echo "
  79. <table class=\"tablemodreq\">
  80. <tr>
  81. <td class=\"tdmodreq\" width=\"3%\"><p>$ID2</p></td>
  82. <td class=\"tdmodreq\" width=\"7%\"><p>$Submitter2</p></td>
  83. <td class=\"tdmodreq\" width=\"10%\"><p>$Date2</p></td>
  84. <td class=\"tdmodreq\" width=\"10%\"><p>$Location2</p></td>
  85. <td class=\"tdmodreq\" width=\"10%\"><p>$Staff2</p></td>
  86. <td class=\"tdmodreq\" width=\"30%\"><p>$Message2</p></td>
  87. <td class=\"tdmodreq\" width=\"30%\"><p>$Comment2</p></td>
  88. </tr>
  89. </table>
  90. ";
  91. }
  92. $Connect3 = mysql_connect("$Host","$DatabaseLoginUsername","$DatabaseLoginPassword") or die("<p class=pbad>Sorry but we where unable to connect to MySQL. Please try again later.</p>");
  93. $Result3 = @mysql_select_db("$DatabaseName",$Connect3)or die("<p class=pbad>Sorry - unable to select the database. Please try again later.</p>") ;
  94. $SQL3 = "select * from requests where status=\"closed\"";
  95. $Result3 = @mysql_query($SQL3);
  96. echo "<h2>Closed Mod Requests</h2>
  97. <table class=\"tablemodreq\">
  98. <tr>
  99. <td class=\"tdmodreq\" width=\"3%\"><h3>ID</h3></td>
  100. <td class=\"tdmodreq\" width=\"7%\"><h3>Submitter</h3></td>
  101. <td class=\"tdmodreq\" width=\"10%\"><h3>Date</h3></td>
  102. <td class=\"tdmodreq\" width=\"10%\"><h3>Location</h3></td>
  103. <td class=\"tdmodreq\" width=\"10%\"><h3>Staff</h3></td>
  104. <td class=\"tdmodreq\" width=\"30%\"><h3>Message</h3></td>
  105. <td class=\"tdmodreq\" width=\"30%\"><h3>Comment</h3></td>
  106. </tr>
  107. </table>
  108. ";
  109. while ($row3 = mysql_fetch_array($Result3))
  110. {
  111. $ID3 = $row3["id"];
  112. $Submitter3 = $row3["submitter"];
  113. $Message3 = $row3["message"];
  114. $Date3 = $row3["date"];
  115. $Status3 = $row3["status"];
  116. $Comment3 = $row3["comment"];
  117. $Location3 = $row3["location"];
  118. $Staff3 = $row3["staff"];
  119. echo "
  120. <table class=\"tablemodreq\">
  121. <tr>
  122. <td class=\"tdmodreq\" width=\"3%\"><p>$ID3</p></td>
  123. <td class=\"tdmodreq\" width=\"7%\"><p>$Submitter3</p></td>
  124. <td class=\"tdmodreq\" width=\"10%\"><p>$Date3</p></td>
  125. <td class=\"tdmodreq\" width=\"10%\"><p>$Location3</p></td>
  126. <td class=\"tdmodreq\" width=\"10%\"><p>$Staff3</p></td>
  127. <td class=\"tdmodreq\" width=\"30%\"><p>$Message3</p></td>
  128. <td class=\"tdmodreq\" width=\"30%\"><p>$Comment3</p></td>
  129. </tr>
  130. </table>
  131. ";
  132. }
  133. ?>
  134. </div>
  135. </body>
  136. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement