Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 43.71 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <head>
  5.  
  6.         <style type="text/css">
  7.      
  8.  
  9.        tr .odd {
  10.        background: url(images/odd.png) repeat-y left top;
  11.        }
  12.        tr .even {
  13.        background: url(images/even.png) repeat-y left top;
  14.        }
  15.        tr .even:hover, tr .odd:hover {
  16.     background: none repeat scroll 0 0 #54C2F0;
  17.     border-bottom-right-radius: 7px;
  18.     border-right: 1px solid transparent;
  19.     box-shadow: 1px 2px 2px #999999;
  20.     cursor: pointer;
  21.        }
  22.        tr .odds {
  23.        background: url(images/odd.png) repeat-y left top;
  24.        }
  25.        tr .evens {
  26.        background: url(images/even.png) repeat-y left top;
  27.        }
  28.        tr .evens:hover, tr .odds:hover{
  29.     background: none repeat scroll 0 0 #54C2F0;
  30.     border-bottom-right-radius: 7px;
  31.     border-right: 1px solid transparent;
  32.     box-shadow: 1px 2px 2px #999999;
  33.     cursor: pointer;
  34. }
  35.        input {
  36.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  37.        background-color: #FFFFFF;
  38.        -moz-border-radius: 7px;
  39.        -webkit-border-radius: 5px;
  40.        border:1px solid #000000;
  41.        }
  42.        input.nostyle {
  43.        border:0px;
  44.        }
  45. #top_header-wrap {
  46.     position: fixed;
  47.     top: 0;
  48.     left: 0;
  49.     width: 100%;   
  50. }
  51.  
  52. #hederimage {
  53.     height: 145px;
  54.     background: url( ../images/login_images/blcbannerlogin3.png) no-repeat center #333333;
  55.     valign: center;
  56. }
  57.  
  58. #headeroverlay {
  59.     width: 85%;
  60.     margin: 0 auto;
  61.     position: relative;
  62. }
  63.  
  64. #top_header h1 {
  65.     color: #beffbf;
  66.     text-align: right;
  67.     width: 290px;
  68.     margin: 0;
  69.     position: transparent;
  70.     left: 0;
  71.     top: 20px;
  72. }
  73.  
  74. #top_header h1 em{
  75.     color: #90b874;
  76.     font-size: small;
  77.     display: block;
  78. }
  79.  
  80. #top_header ul {
  81.     margin: 0;
  82.     padding: 0;
  83.     list-style: none;
  84.     position: absolute;
  85.     top: 8px;
  86.     right: 0;
  87. }
  88.  
  89. #top_header ul li {
  90.     float: left;
  91. }
  92.  
  93. #top_header ul li a{
  94.     color: #90b874;
  95.     font-weight: bold;
  96.     font-size: 1.4em;
  97.     text-decoration: none;
  98. }
  99.  
  100. #top_header ul li a:hover {
  101.     color: #beffbf;
  102. }
  103.        main {
  104.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color:#FFFFFF ;
  105.        font-weight: 800;
  106.        text-shadow: #363636 0px 0px 4px;
  107.        }
  108.  
  109. .crime_result {
  110.     border:1px solid #000000;
  111.     border-radius:5px;
  112.     background-color:#FFFFFF;
  113.     font-weight:bold;
  114. }
  115. .crime_stats {
  116.     border:1px solid #000000;
  117.     border-radius:5px;
  118.     color:#999999;
  119.     background-color:#555555;
  120. }
  121. #crimelink:hover{
  122.     background-color:#888888;
  123.     color:#222222;
  124.     cursor:pointer;
  125. }
  126.        #tooltip {position:absolute;
  127.        font-size:12px;
  128.        z-index: 99999999;
  129.        min-width: 50px;
  130.        text-shadow: none !important;
  131.        background: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#262626));
  132.        background: -moz-linear-gradient(top,  #333333,  #262626);
  133.        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4E4E4E', endColorstr='#262626');
  134.        border: 1px solid #3A3A3A;
  135.        -moz-border-radius: 5px;
  136.        -webkit-border-radius: 5px;
  137.        border-radius: 5px;
  138.        box-shadow: 0px 0px 5px #000000;
  139.        text-align:center;
  140.        padding-left: 10px;
  141.        padding-right: 10px;
  142.        }
  143.        #tooltip .tipHeader {
  144.        height:8px;
  145.        color:#ffffff;
  146.        font-weight:bold;
  147.        padding-bottom:8px;
  148.        background:none;
  149.        }
  150.        #tooltip .tipBody {
  151.        background: #000000;
  152.        padding:5px;
  153.        }
  154.  
  155.        #tooltip .tipFooter {
  156.        height:8px;
  157.        background:none;
  158.        }
  159.     .stats-bar-fill {
  160.     height: 6px;
  161.     }
  162.     .clock_body {
  163.     background: url("../images/crbar.png") repeat scroll 0 0 transparent;
  164.     border: 1px solid #F1EFE1;
  165.     border-radius: 10px 10px 10px 10px;
  166.     color: #000000;
  167.     cursor: default;
  168.     text-align: center;
  169.     padding-left:5px;
  170.     padding-right:5px;
  171.     font-weight:bold;
  172.     text-align:center;
  173.     font-size:11px;
  174.     width: 55px;
  175. }
  176. #item_wrapper{
  177.     border:1px solid #000000;
  178.     text-align:center;
  179.     cursor:pointer;
  180.     }
  181. #item_wrapper:hover{
  182.     background-color:#AABBCC;
  183.     }
  184. .item_links{
  185.     background-color:#F5FFFA;
  186.     font-weight:bold;
  187.     width:100%;
  188. }
  189.        *html #tooltip .tipHeader {margin-bottom:-6px;}
  190.          </style>
  191. <style>     #all > tr {
  192.             float: left; width: 200px;
  193.             padding: 0 10px 0 0;
  194.         }
  195.         #all .turf_header {
  196.             text-decoration: none;
  197.             display: block;
  198.             width:100%;
  199.             border-radius: 20px;
  200.             background:green;
  201.             color: white;
  202.             text-align: center;
  203.             margin: 0 0 5px 0;
  204.             }
  205.         #all a {
  206.             text-decoration: none;
  207.             display: block;
  208.             padding: 10px;
  209.             color: white;
  210.             text-align: center;
  211.             margin: 0 0 5px 0;
  212.             -webkit-transition: all 0.2s ease;
  213.             -moz-transition: all 0.2s ease;
  214.             -o-transition: all 0.2s ease;
  215.         }
  216.         #all:hover a {
  217.             opacity: 0.2;
  218.         }
  219.         #all:hover tr:hover a {
  220.             opacity: 0.5;
  221.         }
  222.         #all:hover tr:hover a:hover {
  223.             opacity: 1;
  224.         }</style>  
  225.  <link href="/css/banner.css" media="all" rel="stylesheet" type="text/css">
  226.  <link href='http://bravelandcity.com/css/newcss.css' rel='stylesheet' type='text/css'/>
  227. <link REL="SHORTCUT ICON" HREF="blc_favicon.ico ">
  228.          <title>BraveLand City</title>
  229.           <link type="text/css" rel="stylesheet" media="all" href="../css/chat.css" />
  230.        <link type="text/css" rel="stylesheet" href="css/popup.css" />
  231.      <link type="text/css" rel="stylesheet" href="css/profiles.css" />
  232.      <link rel="stylesheet" type="text/css" href="css/incrementing.css" />
  233.          <link type="text/css" rel="stylesheet" href="css/main_chat.css" />
  234.           <link type="text/css" rel="stylesheet" href="css/style.css" />
  235.             <link href="/css/lolno.css" media="all" rel="stylesheet" type="text/css">
  236.          
  237.           <link href="/css/banner.css" media="all" rel="stylesheet" type="text/css">
  238.          <link href="/css/dock.css" rel="stylesheet" type="text/css" />
  239.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  240.          <script type="text/javascript" src="../js/jquery.js"></script>
  241.          <script type="text/javascript" src="../js/incrementing.js"></script>
  242.          <script src="../js/jquery-1.4.2.js" type="text/javascript"></script>
  243.          <script type="text/javascript" src="../js/dock.js"></script>
  244.          <script src="../js/popups.js" type="text/javascript"></script>
  245.  
  246. <script type = 'text/javascript'>
  247.         var timeoutId;
  248.         $(document).ready(function() {
  249.         $('[rel=tooltip]').mouseover(function(e) {
  250.           var tip = $(this).attr('title');
  251.           var tiptitle = $(this).attr('id');
  252.           $(this).attr('title','id','');
  253.           $(this).css('cursor','pointer');
  254.           $(this).append('<div id="tooltip"><div class="tipHeader">' + tiptitle + '</div><div class="tipBody">' + tip + '</div><div class="tipFooter"></div></div>');
  255.           }).mouseout(function() {
  256.           $(this).attr('title',$('.tipBody').html(),'id');
  257.           $(this).children('div#tooltip').remove();
  258.            });
  259.         });
  260.          </script>
  261. <script type="text/javascript">
  262.    
  263.     $(document).ready(
  264.         function()
  265.         {
  266.             $('#dock').Fisheye(
  267.                 {
  268.                     maxWidth: 50,
  269.                     items: 'a',
  270.                     itemsText: 'span',
  271.                     container: '.dock-container',
  272.                     itemWidth: 40,
  273.                     proximity: 90,
  274.                     halign : 'center'
  275.                 }
  276.             )
  277.         }
  278.     );
  279.  
  280. </script>
  281. <script language="javascript" type="text/javascript">
  282.  
  283.     var timeOut = new Array();
  284.     function postFormAjax(formname, url, number)
  285.     {
  286.        var xmlhttp;
  287.        if (window.XMLHttpRequest)
  288.        {
  289.               xmlhttp=new XMLHttpRequest();
  290.        }
  291.        else
  292.        {
  293.           xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  294.        }
  295.     if(xmlhttp)
  296.     {
  297.     var fields = new Array();
  298.     if(formname)
  299.     {
  300.      var ajax = formname;
  301.     }
  302.     for(var x = 0; x < eval("document."+ajax+".elements.length"); x++)
  303.     {
  304.      eval("fields.push(document."+ajax+".elements[x].name+'='+document."+ajax+".elements[x].value)");
  305.  
  306.     }
  307.     var sendf = fields.join('&');
  308.     xmlhttp.open("POST", url, true);
  309.     xmlhttp.onreadystatechange = function()
  310.     {
  311.       if(xmlhttp.readyState == 4)
  312.       {
  313.         if(xmlhttp.status == 200)
  314.         {
  315.               var elemn = "actionstatus" + number;
  316.               document.getElementById(elemn).innerHTML = '';
  317.               document.getElementById(elemn).innerHTML = xmlhttp.responseText;
  318.         }
  319.       }
  320.     }
  321.     xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  322.     xmlhttp.send(sendf);
  323.    }
  324.   }
  325.  
  326.    function loadNotes() {
  327.    var xmlhttp;
  328.    if(window.XMLHttpRequest) {
  329.    xmlhttp = new XMLHttpRequest();
  330.    }
  331.    else
  332.       {
  333.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  334.       }
  335.       xmlhttp.onreadystatechange=function()
  336.       {
  337.       if(xmlhttp.readyState==4) {
  338.       document.getElementById("shownotes").innerHTML = xmlhttp.responseText;
  339.       }
  340.     }
  341.     xmlhttp.open("GET", "staffnotes.php?noteLoader=true", true);
  342.     xmlhttp.send(null);
  343.     }
  344.  
  345.    function loadBar(type, url) {
  346.    var xmlhttp;
  347.    if(window.XMLHttpRequest) {
  348.    xmlhttp = new XMLHttpRequest();
  349.    }
  350.    else
  351.       {
  352.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  353.       }
  354.       xmlhttp.onreadystatechange=function()
  355.       {
  356.       if(xmlhttp.readyState==4) {
  357.       var elemnt = "BAR" + type;
  358.       document.getElementById(elemnt).innerHTML = xmlhttp.responseText;
  359.       }
  360.     }
  361.     xmlhttp.open("GET", url, true);
  362.     xmlhttp.send(null);
  363.     }
  364.  
  365.  
  366.    function resetBar(elem) {
  367.    document.getElementById(elem).innerHTML = '';
  368.    }
  369.  
  370.  
  371.    function startChat(who) {
  372.    var xmlhttp;
  373.    if(window.XMLHttpRequest) {
  374.    xmlhttp = new XMLHttpRequest();
  375.    }
  376.    else
  377.       {
  378.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  379.       }
  380.       xmlhttp.onreadystatechange=function()
  381.       {
  382.       if(xmlhttp.readyState==4) {
  383.       loadBar('openchats', 'bar.php?load=chats');
  384.       }
  385.     }
  386.     var url = "bar.php?load=start&id=" + who;
  387.     xmlhttp.open("GET", url, true);
  388.     xmlhttp.send(null);
  389.     }
  390.  
  391. // run the function below once the DOM(Document Object Model) is ready
  392. $(document).ready(function() {
  393.     // trigger the function when clicking on an assigned element
  394.     $(".toggleAd").click(function () {
  395.         // check the visibility of the next element in the DOM
  396.         if ($(this).next().is(":hidden")) {
  397.             $(this).next().slideDown("medium"); // slide it down
  398.         } else {
  399.             $(this).next().slideUp("medium"); // hide it
  400.         }
  401.     });
  402. });
  403. $(document).ready(function() {
  404.     // trigger the function when clicking on an assigned element
  405.     $(".toggleSec").click(function () {
  406.         // check the visibility of the next element in the DOM
  407.         if ($(this).next().is(":hidden")) {
  408.             $(this).next().slideDown("medium"); // slide it down
  409.         } else {
  410.             $(this).next().slideUp("medium"); // hide it
  411.         }
  412.     });
  413. });
  414. $(document).ready(function() {
  415.     // trigger the function when clicking on an assigned element
  416.     $(".toggleMod").click(function () {
  417.         // check the visibility of the next element in the DOM
  418.         if ($(this).next().is(":hidden")) {
  419.             $(this).next().slideDown("medium"); // slide it down
  420.         } else {
  421.             $(this).next().slideUp("medium"); // hide it
  422.         }
  423.     });
  424. });
  425. $(document).ready(function() {
  426.     // trigger the function when clicking on an assigned element
  427.     $(".toggleHelp").click(function () {
  428.         // check the visibility of the next element in the DOM
  429.         if ($(this).next().is(":hidden")) {
  430.             $(this).next().slideDown("medium"); // slide it down
  431.         } else {
  432.             $(this).next().slideUp("medium"); // hide it
  433.         }
  434.     });
  435. });
  436. $(document).ready(function() {
  437.     // trigger the function when clicking on an assigned element
  438.     $(".toggleSnote").click(function () {
  439.         // check the visibility of the next element in the DOM
  440.         if ($(this).next().is(":hidden")) {
  441.             $(this).next().slideDown("medium"); // slide it down
  442.         } else {
  443.             $(this).next().hide(); // hide it
  444.         }
  445.     });
  446. });
  447. $(document).ready(function() {
  448.     // trigger the function when clicking on an assigned element
  449.     $("div#NSbutton").click(function () {
  450.         // check the visibility of the next element in the DOM
  451.         $(this).hide();
  452.     });
  453. });
  454.  
  455.  
  456.                  function EnterSub(e, id)
  457.                  {
  458.                         var key = (e.keyCode ? e.keyCode : e.which);
  459.                         if(key == 13) {
  460.                            var clicker = 'post' + id;
  461.                        document.getElementById(clicker).click();
  462.                     }
  463.                  }
  464. function closeMainChatBox(chatboxtitle,chatboxno) {
  465.     $('#chatbox_'+chatboxtitle).css('display','none');
  466.         loadBar('window'+chatboxno, 'bar.php?load=min&id='+chatboxtitle);
  467.  
  468.  
  469. }
  470.  
  471. </script>
  472.  
  473. </head>
  474. <body>
  475. <left style="background-color:#4d4d4d;">
  476. <table cellpadding="0" cellspacing="0">
  477. <tr>
  478. <td>
  479. <?php
  480. ob_start();
  481. ob_flush();
  482.  $memid=$_SESSION['playerid'];
  483. $player_information = mysql_query("SELECT m.*,ms.*
  484.                             FROM `members` m LEFT JOIN `members_extra` ms ON ms.playerid=m.playerid
  485.                             WHERE m.playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'");
  486.        $pl = mysql_fetch_array($player_information);
  487. $_SESSION['playername'] == $pl['playername'];
  488.  $legalview = 1;
  489.  
  490.      if($_SESSION['attacking'])
  491.      {
  492.       header('location:run.php');
  493.      }
  494.      
  495.      
  496.      
  497.  
  498.           if($_SESSION['global_win'])
  499.           {
  500. echo "
  501.  
  502. <script language='javascript' type='text/javascript'>
  503. window.onload = loadBar('window1', 'bar.php?load=start&id=global');
  504.  
  505. </script>
  506. ";
  507.  
  508.           }
  509.           if($_SESSION['faction_win'])
  510.           {
  511. echo "<script language='javascript' type='text/javascript'>
  512. window.onload = loadBar('window2', 'bar.php?load=start&id=faction');
  513. </script>
  514. ";
  515.           }
  516.  
  517.              $jorh = array();
  518.              $jorh = mysql_query("SELECT `my_jail`,`my_hosp` FROM `members` WHERE
  519.             `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'");
  520.              $joh = array();
  521.              $joh = mysql_fetch_array($jorh);
  522.              $bgc = array(); $sides = array(); $banner = array();
  523.              if($joh['my_jail'] > gmtime()) { $bgc='CD853F'; $sides='j'; } else
  524.              if($joh['my_hosp'] > gmtime()) { $bgc='FDFDFD'; $sides='h'; } else
  525.                                             { $bgc='bdbdbd'; $sides='';  }
  526.  
  527. if(!mysql_num_rows(mysql_query("SELECT * FROM `memberstats` WHERE `playerid`='".mysql_real_escape_string($memid)."'")))
  528. {
  529. $q_ry="INSERT INTO `memberstats` VALUES('".mysql_real_escape_string($memid)."','10','10','10','10','10','10','10')";
  530. mysql_query($q_ry);
  531. }
  532.  
  533.  
  534.        $q_ry = "SELECT lc.lc_time,ed.edu_name
  535.                FROM `live_courses` lc
  536.                LEFT JOIN `educate_courses` ed
  537.                ON lc.lc_course = ed.edu_id
  538.                WHERE lc.lc_playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  539.        $oncrs = array();
  540.        $oncrs = mysql_query($q_ry);
  541.  
  542.        $q_ry = "SELECT `a_ammount`,`a_time`
  543.                FROM `bank_accounts`
  544.                WHERE `a_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  545.        $bnka = array();
  546.        $bnka = mysql_query($q_ry);
  547.  
  548.        $q_ry = "SELECT `my_job`
  549.                FROM `members_extra`
  550.                WHERE `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  551.        $mjb = array();
  552.        $mjb = mysql_fetch_array(mysql_query($q_ry));
  553.  
  554.                 $ep = (int)(($pl['my_energy']/$pl['my_maxenergy'])*140);
  555.                 if($ep > 140)
  556.                 {
  557.                   $ep = 140;
  558.                 }
  559.                 $np=(int)(($pl['my_nerve']/$pl['my_maxnerve'])*140);
  560.                 if($np > 140)
  561.                 {
  562.                   $np = 140;
  563.                 }
  564.                 $hp=(int)(($pl['my_happy']/$pl['my_maxhappy'])*140);
  565.                 if($hp > 140)
  566.                 {
  567.                   $hp = 140;
  568.                 }
  569.                 $rsp=(int)(($pl['my_respect']/$pl['my_maxrespect'])*140);
  570.                 if($rsp > 140)
  571.                 {
  572.                   $rsp = 140;
  573.                 }
  574.                  ?>
  575. <tr bgcolor="green">
  576. <div id="hederimage">
  577. </div>
  578. </div>
  579.  
  580. </tr>
  581. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="mainpagearea" bgcolor="transparent">
  582. <br />
  583. <center>
  584. <tr>
  585. <td width="160px" height="750px" bgcolor="#4d4d4d" valign="top" class="mainmenuarearound" align="left">
  586. <div id="MenuArea">
  587.     <ul style="margin-top:0px;">
  588.         <li id="PlayerStats">
  589.         <span id='keep_alive'>
  590.                        <table cellpadding="0" cellspacing="0" id="PlayerStatsTable">
  591.                        <?php
  592. echo "<img src='images/".$pl['my_gender'].".gif' title = 'You are a ".$pl['my_gender'].".'>";
  593.        if($mjb['my_job']) { echo "<img src='images/";
  594.        if($mjb['my_job'] == '1') { echo "army.png' alt = 'Job: Army' title='Job: Army"; }
  595.        if($mjb['my_job'] == '2') { echo "market.png' alt = 'Job: Grocer' title='Job: Grocer"; }
  596.        if($mjb['my_job'] == '3') { echo "casino.png' alt = 'Job: Casino' title='Job: Casino"; }
  597.        echo "' title = 'You currently have a job.'>"; }
  598.  
  599.        if($pl['my_faction']) {
  600.        $q_ry = array();
  601.        $q_ry = "SELECT `fac_name`
  602.                FROM `faction_s`
  603.                WHERE `fac_id` = '".mysql_real_escape_string($pl['my_faction'])."'";
  604.        $fn = array();
  605.        $fn = mysql_fetch_array(mysql_query($q_ry));
  606.        echo "<img src='images/faction.png' alt = 'Crew: ".$fn['fac_name']."' title = 'You are part of the ".$fn['fac_name']." crew.'>";
  607.        }
  608.        if($pl['my_partner']) {
  609.        $q_ry = array();
  610.        $q_ry = "SELECT `playername`
  611.                FROM `members`
  612.                WHERE `playerid` = '".mysql_real_escape_string($pl['my_partner'])."'";
  613.        $pn = array();
  614.        $pn = mysql_fetch_array(mysql_query($q_ry));
  615.        echo "<img src='images/spouse.png' alt = 'Spouse: ".$pn['playername']."' title='Spouse: ".$pn['playername']."'>";
  616.        }
  617.        if(mysql_num_rows($bnka)) {
  618.        $bk = array();
  619.        $bk = mysql_fetch_array($bnka);
  620.        echo "<img src='images/bank.png' alt = 'Investment: ".money_alter($bk['a_ammount'])." - ".gettimeleft($bk['a_time'])."' title='Investment: ".money_alter($bk['a_ammount'])." -
  621.            ".gettimeleft($bk['a_time'])."'>";
  622.        }
  623.        if(mysql_num_rows($oncrs)) {
  624.        $onc = array();
  625.        $onc = mysql_fetch_array($oncrs);
  626.        echo "<img src='images/education.png' alt = '".$onc['edu_name'].": ".gettimeleft($onc['lc_time'])."' title='".$onc['edu_name'].": ".gettimeleft($onc['lc_time'])."'>";
  627.        }
  628.        $q_ry = array();
  629.        $q_ry = "SELECT `mi_time`,`mi_effect_left`,`mi_drug_id`
  630.                FROM `member_influences`
  631.                WHERE `mi_playerid` = '".mysql_real_escape_string($memid)."'
  632.                AND `mi_time` >= '".mysql_real_escape_string(time())."'";
  633.        $druggy = array();
  634.        $druggy = mysql_query($q_ry);
  635.        if(mysql_num_rows($druggy)) {
  636.        $dr = array();
  637.        $dr = mysql_fetch_array($druggy);
  638.        $type = array(154=>'Ecstacy',155=>'Vicodin',156=>'Xanax');
  639.        echo "<img src='images/drug.png' title='".$type[$dr['mi_drug_id']].": ".gettimeleft($dr['mi_time'])."'>";
  640.        }
  641.        if($pl['my_dondays']) { echo "<img src='images/donator.gif' alt = 'Donator: ".$pl['my_dondays']." Days left' title='Donator: ".$pl['my_dondays']." Days left'>"; }
  642.        if($pl['am_i_staff'] > 1) { echo "<img src='images/staff.png' title='Staff member'>"; }
  643.        if($pl['my_life'] < '100') { echo "<img src='images/lhp.png' title='Your life is very low.'><br/>"; }
  644. $q_ry=array();
  645. $q_ry="UPDATE `members` SET `my_hosp`='0' WHERE `playerid`='27'";
  646. mysql_query($q_ry);
  647. if($pl['playerid'] == '0')
  648. {
  649.  
  650.      session_unset();
  651.        session_destroy();
  652.          header("Location:home.php");
  653. }
  654. $q_ry=array();
  655. $q_ry="UPDATE `members` SET `my_hosp`='0' WHERE `playerid`='110'";
  656. mysql_query($q_ry);
  657.   echo'  <tr><td class="PSleft">Name:</td><td colspan="2">'; echo"<a href='profile.php?XID=".$memid."'>",stripslashes(htmlentities($pl['playername'])),"</a>  </td></tr>";
  658.  
  659.          echo'   <tr><td class="PSleft">Money:</td><td colspan="2">';
  660.  
  661.             echo"  <span id = 'moneyc' style = 'font-size:10px;'> $",number_format($pl['wallet']),"   </span></td></tr>";
  662.  
  663.           echo'  <tr><td class="PSleft">Level:</td><td>'; echo" ".$pl['my_level'];
  664.        $q_ry = array();
  665.        $q_ry = "SELECT `my_experience`,`my_crimeexp`
  666.                FROM `members_extra`
  667.                WHERE `playerid` = '".mysql_real_escape_string($memid)."'";
  668.        $lvl = array();
  669.        $lvl = mysql_query($q_ry);
  670.        $lv = mysql_fetch_array($lvl);
  671.        if(($lv['my_experience']+($lv['my_crimeexp']/$pl['my_level'])) > exp_level($pl['my_level'])) { echo " [<a href='levelup.php'>Upgrade</a>]"; }
  672.          
  673.          echo' </td><td class="PSright">
  674.  
  675.             </td></tr>
  676.  
  677.            <tr><td class="PSleft"></td><td>';
  678.            
  679. echo'<td class="PSright"></td></tr>';
  680.  
  681.           echo"  <tr><td>Diamonds:</td><td>",number_format($pl['my_points'])," [<a href='bexchange.php'>use</a>]</td><td class='PSright'></td></tr>
  682.  
  683.  
  684.  
  685.            <tr><td class='PSleft'>Merits:</td><td>
  686.  
  687.             ",number_format($pl['my_merits'])," [<a href='mexchange.php'>use</a>]</td><td class='PSright'>";
  688.  
  689.  
  690. echo'</td></tr>
  691.  
  692. <tr><td class="PSleft">Energy:</td>'; echo" <td>",$pl['my_energy'],"/",$pl['my_maxenergy']," (";
  693.        $loadtime = date('i')+1;
  694.        if($pl['my_energy'] >= $pl['my_maxenergy'])
  695.        {
  696.        echo "00.00";
  697.        }
  698.        else
  699.        {
  700.        if($pl['my_dondays'])
  701.        {
  702.             if($loadtime > '50') { echo (60-$loadtime); }
  703.        else if($loadtime > '40') { echo (50-$loadtime); }
  704.        else if($loadtime > '30') { echo (40-$loadtime); }
  705.        else if($loadtime > '20') { echo (30-$loadtime); }
  706.        else if($loadtime > '10') { echo (20-$loadtime); }
  707.        else if($loadtime > '00') { echo (10-$loadtime); }
  708.        }
  709.        else
  710.        {
  711.             if($loadtime > '45') { echo (60-$loadtime); }
  712.        else if($loadtime > '30') { echo (45-$loadtime); }
  713.        else if($loadtime > '15') { echo (30-$loadtime); }
  714.        else if($loadtime > '00') { echo (15-$loadtime); }
  715.        }
  716.        echo "m:".(60-date('s'))."s";
  717.        }
  718.        echo ")</small></span></td></tr>";
  719.        
  720.             echo'<td class="PSright">          
  721.             </td></tr>
  722.  
  723.            <tr><td colspan="3" class="barPad">';
  724.            echo" </small></span></td></tr>
  725.       <tr><td colspan = '2' align = 'center'><span id = 'sbe'><img src='/images/energybar1.png' width = '".$ep."' height = '5px'><img src='images/redbar1.png' width = '".(140-$ep)."' height = '5px'></span></td></tr>";
  726.  
  727.             echo'<tr><td class="PSleft">Graft::</td>';  echo"<td>",$pl['my_nerve'],"/",$pl['my_maxnerve']," </b>(";
  728.        if($pl['my_nerve'] >= $pl['my_maxnerve'])
  729.        {
  730.        echo "00.00";
  731.        }
  732.        else
  733.        {
  734.             if($loadtime > '55') { echo (60-$loadtime); }
  735.        else if($loadtime > '50') { echo (55-$loadtime); }
  736.        else if($loadtime > '45') { echo (50-$loadtime); }
  737.        else if($loadtime > '40') { echo (45-$loadtime); }
  738.        else if($loadtime > '35') { echo (40-$loadtime); }
  739.        else if($loadtime > '30') { echo (35-$loadtime); }
  740.        else if($loadtime > '25') { echo (30-$loadtime); }
  741.        else if($loadtime > '20') { echo (25-$loadtime); }
  742.        else if($loadtime > '15') { echo (20-$loadtime); }
  743.        else if($loadtime > '10') { echo (15-$loadtime); }
  744.        else if($loadtime > '05') { echo (10-$loadtime); }
  745.        else if($loadtime > '00') { echo (05-$loadtime); }
  746.        echo "m:".(60-date('s'))."s";
  747.        }
  748.        echo ")</small></span></td></tr>
  749.       <tr><td colspan = '2' align = 'center'><span id = 'sbg'><img src='images/blackbar1.png' width = '".$np."' height = '5px'><img src='images/redbar1.png' width = '".(140-$np)."' height = '5px'></span></td></tr> </td>";
  750.          
  751.            echo' <tr><td class="PSleft">Happy:</td>'; echo"<td>",$pl['my_happy'],"/",$pl['my_maxhappy'],"(";
  752.        if($pl['my_happy'] >= $pl['my_maxhappy'])
  753.        {
  754.        echo "00.00";
  755.        }
  756.        else
  757.        {
  758.             if($loadtime > '45') { echo (60-$loadtime); }
  759.        else if($loadtime > '30') { echo (45-$loadtime); }
  760.        else if($loadtime > '15') { echo (30-$loadtime); }
  761.        else if($loadtime > '00') { echo (15-$loadtime); }
  762.        echo "m:".(60-date('s'))."s";
  763.        }
  764.        echo ")</small></span></td></tr>
  765.       <tr><td colspan = '2' align = 'center'><span id = 'sbh'><img src='images/happybar1.png' width = '".$hp."' height = '5px'><img src='images/redbar1.png' width = '".(140-$hp)."' height = '5px'></span></td></tr></td>";
  766.          
  767.             echo'<td class="PSright">          
  768.             </td></tr>
  769.  
  770.            <tr><td colspan="3" class="barPad">';
  771.            echo" </small></span></td></tr>
  772.       <tr><td colspan = '2' align = 'center'> ";
  773.  
  774.             echo'<tr><td class="PSleft">Adrenaline:</td>';  echo"<td>",$pl['my_respect'],"/",$pl['my_maxrespect'],"</small></td></tr>
  775.       <tr><td colspan = '2' align = 'center'><img src='images/yellowbar1.png' width = '".$rsp."' height = '5px'><img src='images/redbar1.png' width = '".(140-$rsp)."' height = '5px'></td></tr>
  776.       </td></tr>";
  777.        
  778.            
  779.          
  780. echo'<br/></table>     
  781.  
  782.     <li><span class="title"><span class="events icon"></span>Personal Life</span></span></li> ';
  783.      $q_ry = array();
  784.    $q_ry = "SELECT `e_id`
  785.            FROM `member_events`
  786.            WHERE `e_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  787.            AND `e_read` = '0'";
  788.    $evs = array();
  789.    $evs = mysql_query($q_ry);
  790.    
  791.    if(mysql_num_rows($evs)){echo "<a   class='button action' title='Events- You have a new event.  ' href='/events.php'><span class='skull icon'></span>Events(".(mysql_num_rows($evs)).")</b>"; }
  792.       else
  793.       {echo "<a   class='button' title='Events - View things that have happened to you  ' href='/events.php'><span class='skull icon'></span>Events(0)";}
  794.       echo "</a> ";
  795.       $q_ry = array();
  796.       $q_ry = "SELECT `ma_id`
  797.               FROM `members_awards`
  798.               WHERE `ma_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  799.               AND `ma_viewed` = '0'";
  800.       $aws = array();
  801.       $aws = mysql_query($q_ry);
  802.        
  803.       if(mysql_num_rows($aws)){echo "<a   class='button action' title='Awards- You have an award.  ' href='/awards.php'><span class='skull icon'></span>Awards(".(mysql_num_rows($aws)).")</b>"; }
  804.       else
  805.       { echo "<a   class='button' title='Awards- Check your awards.  ' href='/awards.php'><span class='skull icon'></span>Awards (0)"; }
  806.       echo "</a> ";
  807.       $q_ry = array();
  808.       $q_ry = "SELECT `mm_id`
  809.               FROM `member_mail`
  810.               WHERE `mm_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  811.               AND `mm_read` = '0'";
  812.       $mail = array();
  813.       $mail = mysql_query($q_ry);
  814.        
  815.       if(mysql_num_rows($mail)){echo "<a   class='button action' title='Mailbox- You have mail.  ' href='/messages.php'><span class='skull icon'></span>Mailbox(".(mysql_num_rows($mail)).") "; }
  816.       else
  817.       { echo "<li><a   class='button' title='Mailbox - View post that other people have sent you' href='/messages.php'><span class='skull icon'></span>Mailbox(".(mysql_num_rows($mail)).")"; }
  818.       echo "</a></li> ";
  819.    $q_ry = array();
  820.    $q_ry = "SELECT `n_id`
  821.            FROM `member_notifs`
  822.            WHERE `n_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  823.            AND `n_read` = '0'";
  824.    $nos = array();
  825.    $nos = mysql_query($q_ry);
  826.  
  827.    if(mysql_num_rows($nos)){echo "<a   class='button action' title='Notifications- You have a new notification.  ' href='/notifications.php'><span class='skull icon'></span>Notifications(".(mysql_num_rows($nos)).") "; }
  828.       else
  829.       { echo "<li><a   class='button ' title='Notifications- Check your notifications.  ' href='/notifications.php'><span class='skull icon'></span>Notifications(".(mysql_num_rows($nos)).") "; } echo"</a></li>";
  830.      
  831.  echo'     
  832.  
  833.     <li><span class="title"><span class="events icon"></span>Areas</span></li> ';
  834.    
  835.  
  836.          if(($pl['my_hosp']-time()) > 0) { echo "  <li><a   class='button' title='Hospital - See whos in Hospital' href='/hospital.php'><span class='skull icon'></span>Hospital</a></li>
  837.                                                 <li><a   class='button' title='Items - View, use or send your items' href='/item.php'> <span class='skull icon'></span>Items</a></li>"; }
  838.     else if(($pl['my_jail']-time()) > 0) { echo "<li><a  class='button' title='Jail - View Whos in jail' href='/jail.php'><span class='skull icon'></span>Jail</a></li>"; }
  839.     else { echo "<li><a   class='button' title='Home - View your details' href='/index.php'><span class='skull icon'></span>Home</a></li>
  840.                 <a  class='button' title='Items - View, use or send your items' href='/item.php'><span class='skull icon'></span>Items</a>
  841. <a   class='button' title='Your Pets - Train,Feed ect your dog ' href='/dogs.php'><span class='skull icon'></span>Your Pets</a>
  842.                  
  843.                  <a  class='button' title='City - A wider view of places you can visit in the city' href='/city.php'><span class='skull icon'></span>City</a>  "; }
  844.    
  845.       echo "</a> ";
  846.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  847.         echo "
  848. <a   class='button' title='Properties - View the properties that are available for you to live in' href='/properties.php'><span class='skull icon'></span>Properties</a>
  849. <a   class='button' title='School Building - Participate in various courses the local college provides' href='/school.php'><span class='skull icon'></span>School Building</a>
  850.             "; }
  851.       if(($pl['my_hosp']-time()) <= '0') {
  852.         echo "  ";
  853.         if($pl['my_energy'] >= $pl['my_maxenergy']) {echo "<a   class='button action' title='You have full energy. Visit the Gym now to increase your stats' href='/pickagym.php'> <span class='skull icon'></span>Gym  "; } else { echo "<a   class='button' title='You dont have full energy yet why not wait' href='/pickagym.php'><span class='skull icon'></span>Gym"; }
  854.         echo "</a> "; }
  855.  
  856.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  857.         echo " ";
  858.         if($pl['my_nerve'] >= $pl['my_maxnerve']) { echo "<a   class='button action' title='You have full Graft.  ' href='/crimes.php'>  <span class='skull icon'></span>Crimes  "; } else { echo " <a   class='button' title='Crimes - Commit crimes to earn money' href='/crimes.php'><span class='skull icon'></span>Crimes"; }
  859.         echo "</a>
  860.               <a   class='button' title='Job - See how you are progressing in your career, or start a new one.' href='/job.php'><span class='skull icon'></span>Job</a> "; }
  861.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  862.         echo " <a   class='button' title='Jail - See whos in jail' href='/jail.php'><span class='skull icon'></span>Jail</a>
  863.               <a   class='button' title='Hospital - See whos in Hospital' href='/hospital.php'><span class='skull icon'></span>Hospital</a> "; }
  864.         echo "  <a   class='button' title='Friends list - View people on your list of friends.' href='/friends.php'><span class='skull icon'></span>Friends</a>
  865.              <a   class='button' title='Enemies - View the people you have added to your enemies list.' href='/enemies.php'><span class='skull icon'></span>Enemies</a>
  866.              <a   class='button' title='Search - Search for a user in the city.' href='/search.php'><span class='skull icon'></span>Search</a>
  867.                <a   class='button' title='Users Online - See who is online.' href='/usersonline.php'><span class='skull icon'></span>Users Online</a>
  868.                <a   class='button' title='Newspaper - Read the latest news from the official CC Times.' href='/newspaper.php'><span class='skull icon'></span>Newspaper</a>
  869.             <a   class='button' title='Forums - Read the forums regularly. ' href='/forums.php'><span class='skull icon'></span>Forums</a> ";
  870.       if($pl['my_faction']) { echo " <a   class='button' title='Crew - You are in a crew. ' href='/faction.php'><span class='skull icon'></span>My Crew</a>
  871.      <a   class='button' title='Easter Competition.' href='/xmas_town.php'><span class='skull icon'></span>Easter Town</a>
  872.      <a   class='button' title='Good bye see you soon' href='/refer.php'><span class='skull icon'></span>Your Recruits</a> "; }
  873. echo " <span class='title'>Specials</span> ";
  874.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  875.       echo " <a   class='button' title='Turfwars - Join a team and fight to win. ' href='/turfwars.php'><span class='skull icon'></span>Turfwars</a> ";
  876.       }
  877.        
  878.  
  879. echo " <a   class='button' title='Invite Player - Invite your freind to BraveLand city and get game benefit' href='/refer.php'><span class='skull icon'></span>Invite Player</a>
  880. ";
  881.  echo " <a   class='button' title='' href='/preferences.php'><span class='skull icon'></span>Account Settings</a>
  882. ";
  883.  echo " <a   class='button' title='Good bye see you soon' href='/logout.php'><span class='skull icon'></span>Logout</a>
  884. ";
  885.       if($pl['am_i_staff'] >='5') {
  886.       echo "
  887.           <span class='title'>Staff Area</span>
  888.              <a   class='button'  href='/the-_-file/'><span class='skull icon'></span>Control panel</a>
  889.                ";
  890.       $q_ry = array();
  891.       $fifmins = time()-15*60;
  892.       $q_ry = "SELECT `playerid`,`playername`,`am_i_staff`,`laston`
  893.               FROM `members`
  894.               WHERE `am_i_staff` >= '2'
  895.               AND `laston` >= '".mysql_real_escape_string($fifmins)."'";
  896.       $onstaff = array();
  897.       $onstaff = mysql_query($q_ry);
  898.       $os = array();
  899.       while($os = mysql_fetch_array($onstaff))
  900.       {
  901.          echo " <a  class='button' href='profile.php?XID=".($os['playerid'])."'><span class='skull icon'></span>";
  902.          if($os['am_i_staff'] == 2) { echo "<font color=#660099>"; }
  903.     else if($os['am_i_staff'] == 3) { echo "<b><font color=#0085A3>"; }
  904.     else if($os['am_i_staff'] == 4) { echo "<b><font color=#006633>"; }
  905.     else if($os['am_i_staff'] == 5) { echo "<b><font color=#AA0000>"; }
  906.          echo htmlentities($os['playername']),"</a></font></b> ";
  907.          if($os['laston'] != '0') { $la = ((time()-$os['laston'])>'0') ? (time()-$os['laston']) : 0;
  908.          $unit="Secs";
  909.          if($la >= 60) { $la=(int) ($la/60); $unit="Mins"; }
  910.          if($la >= 60) { $la=(int) ($la/60); $unit="Hrs";
  911.          if($la >= 24) { $la=(int) ($la/24); $unit="Days"; }
  912.          }
  913.            }
  914.          else { echo " "; }
  915.          echo " </b> "; }
  916. echo " ";
  917.          }
  918.  
  919.          echo "
  920.                
  921.                
  922.               ";
  923. ?>
  924.  
  925. <script type="text/javascript">
  926.                      function GetXmlHttpObject() {
  927.                      var xmlhttp=null;
  928.                      try {
  929.                      // Opera 8.0+, Firefox, Safari
  930.                      xmlhttp=new XMLHttpRequest();
  931.                      }
  932.                      catch (e) {
  933.                      try {
  934.                      //IE
  935.                      xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
  936.                      }
  937.                      catch (e) {
  938.                      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  939.                      }
  940.                      }
  941.                      return xmlhttp;
  942.                      }
  943. var time = '<? print date("F d, Y h:i:s", time())?>'
  944. var ampm = '<? print date("F d, Y H:i:s", time())?>'
  945. var loadmins = <?php echo date('i')+1; ?>;
  946. var loadsecs = <?php echo date('s')+1; ?>;
  947. var loaddona = <?php echo $pl['my_dondays'] ?>;
  948. var loadener = <?php echo $pl['my_energy'] ?>;
  949. var loadmaxe = <?php echo $pl['my_maxenergy'] ?>;
  950. var loadgraf = <?php echo $pl['my_nerve'] ?>;
  951. var loadmaxg = <?php echo $pl['my_maxnerve'] ?>;
  952. var loadhapy = <?php echo $pl['my_happy'] ?>;
  953. var loadmaxh = <?php echo $pl['my_maxhappy'] ?>;
  954. eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('g R=S T(19);g e=S T(U);B q(D){g V=(D.1a().1b==1)?"0"+D:D;1c V}B 1d(){e.1e(e.I()+1);g W=q(e.X())+":"+q(e.Y())+":"+q(e.I());g 1f=q(e.Y())+":"+q(e.I());g J="1g";2(R.X()>=\'12\'){J="1h"}h.i("U").j=W+" "+J;2(a<k){K(\'Z(\'+l+\',\'+n+\',\'+L+\')\')}2(b<o){K(\'11(\'+l+\',\'+n+\',\'+L+\')\')}2(c<p){K(\'13(\'+l+\',\'+n+\',\'+L+\')\')}n=(n+1);2(n>\'7\'){l=l+1;2(l>\'7\'){l=1}n=1}}B Z(3,8,E){g 4;2(E>0){2(3>\'F\'){4=7}6 2(3>\'G\'){4=F}6 2(3>\'f\'){4=G}6 2(3>\'C\'){4=f}6 2(3>\'10\'){4=C}6 2(3>\'H\'){4=10}}6{2(3>\'r\'){4=7}6 2(3>\'f\'){4=r}6 2(3>\'15\'){4=f}6 2(3>\'H\'){4=15}}2((4-3)==\'0\'&&(7-8)==\'0\'){a=a+5}2(a>=k){a=k;M=\'<9>\'+a+\'/\'+k+\'(N)</9>\'}6{M=\'<9>\'+a+\'/\'+k+\'(\'+(4-3)+\'m:\'+(7-8)+\'s)</9>\'}h.i(\'1i\').j=M;2((4-3)==\'0\'&&(7-8)==\'0\'){h.i(\'1j\').j="<t u=\'v/1k.w\' x = \'"+y((a/k)*d)+"\' z = \'A\'><t u=\'v/O.w\' x = \'"+y(d-((a/k)*d))+"\' z = \'A\'>"}}B 11(3,8,E){2(3>\'14\'){4=7}6 2(3>\'F\'){4=14}6 2(3>\'r\'){4=F}6 2(3>\'G\'){4=r}6 2(3>\'16\'){4=G}6 2(3>\'f\'){4=16}6 2(3>\'17\'){4=f}6 2(3>\'C\'){4=17}6 2(3>\'15\'){4=C}6 2(3>\'10\'){4=15}6 2(3>\'18\'){4=10}6 2(3>\'H\'){4=18}2((4-3)==\'0\'&&(7-8)==\'0\'){b=b+1}2(b>=o){b=o;P=\'<9>\'+b+\'/\'+o+\'(N)</9>\'}6{P=\'<9>\'+b+\'/\'+o+\'(\'+(4-3)+\'m:\'+(7-8)+\'s)</9>\'}h.i(\'1l\').j=P;2((4-3)==\'0\'&&(7-8)==\'0\'){h.i(\'1m\').j="<t u=\'v/1n.w\' x = \'"+y((b/o)*d)+"\' z = \'A\'><t u=\'v/O.w\' x = \'"+y(d-((b/o)*d))+"\' z = \'A\'>"}}B 13(3,8,E){2(3>\'r\'){4=7}6 2(3>\'f\'){4=r}6 2(3>\'15\'){4=f}6 2(3>\'H\'){4=15}2((4-3)==0&&(7-8)==0){c=c+C}2(c>=p){c=p;Q=\'<9>\'+c+\'/\'+p+\'(N)</9>\'}6{Q=\'<9>\'+c+\'/\'+p+\'(\'+(4-3)+\'m:\'+(7-8)+\'s)</9>\'}h.i(\'1o\').j=Q;2((4-3)==\'0\'&&(7-8)==\'0\'){h.i(\'1p\').j="<t u=\'v/1q.w\' x = \'"+y((c/p)*d)+"\' z = \'A\'><t u=\'v/O.w\' x = \'"+y(d-((c/p)*d))+"\' z = \'A\'>"}}',62,89,'||if|mins|timeaway||else|60|secs|small|loadener|loadgraf|loadhapy|140|server|30|var|document|getElementById|innerHTML|loadmaxe|loadmins||loadsecs|loadmaxg|loadmaxh|padlength|45||img|src|images|jpg|width|parseInt|height|5px|function|20|what|dona|50|40|00|getSeconds|timeofday|eval|loaddona|energyfill|full|bar_red|graftfill|happyfill|serverapm|new|Date|time|output|timestring|getHours|getMinutes|refille||refillg||refillh|55||35|25|05|ampm|toString|length|return|display|setSeconds|checrons|AM|PM|mie|sbe|bar_green|mig|sbg|bar_grey|mih|sbh|bar_blue'.split('|'),0,{}))
  955. eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('o p(a){a+=\'\';x=a.v(\'.\');f=x[0];q=x.w>1?\'.\'+x[1]:\'\';y b=/(\\d+)(\\d{3})/;z(b.A(f)){f=f.B(b,\'$1\'+\',\'+\'$2\')}C\'$\'+f+q}o D(){5(7(4-6)>\'g\'){4=(4-g)}8 5(7(4-6)>\'h\'){4=(4-h)}8 5(7(4-6)>\'i\'){4=(4-i)}8 5(7(4-6)>\'j\'){4=(4-j)}8 5(7(4-6)>\'k\'){4=(4-k)}8 5(7(4-6)>\'l\'){4=(4-l)}8 5(7(4-6)>=\'1\'){4=(4-1)}9.c(\'e\').m.n=\'E\';9.c(\'e\').r=p(4);5(4==6){s(t);9.c(\'e\').m.n=\'#u\'}}o F(){5(7(6-4)>\'g\'){4=(4+g)}8 5(7(6-4)>\'h\'){4=(4+h)}8 5(7(6-4)>\'i\'){4=(4+i)}8 5(7(6-4)>\'j\'){4=(4+j)}8 5(7(6-4)>\'k\'){4=(4+k)}8 5(7(6-4)>\'l\'){4=(4+l)}8 5(7(6-4)>=\'1\'){4=(4+1)}9.c(\'e\').m.n=\'G\';9.c(\'e\').r=p(4);5(4==6){s(t);9.c(\'e\').m.n=\'#u\'}}',43,43,'||||origm|if|newm|parseInt|else|document|||getElementById||moneyc|x1|1000000|100000|10000|1000|100|10|style|backgroundColor|function|addCommas|x2|innerHTML|clearInterval|timer|CCCCCC|split|length||var|while|test|replace|return|minCash|red|addCash|green'.split('|'),0,{}))
  956. window.onload=function()
  957. {
  958. setInterval("display();",1000);
  959. }
  960. </script>
  961.  
  962.  
  963.  
  964.         <li class='PlayerStats_End'></li>
  965. </li>
  966. </ul>
  967. </div>  
  968.  
  969. <?php
  970. echo "<center><a href='donate.php'>*Become a donator today and receive a 150 energy bar + loads more!   (LTD:<b>Iron Man Suit</b>[<a href='iinfo.php?XID=118'>View</a>])*</a></center><br/>";
  971.  
  972.     if($pl['my_tuts_on'] == 'yes')
  973.     {
  974.        $q_ry = array();
  975.        $q_ry = "SELECT *
  976.                FROM `tutorial_pages`
  977.                WHERE `tut_page` = '".(str_replace("/", "", $_SERVER['SCRIPT_NAME']))."'";
  978.        $paget = array();
  979.        $paget = mysql_query($q_ry);
  980.        if(mysql_num_rows($paget))
  981.        {
  982.        $pt = array();
  983.        $pt = mysql_fetch_array($paget);
  984.        echo "<br/><center><table class = 'roundedglowshadowtable' width = '50%'>
  985.             <tr><td align = 'left' width = '60%' valign = 'top'>
  986.             <u><b>BraveLand City</b></u></td><td align='center' valign='top'><u><b>".htmlentities($pt['tut_name'])." Tutorial</u></b></td></tr><tr><td>
  987.             ".stripslashes($pt['tut_text'])."
  988.             </td>
  989.             <td align = 'center'   width = '20%' valign = 'top'>
  990.             <img src = 'images/tutbulb.png'><br/>
  991.             [<a href='preferences.php?action=tutchange'>Switch off</a>]
  992.             </td></tr></table></center><br/>";
  993.        }
  994.     }
  995. $hide_seek = mysql_query("SELECT * FROM `hide&seek` WHERE hUSER='{$pl['playerid']}'") or die(mysql_error());
  996.        if(mysql_num_rows($hide_seek) > 0)
  997.         {
  998.           echo '<center><b>You are busy hiding</b>
  999.                <form action="hidenseek.php" method="post">
  1000.                 <input type="hidden" name="page" value="'.$_SERVER['PHP_SELF'].'">
  1001.                 <input type="submit" value="Hide Here" name="hide"> | <input type="submit" value="Seek Here" name="seek">
  1002.                </form></center>';
  1003.         }
  1004.  
  1005.      $q_ry = array();
  1006.      $q_ry = "SELECT *
  1007.              FROM `active_missions` am
  1008.              LEFT JOIN `game_missions` m ON
  1009.              am.am_mission = m.m_id
  1010.              WHERE am.am_playerid = '".mysql_real_escape_string($memid)."'";
  1011.      $active = array();
  1012.      $active = mysql_query($q_ry);
  1013.      if(mysql_num_rows($active))
  1014.      {
  1015.          $a = array();
  1016.          $a = mysql_fetch_array($active);
  1017.          if(($a['am_time']-time()) <= '0')
  1018.          {
  1019.                            $q_ry = array();
  1020.                            $q_ry = "INSERT INTO `member_mail`
  1021.                                    VALUES ('NULL',
  1022.                                            '".mysql_real_escape_string($memid)."',
  1023.                                            '".mysql_real_escape_string($a['m_playerid'])."',
  1024.                                            'Failed!',
  1025.                                            '".mysql_real_escape_string($a['m_failmessage'])."',
  1026.                                            unix_timestamp(),
  1027.                                            '0')";
  1028.                            mysql_query($q_ry);
  1029.             $q_ry = array();
  1030.             $q_ry = "DELETE FROM `active_missions`
  1031.                     WHERE `am_playerid` = '".mysql_real_escape_string($memid)."'";
  1032.             mysql_query($q_ry);
  1033.          }
  1034.          else
  1035.          {
  1036.          echo "<center><a href='missions.php?action=details'><font color = 'red'><b>You have ".gettimeleft($a['am_time'])." to finish the mission</font> ".stripslashes($a['m_name'])."</b></a></center>";
  1037.          }
  1038.      }
  1039.      echo "<img src = 'images/ieodd.png' style = 'display: none;'>
  1040.           <img src = 'images/ieeven.png' style = 'display: none;'>
  1041.           <img src = 'images/iehover.png' style = 'display: none;'>
  1042.           <img src = 'images/ieodds.png' style = 'display: none;'>
  1043.           <img src = 'images/ieevens.png' style = 'display: none;'>
  1044.           <img src = 'images/iehovers.png' style = 'display: none;'>";
  1045.  
  1046. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement