Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1.  
  2. <?php
  3. // Made by C4D3R - c4d3r@hotmail.com
  4.  
  5. /**************
  6. Configs
  7. ***************/
  8. $host = '178.63.58.120';
  9. $user = 'status';
  10. $pass = '123';
  11. $world_db = ''; //ur world database name
  12. $CharacterDatabase = ''; //char database
  13.  
  14. $WoWconn = mysql_connect($host, $user, $pass) or die('Connection failed: ' . mysql_error());
  15. mysql_select_db($CharacterDatabase, $WoWconn) or die('Select DB failed: ' . mysql_error());
  16.  
  17.  
  18. $queryH = "SELECT * FROM `characters` WHERE `race` IN (2,5,6,8,10) AND `online`='1'";
  19. $queryA= "SELECT * FROM `characters` WHERE `race` IN (1,3,4,7,11) AND `online`='1'";
  20.  
  21. $resultH= mysql_query($queryH, $WoWconn);
  22. $horde = mysql_num_rows($resultH);
  23.  
  24. $resultA= mysql_query($queryA, $WoWconn);
  25. $ally = mysql_num_rows($resultA);
  26. $total = ($resultH + $resultA);
  27.  
  28. echo'
  29. <style>
  30. * {margin:0;padding:0;}
  31.  
  32. section, {display: block;}
  33. *.blue2 {color:#00b4ff;}
  34. *.green2 {color:#d1ff60;}
  35. *.clear {clear:both;}
  36. *.underlined {text-decoration:underline;}
  37. *.green {color:#1eff00;}
  38. *.epic {color:#a335ee;}
  39. *.legendary {color:#dc8004;}
  40. *.blue {color:#0070dd;}
  41. *.white {color:#FFF;}
  42. *.gray {color:#9d9d9d;}
  43. *.artifact {color:#ff0000;}
  44. *.heirloom {color:#e5cc80;}
  45. *.bold {font-weight:bold;}
  46. *.noul {text-decoration:none;}
  47. :focus {outline:0;border:0;}
  48. h4 {font-size:14px;font-weight:bold;}
  49.  
  50.  
  51. section#sidebar {width:293px;float:right;}
  52. section.module {margin-bottom:10px;}
  53. section.module, section.mod-title, section.mod-bottom, section.mod-content {width:150px;}
  54. section.mod-title, section.mod-bottom {background:url(../_images/side-top-bot.png) no-repeat;}
  55. section.mod-content {background:url(../_images/side-con.png) repeat-y;}
  56. section.mod-content p {padding:10px;color:#FFF;font-size:11px;letter-spacing:-1px;}
  57. section.mod-title {background-position:top;height:0px;}
  58. section.mod-title p {font-family:Futura;color:#d1ff60;letter-spacing:1px;font-size:16px;text-shadow:1px 1px 0px #000;padding-top:5px;padding-left:10px;}
  59. section.mod-bottom {background-position:bottom;height:3px;}
  60.  
  61.  
  62. section.realm {width:100%;margin-bottom:15px;}
  63. section.realmAlly {float:left;width:53px;background:url(alliance-flag.png) no-repeat;text-align:center;margin-left:10px;color:#00a8ff;font-size:11px;padding-top:83px;}
  64. section.realmStats {float:left;text-align:center;width:165px;margin:0 auto;}
  65. section.realmStats h3 {font-family:"Futura", "Lucida Grande", "Lucida Sans Unicode", "Arial";font-size:18px;margin-bottom:8px;}
  66. section.realmStats p {color:#FFF;text-transform:uppercase;font-size:10px;padding:0;letter-spacing:0.5px;}
  67. p.down {margin-bottom:15px;}
  68. section.realmStats section.bar {width:100%;height:5px;}
  69. section.realmStats section.bar section.counter {background:#c9ff5a;height:5px;}
  70. section.realmHorde {float:right;width:53px;background:url(horde-flag.png) no-repeat;text-align:center;margin-right:10px;color:#d93232;font-size:11px;padding-top:83px;}
  71.  
  72. </style>
  73. <html>
  74. <body>
  75. <section class = "module">
  76. <section class = "mod-title">
  77. </section>
  78. <section class = "mod-content">
  79. <p style="text-align:center">
  80. <section class="realm" style="margin-bottom:10px;">
  81. <section class="realmAlly">'.$ally.'</section>
  82. <section class="realmHorde">'.$horde.'</section>
  83. <center>'.$total.'</center>
  84. <section class="realmStats" style="width:;margin:0;">
  85. </section>
  86. <div class="clear"></div>
  87. </section>
  88. </body>
  89. </html>
  90. ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement