Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <!
  2.  
  3. what do you want omg
  4.  
  5. >
  6.  
  7.  
  8. <head>
  9. <!--
  10. Relatively unrelated HTML stuff, rest is outside head
  11. -->
  12. <link type="text/css" href="main.css" rel="stylesheet" />
  13.  
  14. <title>//Index\\</title>
  15. </head>
  16.  
  17. <?php
  18. ////////////////////CONFIG START\\\\\\\\\\\\\\\\\\\\
  19. $sqlprefix = MySQL;
  20. $host='localhost';
  21. $user='root';
  22. $pass='';
  23. $con = mysql_connect($host, $user, $pass);
  24. /////////////////////CONFIG END\\\\\\\\\\\\\\\\\\\\\
  25.  
  26. if( !$con )
  27. echo "
  28. <div id='content'
  29. <div id='warning'>
  30. Error: " . mysql_error() . "
  31. </div>
  32. </div>";
  33. ;
  34.  
  35. if( $con )
  36.  
  37. mysql_selectdb( "site", $con );
  38.  
  39. $ipcheck = mysql_query( "SELECT ip, name FROM admins" );
  40.  
  41. while($row = mysql_fetch_array($ipcheck))
  42. {
  43. if($row = $_SERVER['REMOTE_ADDR'])
  44.  
  45. $result = mysql_query( "SELECT * FROM list" );
  46.  
  47. if( $result )
  48. $status = Working;
  49. ;
  50.  
  51. if($result)
  52. echo "
  53. <div id='content'>
  54. <p id='information'>
  55. [" . $sqlprefix . "] Status: " . $status . "!
  56. </p>
  57. </div>
  58. <br>
  59. <div id='content'>
  60. <p id='information'>
  61. <table>
  62.  
  63. <tr>
  64. <td>
  65. Name
  66. </td>
  67.  
  68. <td>
  69. test
  70. </td>
  71. </tr>
  72.  
  73. </table>
  74. </p>
  75. </div>";
  76. } ;
  77. ;
  78. ;
  79. ;
  80. ;
  81.  
  82. //Here comes the rows!
  83. if( $con )
  84.  
  85. $grab = mysql_query( "SELECT * FROM list" );
  86.  
  87. while($row = mysql_fetch_array($grab))
  88. {
  89. //Name things\\
  90. $gname = $row['name'];
  91.  
  92. //Echo start\\
  93. echo "<br><center>
  94. <table>
  95.  
  96. <tr>
  97.  
  98. <td>
  99. <b>Name</b>
  100. </td>
  101.  
  102. <td>
  103. <b>" . $row['name'] . "</b>
  104. </td>
  105.  
  106. </tr>
  107.  
  108. <tr>
  109.  
  110. <td>
  111. <b>Status</b>
  112. </td>
  113.  
  114. <td>
  115. <b>" . $row['status'] . "</b>
  116. </td>
  117.  
  118. </tr>
  119.  
  120. <tr>
  121.  
  122. <td>
  123. <b>Country</b>
  124. </td>
  125.  
  126. <td>
  127. <img src='images/flags/" . $row['country'] . ".png>
  128. </td>
  129.  
  130. </tr>
  131.  
  132. </table></center>";
  133. //Echo end\\
  134. }
  135. ;
  136.  
  137. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement