Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 42.99 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://reunited-city.com/css/newcss.css' rel='stylesheet' type='text/css'/>
  227. <link REL="SHORTCUT ICON" HREF="blc_favicon.ico ">
  228.          <title>Reunited 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.  
  282. <script language="javascript" type="text/javascript">
  283.  
  284.     var timeOut = new Array();
  285.     function postFormAjax(formname, url, number)
  286.     {
  287.        var xmlhttp;
  288.        if (window.XMLHttpRequest)
  289.        {
  290.               xmlhttp=new XMLHttpRequest();
  291.        }
  292.        else
  293.        {
  294.           xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  295.        }
  296.     if(xmlhttp)
  297.     {
  298.     var fields = new Array();
  299.     if(formname)
  300.     {
  301.      var ajax = formname;
  302.     }
  303.     for(var x = 0; x < eval("document."+ajax+".elements.length"); x++)
  304.     {
  305.      eval("fields.push(document."+ajax+".elements[x].name+'='+document."+ajax+".elements[x].value)");
  306.  
  307.     }
  308.     var sendf = fields.join('&');
  309.     xmlhttp.open("POST", url, true);
  310.     xmlhttp.onreadystatechange = function()
  311.     {
  312.       if(xmlhttp.readyState == 4)
  313.       {
  314.         if(xmlhttp.status == 200)
  315.         {
  316.               var elemn = "actionstatus" + number;
  317.               document.getElementById(elemn).innerHTML = '';
  318.               document.getElementById(elemn).innerHTML = xmlhttp.responseText;
  319.         }
  320.       }
  321.     }
  322.     xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  323.     xmlhttp.send(sendf);
  324.    }
  325.   }
  326.  
  327.    function loadNotes() {
  328.    var xmlhttp;
  329.    if(window.XMLHttpRequest) {
  330.    xmlhttp = new XMLHttpRequest();
  331.    }
  332.    else
  333.       {
  334.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  335.       }
  336.       xmlhttp.onreadystatechange=function()
  337.       {
  338.       if(xmlhttp.readyState==4) {
  339.       document.getElementById("shownotes").innerHTML = xmlhttp.responseText;
  340.       }
  341.     }
  342.     xmlhttp.open("GET", "staffnotes.php?noteLoader=true", true);
  343.     xmlhttp.send(null);
  344.     }
  345.  
  346.    function loadBar(type, url) {
  347.    var xmlhttp;
  348.    if(window.XMLHttpRequest) {
  349.    xmlhttp = new XMLHttpRequest();
  350.    }
  351.    else
  352.       {
  353.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  354.       }
  355.       xmlhttp.onreadystatechange=function()
  356.       {
  357.       if(xmlhttp.readyState==4) {
  358.       var elemnt = "BAR" + type;
  359.       document.getElementById(elemnt).innerHTML = xmlhttp.responseText;
  360.       }
  361.     }
  362.     xmlhttp.open("GET", url, true);
  363.     xmlhttp.send(null);
  364.     }
  365.  
  366.  
  367.    function resetBar(elem) {
  368.    document.getElementById(elem).innerHTML = '';
  369.    }
  370.  
  371.  
  372.    function startChat(who) {
  373.    var xmlhttp;
  374.    if(window.XMLHttpRequest) {
  375.    xmlhttp = new XMLHttpRequest();
  376.    }
  377.    else
  378.       {
  379.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  380.       }
  381.       xmlhttp.onreadystatechange=function()
  382.       {
  383.       if(xmlhttp.readyState==4) {
  384.       loadBar('openchats', 'bar.php?load=chats');
  385.       }
  386.     }
  387.     var url = "bar.php?load=start&id=" + who;
  388.     xmlhttp.open("GET", url, true);
  389.     xmlhttp.send(null);
  390.     }
  391.  
  392. // run the function below once the DOM(Document Object Model) is ready
  393. $(document).ready(function() {
  394.     // trigger the function when clicking on an assigned element
  395.     $(".toggleAd").click(function () {
  396.         // check the visibility of the next element in the DOM
  397.         if ($(this).next().is(":hidden")) {
  398.             $(this).next().slideDown("medium"); // slide it down
  399.         } else {
  400.             $(this).next().slideUp("medium"); // hide it
  401.         }
  402.     });
  403. });
  404. $(document).ready(function() {
  405.     // trigger the function when clicking on an assigned element
  406.     $(".toggleSec").click(function () {
  407.         // check the visibility of the next element in the DOM
  408.         if ($(this).next().is(":hidden")) {
  409.             $(this).next().slideDown("medium"); // slide it down
  410.         } else {
  411.             $(this).next().slideUp("medium"); // hide it
  412.         }
  413.     });
  414. });
  415. $(document).ready(function() {
  416.     // trigger the function when clicking on an assigned element
  417.     $(".toggleMod").click(function () {
  418.         // check the visibility of the next element in the DOM
  419.         if ($(this).next().is(":hidden")) {
  420.             $(this).next().slideDown("medium"); // slide it down
  421.         } else {
  422.             $(this).next().slideUp("medium"); // hide it
  423.         }
  424.     });
  425. });
  426. $(document).ready(function() {
  427.     // trigger the function when clicking on an assigned element
  428.     $(".toggleHelp").click(function () {
  429.         // check the visibility of the next element in the DOM
  430.         if ($(this).next().is(":hidden")) {
  431.             $(this).next().slideDown("medium"); // slide it down
  432.         } else {
  433.             $(this).next().slideUp("medium"); // hide it
  434.         }
  435.     });
  436. });
  437. $(document).ready(function() {
  438.     // trigger the function when clicking on an assigned element
  439.     $(".toggleSnote").click(function () {
  440.         // check the visibility of the next element in the DOM
  441.         if ($(this).next().is(":hidden")) {
  442.             $(this).next().slideDown("medium"); // slide it down
  443.         } else {
  444.             $(this).next().hide(); // hide it
  445.         }
  446.     });
  447. });
  448. $(document).ready(function() {
  449.     // trigger the function when clicking on an assigned element
  450.     $("div#NSbutton").click(function () {
  451.         // check the visibility of the next element in the DOM
  452.         $(this).hide();
  453.     });
  454. });
  455.  
  456.  
  457.                  function EnterSub(e, id)
  458.                  {
  459.                         var key = (e.keyCode ? e.keyCode : e.which);
  460.                         if(key == 13) {
  461.                            var clicker = 'post' + id;
  462.                        document.getElementById(clicker).click();
  463.                     }
  464.                  }
  465. function closeMainChatBox(chatboxtitle,chatboxno) {
  466.     $('#chatbox_'+chatboxtitle).css('display','none');
  467.         loadBar('window'+chatboxno, 'bar.php?load=min&id='+chatboxtitle);
  468.  
  469.  
  470. }
  471.  
  472. </script>
  473.  
  474. </head>
  475. <body>
  476. <left style="background-color:#4d4d4d;">
  477. <table cellpadding="0" cellspacing="0">
  478. <tr>
  479. <td>
  480. <?php
  481. ob_start();
  482. ob_flush();
  483.  $memid=$_SESSION['playerid'];
  484. $player_information = mysql_query("SELECT m.*,ms.*
  485.                             FROM `members` m LEFT JOIN `members_extra` ms ON ms.playerid=m.playerid
  486.                             WHERE m.playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'");
  487.        $pl = mysql_fetch_array($player_information);
  488. $_SESSION['playername'] == $pl['playername'];
  489.  $legalview = 1;
  490.  
  491.      if($_SESSION['attacking'])
  492.      {
  493.       header('location:run.php');
  494.      }
  495.      
  496.      
  497.      
  498.  
  499.           if($_SESSION['global_win'])
  500.           {
  501. echo "
  502.  
  503. <script language='javascript' type='text/javascript'>
  504. window.onload = loadBar('window1', 'bar.php?load=start&id=global');
  505.  
  506. </script>
  507.  
  508.  
  509. ";
  510.  
  511.           }
  512.           if($_SESSION['faction_win'])
  513.           {
  514. echo "<script language='javascript' type='text/javascript'>
  515. window.onload = loadBar('window2', 'bar.php?load=start&id=faction');
  516. </script>
  517. ";
  518.           }
  519.  
  520.              $jorh = array();
  521.              $jorh = mysql_query("SELECT `my_jail`,`my_hosp` FROM `members` WHERE
  522.             `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'");
  523.              $joh = array();
  524.              $joh = mysql_fetch_array($jorh);
  525.              $bgc = array(); $sides = array(); $banner = array();
  526.              if($joh['my_jail'] > gmtime()) { $bgc='CD853F'; $sides='j'; } else
  527.              if($joh['my_hosp'] > gmtime()) { $bgc='FDFDFD'; $sides='h'; } else
  528.                                             { $bgc='bdbdbd'; $sides='';  }
  529.  
  530. if(!mysql_num_rows(mysql_query("SELECT * FROM `memberstats` WHERE `playerid`='".mysql_real_escape_string($memid)."'")))
  531. {
  532. $q_ry="INSERT INTO `memberstats` VALUES('".mysql_real_escape_string($memid)."','10','10','10','10','10','10','10')";
  533. mysql_query($q_ry);
  534. }
  535.  
  536.  
  537.        $q_ry = "SELECT lc.lc_time,ed.edu_name
  538.                FROM `live_courses` lc
  539.                LEFT JOIN `educate_courses` ed
  540.                ON lc.lc_course = ed.edu_id
  541.                WHERE lc.lc_playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  542.        $oncrs = array();
  543.        $oncrs = mysql_query($q_ry);
  544.  
  545.        $q_ry = "SELECT `a_ammount`,`a_time`
  546.                FROM `bank_accounts`
  547.                WHERE `a_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  548.        $bnka = array();
  549.        $bnka = mysql_query($q_ry);
  550.  
  551.        $q_ry = "SELECT `my_job`
  552.                FROM `members_extra`
  553.                WHERE `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  554.        $mjb = array();
  555.        $mjb = mysql_fetch_array(mysql_query($q_ry));
  556.  
  557.                 $ep = (int)(($pl['my_energy']/$pl['my_maxenergy'])*140);
  558.                 if($ep > 140)
  559.                 {
  560.                   $ep = 140;
  561.                 }
  562.                 $np=(int)(($pl['my_nerve']/$pl['my_maxnerve'])*140);
  563.                 if($np > 140)
  564.                 {
  565.                   $np = 140;
  566.                 }
  567.                 $hp=(int)(($pl['my_happy']/$pl['my_maxhappy'])*140);
  568.                 if($hp > 140)
  569.                 {
  570.                   $hp = 140;
  571.                 }
  572.                  ?>
  573. <tr bgcolor="green">
  574. <div id="hederimage">
  575. </div>
  576. </div>
  577.  
  578. </tr>
  579. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="mainpagearea" bgcolor="transparent">
  580. <br />
  581. <center>
  582. <tr>
  583. <td width="160px" height="750px" bgcolor="#4d4d4d" valign="top" class="mainmenuarearound" align="left">
  584. <div id="MenuArea">
  585.     <ul style="margin-top:0px;">
  586.         <li id="PlayerStats">
  587.         <span id='keep_alive'>
  588.                        <table cellpadding="0" cellspacing="0" id="PlayerStatsTable">
  589.                        <?php
  590. echo "<img src='images/".$pl['my_gender'].".gif' title = 'You are a ".$pl['my_gender'].".'>";
  591.        if($mjb['my_job']) { echo "<img src='images/";
  592.        if($mjb['my_job'] == '1') { echo "army.png' alt = 'Job: Army' title='Job: Army"; }
  593.        if($mjb['my_job'] == '2') { echo "market.png' alt = 'Job: Grocer' title='Job: Grocer"; }
  594.        if($mjb['my_job'] == '3') { echo "casino.png' alt = 'Job: Casino' title='Job: Casino"; }
  595.        echo "' title = 'You currently have a job.'>"; }
  596.  
  597.        if($pl['my_faction']) {
  598.        $q_ry = array();
  599.        $q_ry = "SELECT `fac_name`
  600.                FROM `faction_s`
  601.                WHERE `fac_id` = '".mysql_real_escape_string($pl['my_faction'])."'";
  602.        $fn = array();
  603.        $fn = mysql_fetch_array(mysql_query($q_ry));
  604.         echo " <span  rel = 'tooltip' title = 'Faction: " . $fn['fac_name'] . "'><img src='images/navigation/faction.gif'></span>";
  605.        }
  606.        if($pl['my_partner']) {
  607.        $q_ry = array();
  608.        $q_ry = "SELECT `playername`
  609.                FROM `members`
  610.                WHERE `playerid` = '".mysql_real_escape_string($pl['my_partner'])."'";
  611.        $pn = array();
  612.        $pn = mysql_fetch_array(mysql_query($q_ry));
  613.        echo "<img src='images/spouse.png' alt = 'Spouse: ".$pn['playername']."' title='Spouse: ".$pn['playername']."'>";
  614.        }
  615.        if(mysql_num_rows($bnka)) {
  616.        $bk = array();
  617.        $bk = mysql_fetch_array($bnka);
  618.        echo "<img src='images/bank.png' alt = 'Investment: ".money_alter($bk['a_ammount'])." - ".gettimeleft($bk['a_time'])."' title='Investment: ".money_alter($bk['a_ammount'])." -
  619.            ".gettimeleft($bk['a_time'])."'>";
  620.        }
  621.        if(mysql_num_rows($oncrs)) {
  622.        $onc = array();
  623.        $onc = mysql_fetch_array($oncrs);
  624.        echo "<img src='images/education.png' alt = '".$onc['edu_name'].": ".gettimeleft($onc['lc_time'])."' title='".$onc['edu_name'].": ".gettimeleft($onc['lc_time'])."'>";
  625.        }
  626.        $q_ry = array();
  627.        $q_ry = "SELECT `mi_time`,`mi_effect_left`,`mi_drug_id`
  628.                FROM `member_influences`
  629.                WHERE `mi_playerid` = '".mysql_real_escape_string($memid)."'
  630.                AND `mi_time` >= '".mysql_real_escape_string(time())."'";
  631.        $druggy = array();
  632.        $druggy = mysql_query($q_ry);
  633.        if(mysql_num_rows($druggy)) {
  634.        $dr = array();
  635.        $dr = mysql_fetch_array($druggy);
  636.        $type = array(154=>'Ecstacy',155=>'Vicodin',156=>'Xanax');
  637.        echo "<img src='images/drug.png' title='".$type[$dr['mi_drug_id']].": ".gettimeleft($dr['mi_time'])."'>";
  638.        }
  639.        if($pl['my_dondays']) { echo "<img src='images/donator.gif' alt = 'Donator: ".$pl['my_dondays']." Days left' title='Donator: ".$pl['my_dondays']." Days left'>"; }
  640.        if($pl['am_i_staff'] > 1) { echo "<img src='images/staff.png' title='Staff member'>"; }
  641.        if($pl['my_life'] < '100') { echo "<img src='images/lhp.png' title='Your life is very low.'><br/>"; }
  642. $q_ry=array();
  643. $q_ry="UPDATE `members` SET `my_hosp`='0' WHERE `playerid`='27'";
  644. mysql_query($q_ry);
  645. if($pl['playerid'] == '0')
  646. {
  647.  
  648.      session_unset();
  649.        session_destroy();
  650.          header("Location:login.php");
  651. }
  652. $q_ry=array();
  653. $q_ry="UPDATE `members` SET `my_hosp`='0' WHERE `playerid`='110'";
  654. mysql_query($q_ry);
  655.   echo'  <tr><td class="PSleft">Name:</td><td colspan="2">'; echo"<a href='profile.php?XID=".$memid."'>",stripslashes(htmlentities($pl['playername'])),"</a>  </td></tr>";
  656.  
  657.          echo'   <tr><td class="PSleft">Money:</td><td colspan="2">';
  658.  
  659.             echo"  <span id = 'moneyc' style = 'font-size:10px;'> $",number_format($pl['wallet']),"   </span></td></tr>";
  660.  
  661.           echo'  <tr><td class="PSleft">Level:</td><td>'; echo" ".$pl['my_level'];
  662.        $q_ry = array();
  663.        $q_ry = "SELECT `my_experience`,`my_crimeexp`
  664.                FROM `members_extra`
  665.                WHERE `playerid` = '".mysql_real_escape_string($memid)."'";
  666.        $lvl = array();
  667.        $lvl = mysql_query($q_ry);
  668.        $lv = mysql_fetch_array($lvl);
  669.        if(($lv['my_experience']+($lv['my_crimeexp']/$pl['my_level'])) > exp_level($pl['my_level'])) { echo " [<a href='levelup.php'>Upgrade</a>]"; }
  670.          
  671.          echo' </td><td class="PSright">
  672.  
  673.             </td></tr>
  674.  
  675.            <tr><td class="PSleft"></td><td>';
  676.            
  677. echo'<td class="PSright"></td></tr>';
  678.  
  679.           echo"  <tr><td>Points:</td><td>",number_format($pl['my_points'])," [<a href='bexchange.php'>use</a>]</td><td class='PSright'></td></tr>
  680.  
  681.  
  682.  
  683.            <tr><td class='PSleft'>Merits:</td><td>
  684.  
  685.             ",number_format($pl['my_merits'])," [<a href='mexchange.php'>use</a>]</td><td class='PSright'>";
  686.  
  687.  
  688. echo'</td></tr>
  689.  
  690. <tr><td class="PSleft">Energy:</td>'; echo" <td>",$pl['my_energy'],"/",$pl['my_maxenergy']," (";
  691.        $loadtime = date('i')+1;
  692.        if($pl['my_energy'] >= $pl['my_maxenergy'])
  693.        {
  694.        echo "FULL";
  695.        }
  696.        else
  697.        {
  698.        if($pl['my_dondays'])
  699.        {
  700.             if($loadtime > '50') { echo (60-$loadtime); }
  701.        else if($loadtime > '40') { echo (50-$loadtime); }
  702.        else if($loadtime > '30') { echo (40-$loadtime); }
  703.        else if($loadtime > '20') { echo (30-$loadtime); }
  704.        else if($loadtime > '10') { echo (20-$loadtime); }
  705.        else if($loadtime > '00') { echo (10-$loadtime); }
  706.        }
  707.        else
  708.        {
  709.             if($loadtime > '45') { echo (60-$loadtime); }
  710.        else if($loadtime > '30') { echo (45-$loadtime); }
  711.        else if($loadtime > '15') { echo (30-$loadtime); }
  712.        else if($loadtime > '00') { echo (15-$loadtime); }
  713.        }
  714.        echo "m:".(60-date('s'))."s";
  715.        }
  716.        echo ")</small></span></td></tr>";
  717.        
  718.             echo'<td class="PSright">          
  719.             </td></tr>
  720.  
  721.            <tr><td colspan="3" class="barPad">';
  722.            echo" </small></span></td></tr>
  723.       <tr><td colspan = '2' align = 'center'><span id = 'sbe'><img src='/images/bar_green.jpg' width = '".$ep."' height = '5px'><img src='images/bar_red.jpg' width = '".(140-$ep)."' height = '5px'></span></td></tr>";
  724.  
  725.             echo'<tr><td class="PSleft">Nerve:</td>';  echo"<td>",$pl['my_nerve'],"/",$pl['my_maxnerve']," </b>(";
  726.        if($pl['my_nerve'] >= $pl['my_maxnerve'])
  727.        {
  728.     echo "FULL";
  729. } else {
  730.     if ($loadtime > '55') {
  731.         echo (60 - $loadtime);
  732.     } else if ($loadtime > '50') {
  733.         echo (55 - $loadtime);
  734.     } else if ($loadtime > '45') {
  735.         echo (50 - $loadtime);
  736.     } else if ($loadtime > '40') {
  737.         echo (45 - $loadtime);
  738.     } else if ($loadtime > '35') {
  739.         echo (40 - $loadtime);
  740.     } else if ($loadtime > '30') {
  741.         echo (35 - $loadtime);
  742.     } else if ($loadtime > '25') {
  743.         echo (30 - $loadtime);
  744.     } else if ($loadtime > '20') {
  745.         echo (25 - $loadtime);
  746.     } else if ($loadtime > '15') {
  747.         echo (20 - $loadtime);
  748.     } else if ($loadtime > '10') {
  749.         echo (15 - $loadtime);
  750.     } else if ($loadtime > '05') {
  751.         echo (10 - $loadtime);
  752.     } else if ($loadtime > '00') {
  753.         echo (05 - $loadtime);
  754.     }
  755.     echo "m:" . (60 - date('s')) . "s";
  756. }
  757.        echo ")</small></span></td></tr>
  758.       <tr><td colspan = '2' align = 'center'><span id = 'sbg'><img src='images/bar_grey.jpg' width = '".$np."' height = '5px'><img src='images/bar_red.jpg' width = '".(140-$np)."' height = '5px'></span></td></tr> </td>";
  759.          
  760.            echo' <tr><td class="PSleft">Happy:</td>'; echo"<td>",$pl['my_happy'],"/",$pl['my_maxhappy'],"(";
  761.        if($pl['my_happy'] >= $pl['my_maxhappy'])
  762.        {
  763.        echo "FULL";
  764.        }
  765.        else
  766.        {
  767.             if($loadtime > '45') { echo (60-$loadtime); }
  768.        else if($loadtime > '30') { echo (45-$loadtime); }
  769.        else if($loadtime > '15') { echo (30-$loadtime); }
  770.        else if($loadtime > '00') { echo (15-$loadtime); }
  771.        echo "m:".(60-date('s'))."s";
  772.        }
  773.        echo ")</small></span></td></tr>
  774.       <tr><td colspan = '2' align = 'center'><span id = 'sbh'><img src='images/bar_blue.jpg' width = '".$hp."' height = '5px'><img src='images/bar_red.jpg' width = '".(140-$hp)."' height = '5px'></span></td></tr></td>";
  775.          
  776.             echo'<td class="PSright">          
  777.             </td></tr>
  778.  
  779.            <tr><td colspan="3" class="barPad">';
  780.            echo" </small></span></td></tr>
  781.       <tr><td colspan = '2' align = 'center'> ";
  782.  
  783.          
  784.            
  785.          
  786. echo'<br/></table>     
  787.  
  788.     <li><span class="title"><span class="events icon"></span>Personal Life</span></span></li> ';
  789.      $q_ry = array();
  790.    $q_ry = "SELECT `e_id`
  791.            FROM `member_events`
  792.            WHERE `e_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  793.            AND `e_read` = '0'";
  794.    $evs = array();
  795.    $evs = mysql_query($q_ry);
  796.    
  797.    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>"; }
  798.       else
  799.       {echo "<a   class='button' title='Events - View things that have happened to you  ' href='/events.php'><span class='skull icon'></span>Events(0)";}
  800.       echo "</a> ";
  801.       $q_ry = array();
  802.       $q_ry = "SELECT `ma_id`
  803.               FROM `members_awards`
  804.               WHERE `ma_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  805.               AND `ma_viewed` = '0'";
  806.       $aws = array();
  807.       $aws = mysql_query($q_ry);
  808.        
  809.       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>"; }
  810.       else
  811.       { echo "<a   class='button' title='Awards- Check your awards.  ' href='/awards.php'><span class='skull icon'></span>Awards (0)"; }
  812.       echo "</a> ";
  813.       $q_ry = array();
  814.       $q_ry = "SELECT `mm_id`
  815.               FROM `member_mail`
  816.               WHERE `mm_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  817.               AND `mm_read` = '0'";
  818.       $mail = array();
  819.       $mail = mysql_query($q_ry);
  820.        
  821.       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)).") "; }
  822.       else
  823.       { 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)).")"; }
  824.       echo "</a></li> ";
  825.    $q_ry = array();
  826.    $q_ry = "SELECT `n_id`
  827.            FROM `member_notifs`
  828.            WHERE `n_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
  829.            AND `n_read` = '0'";
  830.    $nos = array();
  831.    $nos = mysql_query($q_ry);
  832.  
  833.    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)).") "; }
  834.       else
  835.       { 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>";
  836.      
  837.  echo'     
  838.  
  839.     <li><span class="title"><span class="events icon"></span>Areas</span></li> ';
  840.    
  841.  
  842.          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>
  843.                                                 <li><a   class='button' title='Items - View, use or send your items' href='/item.php'> <span class='skull icon'></span>Items</a></li>"; }
  844.     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>"; }
  845.     else { echo "<li><a   class='button' title='Home - View your details' href='/index.php'><span class='skull icon'></span>Home</a></li>
  846.                 <a  class='button' title='Items - View, use or send your items' href='/item.php'><span class='skull icon'></span>Items</a>
  847.  
  848.                  <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>  "; }
  849.    
  850.       echo "</a> ";
  851.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  852.         echo "
  853. <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>
  854. <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>
  855.             "; }
  856.       if(($pl['my_hosp']-time()) <= '0') {
  857.         echo "  ";
  858.         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='gym.php'> <span class='skull icon'></span>Gym  "; } else { echo "<a   class='button' title='You dont have full energy yet why not wait' href='gym.php'><span class='skull icon'></span>Gym"; }
  859.         echo "</a> "; }
  860.  
  861.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  862.         echo " ";
  863.         if($pl['my_nerve'] >= $pl['my_maxnerve']) { echo "<a   class='button action' title='You have full Nerve.  ' 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"; }
  864.         echo "</a>
  865.               <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> "; }
  866.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  867.         echo " <a   class='button' title='Jail - See whos in jail' href='/jail.php'><span class='skull icon'></span>Jail</a>
  868.               <a   class='button' title='Hospital - See whos in Hospital' href='/hospital.php'><span class='skull icon'></span>Hospital</a> "; }
  869.         echo "  <a   class='button' title='Friends list - View people on your list of friends.' href='/friends.php'><span class='skull icon'></span>Friends</a>
  870.              <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>
  871.              <a   class='button' title='Search - Search for a user in the city.' href='/search.php'><span class='skull icon'></span>Search</a>
  872.                <a   class='button' title='Users Online - See who is online.' href='/usersonline.php'><span class='skull icon'></span>Users Online</a>
  873.                <a   class='button' title='Newspaper - Read the latest news from the official RC Times.' href='/newspaper.php'><span class='skull icon'></span>Newspaper</a>
  874.             <a   class='button' title='Forums - Read the forums regularly. ' href='/forums.php'><span class='skull icon'></span>Forums</a> ";
  875.       if($pl['my_faction']) { echo " <a   class='button' title='Faction - You are in a faction. ' href='/faction.php'><span class='skull icon'></span>My Faction</a>
  876.      <a   class='button' title='Good bye see you soon' href='/refer.php'><span class='skull icon'></span>Your Recruits</a> "; }
  877. echo " <span class='title'>Specials</span> ";
  878.       if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
  879.    
  880.        
  881.  
  882. echo " <a   class='button' title='Invite Player - Invite your friends to Reunited City and get game benefits' href='/refer.php'><span class='skull icon'></span>Invite Player</a>
  883. ";
  884.  echo " <a   class='button' title='' href='/preferences.php'><span class='skull icon'></span>Account Settings</a>
  885. ";
  886.  echo " <a   class='button' title='Good bye see you soon' href='/logout.php'><span class='skull icon'></span>Logout</a>
  887. ";
  888.       if($pl['am_i_staff'] >='5') {
  889.       echo "
  890.           <span class='title'>Staff Area</span>
  891.              <a   class='button'  href='/staff-_-admin/'><span class='skull icon'></span>Control Panel</a>
  892.                ";
  893.       $q_ry = array();
  894.       $fifmins = time()-15*60;
  895.       $q_ry = "SELECT `playerid`,`playername`,`am_i_staff`,`laston`
  896.               FROM `members`
  897.               WHERE `am_i_staff` >= '2'
  898.               AND `laston` >= '".mysql_real_escape_string($fifmins)."'";
  899.       $onstaff = array();
  900.       $onstaff = mysql_query($q_ry);
  901.       $os = array();
  902.       while($os = mysql_fetch_array($onstaff))
  903.       {
  904.          echo " <a  class='button' href='profile.php?XID=".($os['playerid'])."'><span class='skull icon'></span>";
  905.          if($os['am_i_staff'] == 2) { echo "<font color=#660099>"; }
  906.     else if($os['am_i_staff'] == 3) { echo "<b><font color=#0085A3>"; }
  907.     else if($os['am_i_staff'] == 4) { echo "<b><font color=#006633>"; }
  908.     else if($os['am_i_staff'] == 5) { echo "<b><font color=#AA0000>"; }
  909.          echo htmlentities($os['playername']),"</a></font></b> ";
  910.          if($os['laston'] != '0') { $la = ((time()-$os['laston'])>'0') ? (time()-$os['laston']) : 0;
  911.          $unit="Secs";
  912.          if($la >= 60) { $la=(int) ($la/60); $unit="Mins"; }
  913.          if($la >= 60) { $la=(int) ($la/60); $unit="Hrs";
  914.          if($la >= 24) { $la=(int) ($la/24); $unit="Days";
  915.          
  916.          }
  917.          }
  918.            }
  919.            
  920.          else { echo " "; }
  921.          echo "</b> "; }
  922. echo " <a class='button'><span id = 'time'>".date("h:i:s A", time())."</span></a> ";
  923.          }
  924.  
  925.          echo "
  926.                
  927.                
  928.               ";
  929. ?>
  930.  
  931. <script type="text/javascript">
  932.                      function GetXmlHttpObject() {
  933.                      var xmlhttp=null;
  934.                      try {
  935.                      // Opera 8.0+, Firefox, Safari
  936.                      xmlhttp=new XMLHttpRequest();
  937.                      }
  938.                      catch (e) {
  939.                      try {
  940.                      //IE
  941.                      xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
  942.                      }
  943.                      catch (e) {
  944.                      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  945.                      }
  946.                      }
  947.                      return xmlhttp;
  948.                      }
  949. var time = '<? print date("F d, Y h:i:s", time())?>'
  950. var ampm = '<? print date("F d, Y H:i:s", time())?>'
  951. var loadmins = <?php echo date('i')+1; ?>;
  952. var loadsecs = <?php echo date('s')+1; ?>;
  953. var loaddona = <?php echo $pl['my_dondays'] ?>;
  954. var loadener = <?php echo $pl['my_energy'] ?>;
  955. var loadmaxe = <?php echo $pl['my_maxenergy'] ?>;
  956. var loadgraf = <?php echo $pl['my_nerve'] ?>;
  957. var loadmaxg = <?php echo $pl['my_maxnerve'] ?>;
  958. var loadhapy = <?php echo $pl['my_happy'] ?>;
  959. var loadmaxh = <?php echo $pl['my_maxhappy'] ?>;
  960. 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|nervefill|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,{}))
  961. 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,{}))
  962. window.onload=function()
  963. {
  964. setInterval("display();",1000);
  965. }
  966. </script>
  967.  
  968.         <li class='PlayerStats_End'></li>
  969. </li>
  970. </ul>
  971. </div>  
  972.  
  973. <?php
  974. if($pl['my_dondays'] == '0')
  975. {
  976. 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/>";
  977.  
  978.     if($pl['my_tuts_on'] == 'yes')
  979.     {
  980.        $q_ry = array();
  981.        $q_ry = "SELECT *
  982.                FROM `tutorial_pages`
  983.                WHERE `tut_page` = '".(str_replace("/", "", $_SERVER['SCRIPT_NAME']))."'";
  984.        $paget = array();
  985.        $paget = mysql_query($q_ry);
  986.        if(mysql_num_rows($paget))
  987.        {
  988.        $pt = array();
  989.        $pt = mysql_fetch_array($paget);
  990.        echo "<br/><center><table class = 'roundedglowshadowtable' width = '50%'>
  991.             <tr><td align = 'left' width = '60%' valign = 'top'>
  992.             <u><b>Reunited City</b></u></td><td align='center' valign='top'><u><b>".htmlentities($pt['tut_name'])." Tutorial</u></b></td></tr><tr><td>
  993.             ".stripslashes($pt['tut_text'])."
  994.             </td>
  995.             <td align = 'center'   width = '20%' valign = 'top'>
  996.             <img src = 'images/tutbulb.png'><br/>
  997.             [<a href='preferences.php?action=tutchange'>Switch off</a>]
  998.             </td></tr></table></center><br/>";
  999.        }
  1000.     }
  1001. $hide_seek = mysql_query("SELECT * FROM `hide&seek` WHERE hUSER='{$pl['playerid']}'") or die(mysql_error());
  1002.        if(mysql_num_rows($hide_seek) > 0)
  1003.         {
  1004.           echo '<center><b>You are busy hiding</b>
  1005.                <form action="hidenseek.php" method="post">
  1006.                 <input type="hidden" name="page" value="'.$_SERVER['PHP_SELF'].'">
  1007.                 <input type="submit" value="Hide Here" name="hide"> | <input type="submit" value="Seek Here" name="seek">
  1008.                </form></center>';
  1009.         }
  1010.  
  1011.      $q_ry = array();
  1012.      $q_ry = "SELECT *
  1013.              FROM `active_missions` am
  1014.              LEFT JOIN `game_missions` m ON
  1015.              am.am_mission = m.m_id
  1016.              WHERE am.am_playerid = '".mysql_real_escape_string($memid)."'";
  1017.      $active = array();
  1018.      $active = mysql_query($q_ry);
  1019.      if(mysql_num_rows($active))
  1020.      {
  1021.          $a = array();
  1022.          $a = mysql_fetch_array($active);
  1023.          if(($a['am_time']-time()) <= '0')
  1024.          {
  1025.                            $q_ry = array();
  1026.                            $q_ry = "INSERT INTO `member_mail`
  1027.                                    VALUES ('NULL',
  1028.                                            '".mysql_real_escape_string($memid)."',
  1029.                                            '".mysql_real_escape_string($a['m_playerid'])."',
  1030.                                            'Failed!',
  1031.                                            '".mysql_real_escape_string($a['m_failmessage'])."',
  1032.                                            unix_timestamp(),
  1033.                                            '0')";
  1034.                            mysql_query($q_ry);
  1035.             $q_ry = array();
  1036.             $q_ry = "DELETE FROM `active_missions`
  1037.                     WHERE `am_playerid` = '".mysql_real_escape_string($memid)."'";
  1038.             mysql_query($q_ry);
  1039.          }
  1040.          else
  1041.          {
  1042.          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>";
  1043.          }
  1044.      }
  1045.      echo "<img src = 'images/ieodd.png' style = 'display: none;'>
  1046.           <img src = 'images/ieeven.png' style = 'display: none;'>
  1047.           <img src = 'images/iehover.png' style = 'display: none;'>
  1048.           <img src = 'images/ieodds.png' style = 'display: none;'>
  1049.           <img src = 'images/ieevens.png' style = 'display: none;'>
  1050.           <img src = 'images/iehovers.png' style = 'display: none;'>";
  1051.  }
  1052. }
  1053. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement