Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Made by C4D3R - c4d3r@hotmail.com
- /**************
- Configs
- ***************/
- $host = '178.63.58.120';
- $user = 'status';
- $pass = '123';
- $world_db = ''; //ur world database name
- $CharacterDatabase = ''; //char database
- $WoWconn = mysql_connect($host, $user, $pass) or die('Connection failed: ' . mysql_error());
- mysql_select_db($CharacterDatabase, $WoWconn) or die('Select DB failed: ' . mysql_error());
- $queryH = "SELECT * FROM `characters` WHERE `race` IN (2,5,6,8,10) AND `online`='1'";
- $queryA= "SELECT * FROM `characters` WHERE `race` IN (1,3,4,7,11) AND `online`='1'";
- $resultH= mysql_query($queryH, $WoWconn);
- $horde = mysql_num_rows($resultH);
- $resultA= mysql_query($queryA, $WoWconn);
- $ally = mysql_num_rows($resultA);
- $total = ($resultH + $resultA);
- echo'
- <style>
- * {margin:0;padding:0;}
- section, {display: block;}
- *.blue2 {color:#00b4ff;}
- *.green2 {color:#d1ff60;}
- *.clear {clear:both;}
- *.underlined {text-decoration:underline;}
- *.green {color:#1eff00;}
- *.epic {color:#a335ee;}
- *.legendary {color:#dc8004;}
- *.blue {color:#0070dd;}
- *.white {color:#FFF;}
- *.gray {color:#9d9d9d;}
- *.artifact {color:#ff0000;}
- *.heirloom {color:#e5cc80;}
- *.bold {font-weight:bold;}
- *.noul {text-decoration:none;}
- :focus {outline:0;border:0;}
- h4 {font-size:14px;font-weight:bold;}
- section#sidebar {width:293px;float:right;}
- section.module {margin-bottom:10px;}
- section.module, section.mod-title, section.mod-bottom, section.mod-content {width:150px;}
- section.mod-title, section.mod-bottom {background:url(../_images/side-top-bot.png) no-repeat;}
- section.mod-content {background:url(../_images/side-con.png) repeat-y;}
- section.mod-content p {padding:10px;color:#FFF;font-size:11px;letter-spacing:-1px;}
- section.mod-title {background-position:top;height:0px;}
- 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;}
- section.mod-bottom {background-position:bottom;height:3px;}
- section.realm {width:100%;margin-bottom:15px;}
- 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;}
- section.realmStats {float:left;text-align:center;width:165px;margin:0 auto;}
- section.realmStats h3 {font-family:"Futura", "Lucida Grande", "Lucida Sans Unicode", "Arial";font-size:18px;margin-bottom:8px;}
- section.realmStats p {color:#FFF;text-transform:uppercase;font-size:10px;padding:0;letter-spacing:0.5px;}
- p.down {margin-bottom:15px;}
- section.realmStats section.bar {width:100%;height:5px;}
- section.realmStats section.bar section.counter {background:#c9ff5a;height:5px;}
- 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;}
- </style>
- <html>
- <body>
- <section class = "module">
- <section class = "mod-title">
- </section>
- <section class = "mod-content">
- <p style="text-align:center">
- <section class="realm" style="margin-bottom:10px;">
- <section class="realmAlly">'.$ally.'</section>
- <section class="realmHorde">'.$horde.'</section>
- <center>'.$total.'</center>
- <section class="realmStats" style="width:;margin:0;">
- </section>
- <div class="clear"></div>
- </section>
- </body>
- </html>
- ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement