Posted by done on Mon 21st May 05:23 (modification of post by dk view diff)
diff | download | new post
- <?php
- include('profiler/benchmark.php');
- include('profiler/speedProfiler.php');
- $prf = new SpeedProfiler();
- $prf->profile('topdotphp');
- //require('geoip.inc.php');
- //$country = getCCfromIP($_SERVER['REMOTE_ADDR'],$go);
- //$ip = $_SERVER['REMOTE_ADDR'];
- //$link = fopen('http://api.hostip.info/country.php?ip='.$ip, 'r');
- //$country = fread($link, 4096);
- //fclose($link);
- //include('adcode.php');
- $starttime = $starttime[1] + $starttime[0];
- $title = ":: Dragon Swords II ::";
- ?>
- <?php
- echo'<html>
- <head><center><title>
- ';
- if (!$_SESSION['email'] || !$_SESSION['password']){
- error("field");
- exit;
- }
- if ($playerinfo['jailtime'] > 0){
- error("jail");
- exit;
- }
- if ($playerinfo['password'] != $_SESSION['password']){
- error("password");
- exit;
- }
- /**
- * * TRACKER CODE
- *
- * REMOVE THIS AND I WILL REMOVE YOUR HEAD
- * ...LOL
- * Mike
- */
- //$enter = '\n\r';
- //$getInfo = '';
- //$postInfo = '';
- //$sessionInfo = '';
- /*@foreach($_GET as $get => $var){
- $getInfo .= '[' . $get . '] =>' . $var . $enter;
- }*/
- // @foreach ($_POST as $post => $var){
- // $postInfo .= '[' . $post . '] =>' . $var . $enter;
- // }
- // @foreach ($_SESSION as $sess => $var){
- // $SessionInfo .= '[' . $sess . '] =>' . $var . $enter;
- // }
- // $final = $enter . 'GET' . $enter . $getInfo . $enter . $enter'POST' . $enter . $postInfo . $enter . $enter . 'Session' . $enter . $sessionInfo;
- // @mysql _unbuffered_query("INSERT INTO `tracker` (`player_id`, `ip`, `page`, `postNget`) VALUES ('" . $playerinfo['id'] . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . $_SERVER['REQUEST_URI'] . "', '" . $final . "')");
- $timestamp = mktime($tarray['hours'] - 1, $tarray['minutes'], $tarray['seconds'], $tarray['mon'], $tarray['mday'], $tarray['year']); // Main gametime
- $tillreset = mktime(-1, 0, 0, $tarray['mon'], $tarray['mday'] + 1, $tarray['year']) - 57550 - $timestamp; // Till reset timestamp
- $plaintime = date ("l dS of F Y " . $date1 . ":" . $date1b . ":s A"); // Plaintime game clock //Umm..update this to the new timestamp system sometime
- // $time = date("j\/m H:i:s");
- // $realtime = date("YzHis");
- $ccsPlayerStyle = 'styles/style' . $playerinfo[style] . '.css';
- echo"<link rel=\"stylesheet\" type=\"text/css\" href=\"$ccsPlayerStyle\" />
- </head>";
- include("totalpoints.php");
- $down = 0;
- if ($down == 1){
- $reason11 = "Back in a flash so keep checking, I promise";
- if ($playerinfo['id'] > 10){
- echo "<BODY bgcolor = 000000><link href=\"$ccsPlayerStyle\" type=text/css rel=StyleSheet><center><p><font color=red><p><b><u>GAME IS DOWN!<p></b>Reason:</u> ", $reason11 , "</font>";
- exit;
- }
- }
- ?>
- <script language="JavaScript">
- </script>
- <?
- echo "<BODY TOPMARGIN=0 LEFTMARGIN=0 bgcolor=000000>
- <table width=990 border=0 cellspacing=0 cellpadding=0>
- <tr>
- <td width=175 valign=top>
- <table style=\"BORDER-RIGHT: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid;\" width=175 border=0 cellspacing=0 cellpadding=0><tr><td>
- <img src=\"styles/$playerinfo[style]/userinfobar.gif\"><DIV id=bottommenucell>";
- $expneed = $playerinfo['exp_lvl'] - $playerinfo['exp'];
- if ($playerinfo['hp_left'] <= 0){
- $status2 = "<img src=image/dead_icons/dead1.gif alt=Dead>";
- }
- if (($playerinfo['donated'] > 0) && ($playerinfo['donated'] < 6)){
- $status2 .= "<img src=image/donator_icons/donator1.gif alt=>";
- }elseif (($playerinfo['donated'] > 5) && ($playerinfo['donated'] < 11)){
- $status2 .= "<img src=image/donator_icons/donator2.gif alt=>";
- }elseif (($playerinfo['donated'] > 10) && ($playerinfo['donated'] < 16)){
- $status2 .= "<img src=image/donator_icons/donator3.gif alt=>";
- }elseif (($playerinfo['donated'] > 15) && ($playerinfo['donated'] < 21)){
- $status2 .= "<img src=image/donator_icons/donator4.gif alt=>";
- }elseif (($playerinfo['donated'] > 20) && ($playerinfo['donated'] < 26)){
- $status2 .= "<img src=image/donator_icons/donator5.gif alt=>";
- }elseif (($playerinfo['donated'] > 25) && ($playerinfo['donated'] < 31)){
- $status2 .= "<img src=image/donator_icons/donator6.gif alt=>";
- }elseif (($playerinfo['donated'] > 30) && ($playerinfo['donated'] < 36)){
- $status2 .= "<img src=image/donator_icons/donator7.gif alt=>";
- }elseif (($playerinfo['donated'] > 35) && ($playerinfo['donated'] < 41)){
- $status2 .= "<img src=image/donator_icons/donator8.gif alt=>";
- }elseif (($playerinfo['donated'] > 40) && ($playerinfo['donated'] < 46)){
- $status2 .= "<img src=image/donator_icons/donator9.gif alt=>";
- }elseif (($playerinfo['donated'] > 45) && ($playerinfo['donated'] < 51)){
- $status2 .= "<img src=image/donator_icons/donator10.gif alt=>";
- }elseif ($playerinfo['donated'] > 50){
- $status2 .= "<img src=image/donator_icons/donator11.gif alt=>";
- }
- if ($playerinfo['status'] == "Scribe"){
- $status2 .= "<img src=image/stafficons/staff1.gif alt=Scribe>";
- }elseif ($playerinfo['status'] == "Mage"){
- $status2 .= "<img src=image/stafficons/staff5.gif alt=Mage>";
- }elseif ($playerinfo['status'] == "King"){
- $status2 .= "<img src=image/stafficons/staff2.gif alt=King>";
- }elseif ($playerinfo['status'] == "Paladin"){
- $status2 .= "<img src=image/stafficons/staff_op.gif alt=Paladin>";
- }elseif ($playerinfo['status'] == "Lord"){
- $status2 .= "<img src=image/stafficons/staff_vm.gif alt=Lord>";
- }elseif ($playerinfo['status'] == "Squire"){
- $status2 .= "<img src=image/stafficons/staff6.gif alt=Squire>";
- }
- $goldcheck = mysql_query("SELECT id FROM userdb ORDER BY ((level*50000)+(hp*100)+(apoints*level*100)+(agility*10000)+(strength*10000)) DESC LIMIT 0,3");
- $idthingy = 1;
- if ($goldchecker['id'] == $playerinfo['id']){
- $status2 .= "<img src=image/other/cup$idthingy.gif alt='Number $idthingy in rankings'>";
- }
- $idthingy++;
- }
- // NEW DATASTRAND
- $datastrand = ($playerinfo['level'] * 50000) + ($playerinfo['hp'] * 100) + ($playerinfo[apoints]*$playerinfo[level]*100) + ($playerinfo['agility'] * 10000) + ($playerinfo['strength'] * 10000);
- // Citys:
- // $cityname = black
- // Swamps = swamp
- // Caves = cave
- // Forest = forest
- // Valley = valley
- // Cyron = cyron
- // Desert = desert
- // Mistral = mistral
- // Silver Meadow = silver
- // Countryside = side
- // Battlefiels = wars
- switch ($playerinfo['city']){
- case 'side':
- $locat = "Countryside";
- $slocat = "Countryside";
- break;
- case 'silver':
- $locat = "Silver Meadow";
- $slocat = "Meadow";
- break;
- case 'black':
- $locat = $cityname;
- $slocat = "Forest";
- break;
- case 'swamps':
- $locat = "Dark Swamps";
- $slocat = "Swamps";
- break;
- case 'caves':
- $locat = "Thieves Caves";
- $slocat = "Caves";
- break;
- case 'forest':
- $locat = "Forgotten Forest";
- $slocat = "Forest";
- break;
- case 'valley':
- $locat = "Mythril Valley";
- $slocat = "Valley";
- break;
- case 'cyron':
- $locat = "Ruins of Cyron";
- $slocat = "Cyron";
- break;
- case 'desert':
- $locat = "Daishi Desert";
- $slocat = "Desert";
- break;
- case 'mistral':
- $locat = "Mistral Castle";
- $slocat = "Castle";
- break;
- case 'wars':
- $locat = "Battlefields";
- $link = "Battlefield";
- break;
- }
- if ($playerinfo['status'] == "King" && $id < 100){
- $playerinfo['username'] = "<font color=yellow>" . $playerinfo['username'] . "</font>";
- }elseif ($playerinfo['status'] == "Lord" && $id < 100){
- $playerinfo['username'] = "<font color=#FF8000>" . $playerinfo['username'] . "</font>";
- }elseif ($playerinfo['status'] == "Paladin" && $id < 100){
- $playerinfo['username'] = "<font color=#9f009f>" . $playerinfo['username'] . "</font>";
- }elseif ($playerinfo['status'] == "Mage" && $id < 100){
- $playerinfo['username'] = "<font color=#2FE800>" . $playerinfo['username'] . "</font>";
- }elseif ($playerinfo['status'] == "Squire" && $id < 100){
- $playerinfo['username'] = "<font color=#993333>" . $playerinfo['username'] . "</font>";
- }elseif ($playerinfo['status'] == "Scribe" && $id < 100){
- $playerinfo['username'] = "<font color=red>" . $playerinfo['username'] . "</font>";
- }
- function hbar($percent){
- $percentleft = 100 - $percent;
- echo "<table width=\"127\" cellspacing=\"0\" style=\"border-width: 1px; border-color: #000000; height: 8px;\"><tr>";
- if ($percent > 0){
- }
- if ($percentleft > 0){
- }
- echo "</tr></table>";
- }
- function ebar($percent){
- $percentleft = 100 - $percent;
- echo "<table width=\"127\" cellspacing=\"0\" style=\"border-width: 1px; border-color: #000000; height: 8px; border-style: double;\"><tr>";
- if ($percent > 0){
- }
- if ($percentleft > 0){
- }
- echo "</tr></table>";
- }
- $hpleft1 = $playerinfo['hp_left'];
- $hp_1 = $playerinfo['hp'];
- $hpness = ($hpleft1 / $hp_1 * 100);
- $expgot = $playerinfo['exp'];
- $exptolevel = $playerinfo['exp_lvl'];
- $expness = @($expgot / $exptolevel * 100);
- $expneededreal = $playerinfo['exp_lvl'] - $playerinfo['exp'];
- echo "<u><b><center><a href=view.php?id=", $playerinfo['id'], ">", $playerinfo['username'] , "</a></center></b></u><center>", $status2 , "</center>
- <br><b>Level:</b> ", $qlvl , "<br><br>
- <b>HP:</b> ", $hp_left , "/", $hp , "<br>";
- //hbar($hpness);
- $hpbar1 = 150 - $hpbar;
- echo "<table><tr>";
- echo "<td><img src=image/poll2.gif height=6 width=$hpbar>";
- echo "<img src=image/barr.gif height=6 width=$hpbar1></td>";
- echo "</tr></table>";
- $expbar1 = 150 - $expbar;
- echo "<table><tr>";
- echo "<td><img src=image/poll2.gif height=6 width=$expbar>";
- echo "<img src=image/barr.gif height=6 width=$expbar1></td>";
- echo "</tr></table>";
- echo '
- <br><b>Energy:</b> ' . $qen . '<br />
- <b>PK Energy:</b> ' . $pvp . '<br />
- <b>Mining Operations:</b> ' . $mops . '<br /><br />
- <b>Strength:</b> ' . $playerinfo['strength'] . '<br />
- <b>Agility:</b> ' . $playerinfo['agility'] . '<br /><br>
- <b>Gold:</b> <font color=gold>' . $qgold2 . '</font><br>
- <b>Vault:</b> <font color=gold>' . $qbank . '</font><br>
- <b>Mythril:</b> <font color=CC99FF>' . $playerinfo['hacks'] . '</font><br>
- <b>Nectar:</b> <font color=yellow>' . $playerinfo['nectar'] . '</font><p>
- <center><i>' . $locat . '</font></i><p>
- <u><b>Total Points</font></b></u><br>' . $datastrand . '</font></center>
- <span class="style1">
- </span></div></div><img src=styles/' .$playerinfo[style] . '/mainmenubar.gif><br />
- <DIV id=topmenucell>';
- $timecheck = mysql_query("SELECT `time` FROM `usernews` WHERE `user` = '" . $playerinfo['id'] . "' AND `display` = '0' ORDER BY `id` DESC LIMIT 0,1");
- if ($playerinfo['new_warrior'] == 'N'){
- if ($timecheck['time'] > $playerinfo['lcheck']){
- echo "<img src=\"bullet.gif\"> <a href=main.php class=\"new\"><b><font color=green>Your Hut</font></b></a> (<B>NEW!</B>)<br>";
- }else{
- echo "<img src=\"bullet.gif\"> <a href=main.php><b><font color=green>Your Hut</font></b></a><br>";
- }
- }
- //echo "$country<br>";
- if ($playerinfo[id] == 7839){
- $country = "GB";
- }
- echo "<img src=\"bullet2.gif\"> <a href=freeenergy1.php><font color=red><b>Get your Offer Points!</b></font></a><br />";
- if ($playerinfo['status'] == "King" || $playerinfo['status'] == "Lord" || $playerinfo['status'] == "Scribe" || $playerinfo['status'] == "Mage"){
- echo"<img src=\"bullet.gif\"> <a href=admin.php>Management</a><br>";
- }elseif ($playerinfo['status'] == "Knight"){
- echo"<img src=\"bullet.gif\"> <a href=moderating.php>Moderating</a><br>";
- }elseif ($playerinfo['status'] == "Paladin"){
- echo"<img src=\"bullet.gif\"> <a href=operator.php>Operations</a><br>";
- }elseif ($playerinfo['status'] == "Squire"){
- echo"<img src=\"bullet.gif\"> <a href=chatm.php>Monitoring</a><br>";
- }
- echo "<img src=\"bullet.gif\"> <a href=account.php>My Account</a><br />";
- if ($playerinfo['city'] != "black"){
- echo"<img src=\"bullet.gif\"> <a href=explore.php>Back to $slocat</a><br>
- <img src=\"bullet.gif\"> <a href=gopt.php>Game Options</a><br>";
- }elseif ($playerinfo['city'] == "black"){
- <img src=\"bullet.gif\"> <a href=auctions.php>Auction House</a><br />
- <img src=\"bullet.gif\"> <a href=agency.php><font color=#0066CC>Journeyman's Shack</font></a><br />
- <img src=\"bullet.gif\"> <a href=arena.php>Battle Arena</a><br />
- <img src=\"bullet.gif\"> <a href=farmland.php>Farm Field</a><br />
- <img src=\"bullet.gif\"> <a href=vault.php>Players Vault</a><br />";
- $cost = $playerinfo['hp'] - $playerinfo['hp_left'];
- $cost = $cost / 3;
- if ($playerinfo['hp_left'] < $playerinfo['hp']){
- echo "<img src=\"bullet.gif\"> <a href=hospital.php><font color=crimson>Health Fountain</font></a> [", $cost , "]<br />";
- }else{
- echo "<img src=\"bullet.gif\"> <a href=hospital.php>Health Fountain</a><br />";
- }
- }
- if ($playerinfo['clan'] != 0){
- echo "<img src=\"bullet.gif\"> <a href=clans2.php?action=myclan>Visit My Clan</a><br>";
- }
- echo"
- <img src=\"bullet.gif\"> <a href=messageboard.php>Message Board</a><br>
- <img src=\"bullet.gif\"> <a href=help.php><font color=yellow>Help Centre</font></a><br>
- <img src=\"bullet.gif\"> <a href=ranking.php>Hall of Fame</a><br>
- <img src=\"bullet.gif\"> <a href=players.php>Residential Scroll</a><br>
- <img src=\"bullet.gif\"> <a href=donatorinfo.php>Scroll of Noblemen</a><br>
- <img src=\"bullet2.gif\"> <a href=howtodonate.php><font color=red><b>Support Us</b></font></a><br>
- <img src=\"bullet.gif\"> <a href=logout.php>Logout</a><br></div>
- ";
- if ($playerinfo['ddays'] > "0"){
- ?>
- <center><script language="JavaScript">
- <!--document.write('<a href="<?//= $click['url'] ?>" target="_blank"><img src="<?//= $img['url'] ?>" border="0" alt="Games Banner Network" width="0" height="0"></a>');
- -->
- </script></center><br><center><script language="JavaScript">
- <!--
- // -->
- </script></center>
- <?
- }elseif ($playerinfo['ddays'] <= "0"){
- echo "<img src=styles/$playerinfo[style]/advertisement.gif><br />
- <DIV id=topmenucell>";
- echo '<center>
- <br />
- ';
- //this 1st below was already commented, further down wasnt - do not delete this
- ?>
- <!---<IFRAME SRC="http://www.flash-gamerz.com/gbnetworkcode.php" width=100 height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME> <br><center>--->
- <script language="JavaScript">
- <!--
- // -->
- </script><br><br>
- <IFRAME SRC="http://www.flash-gamerz.com/moregamerscode.php" width=0 height=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
- <!-- GamerFlow.com code begin -->
- <IFRAME SRC="http://www.flash-gamerz.com/adcode12.php" width=0 height=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
- <IFRAME SRC="http://www.flash-gamerz.com/gbncode.php" width=0 height=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
- </center><br>
- <?
- if ($num4 < "200") {
- ?>
- <!--<script language=JavaScript>
- document.write('<iframe src="<?=$click['url'] ?>" height=0 width=0></iframe>');
- </script>-->
- <?
- }
- }
- echo "<p></table>";
- echo "<td width=\"640\" valign=top><center><img src=\"styles/$playerinfo[style]/contentbar.gif\"><table width=\"640\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><DIV id=bottommenucell>";
- if ($playerinfo['vote1'] == 1 && $playerinfo['vote2'] == 1 && $playerinfo['vote3'] == 1 && $playerinfo['vote4'] == 1 && $playerinfo['vote5'] == 1 && $playerinfo['vote6'] == 1 && $playerinfo['vote7'] == 1 && $playerinfo['vote8'] == 1 && $playerinfo['vote9'] == 1 && $playerinfo['vote10'] == 1 && $playerinfo['vote11'] == 1){
- echo "<br>";
- }else{
- echo "<br><center>";
- if ($playerinfo['ddays'] <= 0){
- $vamount = 5;
- }elseif ($playerinfo['ddays'] > 0){
- $vamount = 10;
- }
- echo "<font color=red><b><i>You will recieve ", $vamount , " energy for voting at each of the votesites below: </i><br>";
- // if ($playerinfo['vote1'] == 0){
- // echo "- <a href=voter.php?site=1 target=_blank> Gamesites 200</a> | ";
- // }
- echo "|";
- if ($playerinfo['vote1'] == 0){
- echo "<script language=JavaScript>
- document.write('<a href=voter.php?site=1&rand='+rand+' target=_blank>GBFun</a>');
- </script>|";
- }
- if ($playerinfo['vote2'] == 0){
- echo "<a href=voter.php?site=2 target=_blank>MMORPG50</a>|";
- }
- if ($playerinfo['vote3'] == 0){
- echo "<a href=voter.php?site=3 target=_blank>GT100</a>|";
- }
- if ($playerinfo['vote4'] == 0){
- echo "<a href=voter.php?site=4 target=_blank>TopRPG</a>|";
- }
- if ($playerinfo['vote5'] == 0){
- echo "<a href=voter.php?site=5 target=_blank>AWG</a>|";
- }
- if ($playerinfo['vote6'] == 0){
- echo "<a href=voter.php?site=6 target=_blank>XT100</a>|";
- }
- if ($playerinfo['vote7'] == 0){
- echo "<a href=voter.php?site=7 target=_blank>OG</a>|";
- }
- if ($playerinfo['vote8'] == 0){
- echo "<a href=voter.php?site=8 target=_blank>DoG</a>|";
- }
- if ($playerinfo['vote9'] == 0){
- echo "<a href=voter.php?site=9 target=_blank>MMORPGT</a>|";
- }
- if ($playerinfo['vote10'] == 0){
- echo "<a href=voter.php?site=10 target=_blank>WoG</a>|";
- }
- if ($playerinfo['vote11'] == 0){
- echo "<a href=voter.php?site=11 target=_blank>FG</a>|";
- }
- echo "<br>( CLICKING AND VOTING AT ALL OF THESE WILL REMOVE THIS FROM HERE! )</font></b></center><br><br /><hr>";
- }
- $prf->profile('filedotphp');
- ?>
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.