Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <style type="text/css">
- tr .odd {
- background: url(images/odd.png) repeat-y left top;
- }
- tr .even {
- background: url(images/even.png) repeat-y left top;
- }
- tr .even:hover, tr .odd:hover {
- background: none repeat scroll 0 0 #54C2F0;
- border-bottom-right-radius: 7px;
- border-right: 1px solid transparent;
- box-shadow: 1px 2px 2px #999999;
- cursor: pointer;
- }
- tr .odds {
- background: url(images/odd.png) repeat-y left top;
- }
- tr .evens {
- background: url(images/even.png) repeat-y left top;
- }
- tr .evens:hover, tr .odds:hover{
- background: none repeat scroll 0 0 #54C2F0;
- border-bottom-right-radius: 7px;
- border-right: 1px solid transparent;
- box-shadow: 1px 2px 2px #999999;
- cursor: pointer;
- }
- input {
- font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
- background-color: #FFFFFF;
- -moz-border-radius: 7px;
- -webkit-border-radius: 5px;
- border:1px solid #000000;
- }
- input.nostyle {
- border:0px;
- }
- #top_header-wrap {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- }
- #hederimage {
- height: 145px;
- background: url( ../images/login_images/blcbannerlogin3.png) no-repeat center #333333;
- valign: center;
- }
- #headeroverlay {
- width: 85%;
- margin: 0 auto;
- position: relative;
- }
- #top_header h1 {
- color: #beffbf;
- text-align: right;
- width: 290px;
- margin: 0;
- position: transparent;
- left: 0;
- top: 20px;
- }
- #top_header h1 em{
- color: #90b874;
- font-size: small;
- display: block;
- }
- #top_header ul {
- margin: 0;
- padding: 0;
- list-style: none;
- position: absolute;
- top: 8px;
- right: 0;
- }
- #top_header ul li {
- float: left;
- }
- #top_header ul li a{
- color: #90b874;
- font-weight: bold;
- font-size: 1.4em;
- text-decoration: none;
- }
- #top_header ul li a:hover {
- color: #beffbf;
- }
- main {
- font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color:#FFFFFF ;
- font-weight: 800;
- text-shadow: #363636 0px 0px 4px;
- }
- .crime_result {
- border:1px solid #000000;
- border-radius:5px;
- background-color:#FFFFFF;
- font-weight:bold;
- }
- .crime_stats {
- border:1px solid #000000;
- border-radius:5px;
- color:#999999;
- background-color:#555555;
- }
- #crimelink:hover{
- background-color:#888888;
- color:#222222;
- cursor:pointer;
- }
- #tooltip {position:absolute;
- font-size:12px;
- z-index: 99999999;
- min-width: 50px;
- text-shadow: none !important;
- background: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#262626));
- background: -moz-linear-gradient(top, #333333, #262626);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4E4E4E', endColorstr='#262626');
- border: 1px solid #3A3A3A;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-radius: 5px;
- box-shadow: 0px 0px 5px #000000;
- text-align:center;
- padding-left: 10px;
- padding-right: 10px;
- }
- #tooltip .tipHeader {
- height:8px;
- color:#ffffff;
- font-weight:bold;
- padding-bottom:8px;
- background:none;
- }
- #tooltip .tipBody {
- background: #000000;
- padding:5px;
- }
- #tooltip .tipFooter {
- height:8px;
- background:none;
- }
- .stats-bar-fill {
- height: 6px;
- }
- .clock_body {
- background: url("../images/crbar.png") repeat scroll 0 0 transparent;
- border: 1px solid #F1EFE1;
- border-radius: 10px 10px 10px 10px;
- color: #000000;
- cursor: default;
- text-align: center;
- padding-left:5px;
- padding-right:5px;
- font-weight:bold;
- text-align:center;
- font-size:11px;
- width: 55px;
- }
- #item_wrapper{
- border:1px solid #000000;
- text-align:center;
- cursor:pointer;
- }
- #item_wrapper:hover{
- background-color:#AABBCC;
- }
- .item_links{
- background-color:#F5FFFA;
- font-weight:bold;
- width:100%;
- }
- *html #tooltip .tipHeader {margin-bottom:-6px;}
- </style>
- <style> #all > tr {
- float: left; width: 200px;
- padding: 0 10px 0 0;
- }
- #all .turf_header {
- text-decoration: none;
- display: block;
- width:100%;
- border-radius: 20px;
- background:green;
- color: white;
- text-align: center;
- margin: 0 0 5px 0;
- }
- #all a {
- text-decoration: none;
- display: block;
- padding: 10px;
- color: white;
- text-align: center;
- margin: 0 0 5px 0;
- -webkit-transition: all 0.2s ease;
- -moz-transition: all 0.2s ease;
- -o-transition: all 0.2s ease;
- }
- #all:hover a {
- opacity: 0.2;
- }
- #all:hover tr:hover a {
- opacity: 0.5;
- }
- #all:hover tr:hover a:hover {
- opacity: 1;
- }</style>
- <link href="/css/banner.css" media="all" rel="stylesheet" type="text/css">
- <link href='http://bravelandcity.com/css/newcss.css' rel='stylesheet' type='text/css'/>
- <link REL="SHORTCUT ICON" HREF="blc_favicon.ico ">
- <title>BraveLand City</title>
- <link type="text/css" rel="stylesheet" media="all" href="../css/chat.css" />
- <link type="text/css" rel="stylesheet" href="css/popup.css" />
- <link type="text/css" rel="stylesheet" href="css/profiles.css" />
- <link rel="stylesheet" type="text/css" href="css/incrementing.css" />
- <link type="text/css" rel="stylesheet" href="css/main_chat.css" />
- <link type="text/css" rel="stylesheet" href="css/style.css" />
- <link href="/css/lolno.css" media="all" rel="stylesheet" type="text/css">
- <link href="/css/banner.css" media="all" rel="stylesheet" type="text/css">
- <link href="/css/dock.css" rel="stylesheet" type="text/css" />
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <script type="text/javascript" src="../js/jquery.js"></script>
- <script type="text/javascript" src="../js/incrementing.js"></script>
- <script src="../js/jquery-1.4.2.js" type="text/javascript"></script>
- <script type="text/javascript" src="../js/dock.js"></script>
- <script src="../js/popups.js" type="text/javascript"></script>
- <script type = 'text/javascript'>
- var timeoutId;
- $(document).ready(function() {
- $('[rel=tooltip]').mouseover(function(e) {
- var tip = $(this).attr('title');
- var tiptitle = $(this).attr('id');
- $(this).attr('title','id','');
- $(this).css('cursor','pointer');
- $(this).append('<div id="tooltip"><div class="tipHeader">' + tiptitle + '</div><div class="tipBody">' + tip + '</div><div class="tipFooter"></div></div>');
- }).mouseout(function() {
- $(this).attr('title',$('.tipBody').html(),'id');
- $(this).children('div#tooltip').remove();
- });
- });
- </script>
- <script type="text/javascript">
- $(document).ready(
- function()
- {
- $('#dock').Fisheye(
- {
- maxWidth: 50,
- items: 'a',
- itemsText: 'span',
- container: '.dock-container',
- itemWidth: 40,
- proximity: 90,
- halign : 'center'
- }
- )
- }
- );
- </script>
- <script language="javascript" type="text/javascript">
- var timeOut = new Array();
- function postFormAjax(formname, url, number)
- {
- var xmlhttp;
- if (window.XMLHttpRequest)
- {
- xmlhttp=new XMLHttpRequest();
- }
- else
- {
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- if(xmlhttp)
- {
- var fields = new Array();
- if(formname)
- {
- var ajax = formname;
- }
- for(var x = 0; x < eval("document."+ajax+".elements.length"); x++)
- {
- eval("fields.push(document."+ajax+".elements[x].name+'='+document."+ajax+".elements[x].value)");
- }
- var sendf = fields.join('&');
- xmlhttp.open("POST", url, true);
- xmlhttp.onreadystatechange = function()
- {
- if(xmlhttp.readyState == 4)
- {
- if(xmlhttp.status == 200)
- {
- var elemn = "actionstatus" + number;
- document.getElementById(elemn).innerHTML = '';
- document.getElementById(elemn).innerHTML = xmlhttp.responseText;
- }
- }
- }
- xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- xmlhttp.send(sendf);
- }
- }
- function loadNotes() {
- var xmlhttp;
- if(window.XMLHttpRequest) {
- xmlhttp = new XMLHttpRequest();
- }
- else
- {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=function()
- {
- if(xmlhttp.readyState==4) {
- document.getElementById("shownotes").innerHTML = xmlhttp.responseText;
- }
- }
- xmlhttp.open("GET", "staffnotes.php?noteLoader=true", true);
- xmlhttp.send(null);
- }
- function loadBar(type, url) {
- var xmlhttp;
- if(window.XMLHttpRequest) {
- xmlhttp = new XMLHttpRequest();
- }
- else
- {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=function()
- {
- if(xmlhttp.readyState==4) {
- var elemnt = "BAR" + type;
- document.getElementById(elemnt).innerHTML = xmlhttp.responseText;
- }
- }
- xmlhttp.open("GET", url, true);
- xmlhttp.send(null);
- }
- function resetBar(elem) {
- document.getElementById(elem).innerHTML = '';
- }
- function startChat(who) {
- var xmlhttp;
- if(window.XMLHttpRequest) {
- xmlhttp = new XMLHttpRequest();
- }
- else
- {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=function()
- {
- if(xmlhttp.readyState==4) {
- loadBar('openchats', 'bar.php?load=chats');
- }
- }
- var url = "bar.php?load=start&id=" + who;
- xmlhttp.open("GET", url, true);
- xmlhttp.send(null);
- }
- // run the function below once the DOM(Document Object Model) is ready
- $(document).ready(function() {
- // trigger the function when clicking on an assigned element
- $(".toggleAd").click(function () {
- // check the visibility of the next element in the DOM
- if ($(this).next().is(":hidden")) {
- $(this).next().slideDown("medium"); // slide it down
- } else {
- $(this).next().slideUp("medium"); // hide it
- }
- });
- });
- $(document).ready(function() {
- // trigger the function when clicking on an assigned element
- $(".toggleSec").click(function () {
- // check the visibility of the next element in the DOM
- if ($(this).next().is(":hidden")) {
- $(this).next().slideDown("medium"); // slide it down
- } else {
- $(this).next().slideUp("medium"); // hide it
- }
- });
- });
- $(document).ready(function() {
- // trigger the function when clicking on an assigned element
- $(".toggleMod").click(function () {
- // check the visibility of the next element in the DOM
- if ($(this).next().is(":hidden")) {
- $(this).next().slideDown("medium"); // slide it down
- } else {
- $(this).next().slideUp("medium"); // hide it
- }
- });
- });
- $(document).ready(function() {
- // trigger the function when clicking on an assigned element
- $(".toggleHelp").click(function () {
- // check the visibility of the next element in the DOM
- if ($(this).next().is(":hidden")) {
- $(this).next().slideDown("medium"); // slide it down
- } else {
- $(this).next().slideUp("medium"); // hide it
- }
- });
- });
- $(document).ready(function() {
- // trigger the function when clicking on an assigned element
- $(".toggleSnote").click(function () {
- // check the visibility of the next element in the DOM
- if ($(this).next().is(":hidden")) {
- $(this).next().slideDown("medium"); // slide it down
- } else {
- $(this).next().hide(); // hide it
- }
- });
- });
- $(document).ready(function() {
- // trigger the function when clicking on an assigned element
- $("div#NSbutton").click(function () {
- // check the visibility of the next element in the DOM
- $(this).hide();
- });
- });
- function EnterSub(e, id)
- {
- var key = (e.keyCode ? e.keyCode : e.which);
- if(key == 13) {
- var clicker = 'post' + id;
- document.getElementById(clicker).click();
- }
- }
- function closeMainChatBox(chatboxtitle,chatboxno) {
- $('#chatbox_'+chatboxtitle).css('display','none');
- loadBar('window'+chatboxno, 'bar.php?load=min&id='+chatboxtitle);
- }
- </script>
- </head>
- <body>
- <left style="background-color:#4d4d4d;">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <?php
- ob_start();
- ob_flush();
- $memid=$_SESSION['playerid'];
- $player_information = mysql_query("SELECT m.*,ms.*
- FROM `members` m LEFT JOIN `members_extra` ms ON ms.playerid=m.playerid
- WHERE m.playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'");
- $pl = mysql_fetch_array($player_information);
- $_SESSION['playername'] == $pl['playername'];
- $legalview = 1;
- if($_SESSION['attacking'])
- {
- header('location:run.php');
- }
- if($_SESSION['global_win'])
- {
- echo "
- <script language='javascript' type='text/javascript'>
- window.onload = loadBar('window1', 'bar.php?load=start&id=global');
- </script>
- ";
- }
- if($_SESSION['faction_win'])
- {
- echo "<script language='javascript' type='text/javascript'>
- window.onload = loadBar('window2', 'bar.php?load=start&id=faction');
- </script>
- ";
- }
- $jorh = array();
- $jorh = mysql_query("SELECT `my_jail`,`my_hosp` FROM `members` WHERE
- `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'");
- $joh = array();
- $joh = mysql_fetch_array($jorh);
- $bgc = array(); $sides = array(); $banner = array();
- if($joh['my_jail'] > gmtime()) { $bgc='CD853F'; $sides='j'; } else
- if($joh['my_hosp'] > gmtime()) { $bgc='FDFDFD'; $sides='h'; } else
- { $bgc='bdbdbd'; $sides=''; }
- if(!mysql_num_rows(mysql_query("SELECT * FROM `memberstats` WHERE `playerid`='".mysql_real_escape_string($memid)."'")))
- {
- $q_ry="INSERT INTO `memberstats` VALUES('".mysql_real_escape_string($memid)."','10','10','10','10','10','10','10')";
- mysql_query($q_ry);
- }
- $q_ry = "SELECT lc.lc_time,ed.edu_name
- FROM `live_courses` lc
- LEFT JOIN `educate_courses` ed
- ON lc.lc_course = ed.edu_id
- WHERE lc.lc_playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'";
- $oncrs = array();
- $oncrs = mysql_query($q_ry);
- $q_ry = "SELECT `a_ammount`,`a_time`
- FROM `bank_accounts`
- WHERE `a_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
- $bnka = array();
- $bnka = mysql_query($q_ry);
- $q_ry = "SELECT `my_job`
- FROM `members_extra`
- WHERE `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
- $mjb = array();
- $mjb = mysql_fetch_array(mysql_query($q_ry));
- $ep = (int)(($pl['my_energy']/$pl['my_maxenergy'])*140);
- if($ep > 140)
- {
- $ep = 140;
- }
- $np=(int)(($pl['my_nerve']/$pl['my_maxnerve'])*140);
- if($np > 140)
- {
- $np = 140;
- }
- $hp=(int)(($pl['my_happy']/$pl['my_maxhappy'])*140);
- if($hp > 140)
- {
- $hp = 140;
- }
- $rsp=(int)(($pl['my_respect']/$pl['my_maxrespect'])*140);
- if($rsp > 140)
- {
- $rsp = 140;
- }
- ?>
- <tr bgcolor="green">
- <div id="hederimage">
- </div>
- </div>
- </tr>
- <table width="98%" border="0" cellpadding="0" cellspacing="0" class="mainpagearea" bgcolor="transparent">
- <br />
- <center>
- <tr>
- <td width="160px" height="750px" bgcolor="#4d4d4d" valign="top" class="mainmenuarearound" align="left">
- <div id="MenuArea">
- <ul style="margin-top:0px;">
- <li id="PlayerStats">
- <span id='keep_alive'>
- <table cellpadding="0" cellspacing="0" id="PlayerStatsTable">
- <?php
- echo "<img src='images/".$pl['my_gender'].".gif' title = 'You are a ".$pl['my_gender'].".'>";
- if($mjb['my_job']) { echo "<img src='images/";
- if($mjb['my_job'] == '1') { echo "army.png' alt = 'Job: Army' title='Job: Army"; }
- if($mjb['my_job'] == '2') { echo "market.png' alt = 'Job: Grocer' title='Job: Grocer"; }
- if($mjb['my_job'] == '3') { echo "casino.png' alt = 'Job: Casino' title='Job: Casino"; }
- echo "' title = 'You currently have a job.'>"; }
- if($pl['my_faction']) {
- $q_ry = array();
- $q_ry = "SELECT `fac_name`
- FROM `faction_s`
- WHERE `fac_id` = '".mysql_real_escape_string($pl['my_faction'])."'";
- $fn = array();
- $fn = mysql_fetch_array(mysql_query($q_ry));
- echo "<img src='images/faction.png' alt = 'Crew: ".$fn['fac_name']."' title = 'You are part of the ".$fn['fac_name']." crew.'>";
- }
- if($pl['my_partner']) {
- $q_ry = array();
- $q_ry = "SELECT `playername`
- FROM `members`
- WHERE `playerid` = '".mysql_real_escape_string($pl['my_partner'])."'";
- $pn = array();
- $pn = mysql_fetch_array(mysql_query($q_ry));
- echo "<img src='images/spouse.png' alt = 'Spouse: ".$pn['playername']."' title='Spouse: ".$pn['playername']."'>";
- }
- if(mysql_num_rows($bnka)) {
- $bk = array();
- $bk = mysql_fetch_array($bnka);
- echo "<img src='images/bank.png' alt = 'Investment: ".money_alter($bk['a_ammount'])." - ".gettimeleft($bk['a_time'])."' title='Investment: ".money_alter($bk['a_ammount'])." -
- ".gettimeleft($bk['a_time'])."'>";
- }
- if(mysql_num_rows($oncrs)) {
- $onc = array();
- $onc = mysql_fetch_array($oncrs);
- echo "<img src='images/education.png' alt = '".$onc['edu_name'].": ".gettimeleft($onc['lc_time'])."' title='".$onc['edu_name'].": ".gettimeleft($onc['lc_time'])."'>";
- }
- $q_ry = array();
- $q_ry = "SELECT `mi_time`,`mi_effect_left`,`mi_drug_id`
- FROM `member_influences`
- WHERE `mi_playerid` = '".mysql_real_escape_string($memid)."'
- AND `mi_time` >= '".mysql_real_escape_string(time())."'";
- $druggy = array();
- $druggy = mysql_query($q_ry);
- if(mysql_num_rows($druggy)) {
- $dr = array();
- $dr = mysql_fetch_array($druggy);
- $type = array(154=>'Ecstacy',155=>'Vicodin',156=>'Xanax');
- echo "<img src='images/drug.png' title='".$type[$dr['mi_drug_id']].": ".gettimeleft($dr['mi_time'])."'>";
- }
- if($pl['my_dondays']) { echo "<img src='images/donator.gif' alt = 'Donator: ".$pl['my_dondays']." Days left' title='Donator: ".$pl['my_dondays']." Days left'>"; }
- if($pl['am_i_staff'] > 1) { echo "<img src='images/staff.png' title='Staff member'>"; }
- if($pl['my_life'] < '100') { echo "<img src='images/lhp.png' title='Your life is very low.'><br/>"; }
- $q_ry=array();
- $q_ry="UPDATE `members` SET `my_hosp`='0' WHERE `playerid`='27'";
- mysql_query($q_ry);
- if($pl['playerid'] == '0')
- {
- session_unset();
- session_destroy();
- header("Location:home.php");
- }
- $q_ry=array();
- $q_ry="UPDATE `members` SET `my_hosp`='0' WHERE `playerid`='110'";
- mysql_query($q_ry);
- echo' <tr><td class="PSleft">Name:</td><td colspan="2">'; echo"<a href='profile.php?XID=".$memid."'>",stripslashes(htmlentities($pl['playername'])),"</a> </td></tr>";
- echo' <tr><td class="PSleft">Money:</td><td colspan="2">';
- echo" <span id = 'moneyc' style = 'font-size:10px;'> $",number_format($pl['wallet'])," </span></td></tr>";
- echo' <tr><td class="PSleft">Level:</td><td>'; echo" ".$pl['my_level'];
- $q_ry = array();
- $q_ry = "SELECT `my_experience`,`my_crimeexp`
- FROM `members_extra`
- WHERE `playerid` = '".mysql_real_escape_string($memid)."'";
- $lvl = array();
- $lvl = mysql_query($q_ry);
- $lv = mysql_fetch_array($lvl);
- if(($lv['my_experience']+($lv['my_crimeexp']/$pl['my_level'])) > exp_level($pl['my_level'])) { echo " [<a href='levelup.php'>Upgrade</a>]"; }
- echo' </td><td class="PSright">
- </td></tr>
- <tr><td class="PSleft"></td><td>';
- echo'<td class="PSright"></td></tr>';
- echo" <tr><td>Diamonds:</td><td>",number_format($pl['my_points'])," [<a href='bexchange.php'>use</a>]</td><td class='PSright'></td></tr>
- <tr><td class='PSleft'>Merits:</td><td>
- ",number_format($pl['my_merits'])," [<a href='mexchange.php'>use</a>]</td><td class='PSright'>";
- echo'</td></tr>
- <tr><td class="PSleft">Energy:</td>'; echo" <td>",$pl['my_energy'],"/",$pl['my_maxenergy']," (";
- $loadtime = date('i')+1;
- if($pl['my_energy'] >= $pl['my_maxenergy'])
- {
- echo "00.00";
- }
- else
- {
- if($pl['my_dondays'])
- {
- if($loadtime > '50') { echo (60-$loadtime); }
- else if($loadtime > '40') { echo (50-$loadtime); }
- else if($loadtime > '30') { echo (40-$loadtime); }
- else if($loadtime > '20') { echo (30-$loadtime); }
- else if($loadtime > '10') { echo (20-$loadtime); }
- else if($loadtime > '00') { echo (10-$loadtime); }
- }
- else
- {
- if($loadtime > '45') { echo (60-$loadtime); }
- else if($loadtime > '30') { echo (45-$loadtime); }
- else if($loadtime > '15') { echo (30-$loadtime); }
- else if($loadtime > '00') { echo (15-$loadtime); }
- }
- echo "m:".(60-date('s'))."s";
- }
- echo ")</small></span></td></tr>";
- echo'<td class="PSright">
- </td></tr>
- <tr><td colspan="3" class="barPad">';
- echo" </small></span></td></tr>
- <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>";
- echo'<tr><td class="PSleft">Graft::</td>'; echo"<td>",$pl['my_nerve'],"/",$pl['my_maxnerve']," </b>(";
- if($pl['my_nerve'] >= $pl['my_maxnerve'])
- {
- echo "00.00";
- }
- else
- {
- if($loadtime > '55') { echo (60-$loadtime); }
- else if($loadtime > '50') { echo (55-$loadtime); }
- else if($loadtime > '45') { echo (50-$loadtime); }
- else if($loadtime > '40') { echo (45-$loadtime); }
- else if($loadtime > '35') { echo (40-$loadtime); }
- else if($loadtime > '30') { echo (35-$loadtime); }
- else if($loadtime > '25') { echo (30-$loadtime); }
- else if($loadtime > '20') { echo (25-$loadtime); }
- else if($loadtime > '15') { echo (20-$loadtime); }
- else if($loadtime > '10') { echo (15-$loadtime); }
- else if($loadtime > '05') { echo (10-$loadtime); }
- else if($loadtime > '00') { echo (05-$loadtime); }
- echo "m:".(60-date('s'))."s";
- }
- echo ")</small></span></td></tr>
- <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>";
- echo' <tr><td class="PSleft">Happy:</td>'; echo"<td>",$pl['my_happy'],"/",$pl['my_maxhappy'],"(";
- if($pl['my_happy'] >= $pl['my_maxhappy'])
- {
- echo "00.00";
- }
- else
- {
- if($loadtime > '45') { echo (60-$loadtime); }
- else if($loadtime > '30') { echo (45-$loadtime); }
- else if($loadtime > '15') { echo (30-$loadtime); }
- else if($loadtime > '00') { echo (15-$loadtime); }
- echo "m:".(60-date('s'))."s";
- }
- echo ")</small></span></td></tr>
- <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>";
- echo'<td class="PSright">
- </td></tr>
- <tr><td colspan="3" class="barPad">';
- echo" </small></span></td></tr>
- <tr><td colspan = '2' align = 'center'> ";
- echo'<tr><td class="PSleft">Adrenaline:</td>'; echo"<td>",$pl['my_respect'],"/",$pl['my_maxrespect'],"</small></td></tr>
- <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>
- </td></tr>";
- echo'<br/></table>
- <li><span class="title"><span class="events icon"></span>Personal Life</span></span></li> ';
- $q_ry = array();
- $q_ry = "SELECT `e_id`
- FROM `member_events`
- WHERE `e_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
- AND `e_read` = '0'";
- $evs = array();
- $evs = mysql_query($q_ry);
- 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>"; }
- else
- {echo "<a class='button' title='Events - View things that have happened to you ' href='/events.php'><span class='skull icon'></span>Events(0)";}
- echo "</a> ";
- $q_ry = array();
- $q_ry = "SELECT `ma_id`
- FROM `members_awards`
- WHERE `ma_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
- AND `ma_viewed` = '0'";
- $aws = array();
- $aws = mysql_query($q_ry);
- 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>"; }
- else
- { echo "<a class='button' title='Awards- Check your awards. ' href='/awards.php'><span class='skull icon'></span>Awards (0)"; }
- echo "</a> ";
- $q_ry = array();
- $q_ry = "SELECT `mm_id`
- FROM `member_mail`
- WHERE `mm_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
- AND `mm_read` = '0'";
- $mail = array();
- $mail = mysql_query($q_ry);
- 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)).") "; }
- else
- { 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)).")"; }
- echo "</a></li> ";
- $q_ry = array();
- $q_ry = "SELECT `n_id`
- FROM `member_notifs`
- WHERE `n_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
- AND `n_read` = '0'";
- $nos = array();
- $nos = mysql_query($q_ry);
- 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)).") "; }
- else
- { 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>";
- echo'
- <li><span class="title"><span class="events icon"></span>Areas</span></li> ';
- 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>
- <li><a class='button' title='Items - View, use or send your items' href='/item.php'> <span class='skull icon'></span>Items</a></li>"; }
- 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>"; }
- else { echo "<li><a class='button' title='Home - View your details' href='/index.php'><span class='skull icon'></span>Home</a></li>
- <a class='button' title='Items - View, use or send your items' href='/item.php'><span class='skull icon'></span>Items</a>
- <a class='button' title='Your Pets - Train,Feed ect your dog ' href='/dogs.php'><span class='skull icon'></span>Your Pets</a>
- <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> "; }
- echo "</a> ";
- if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
- echo "
- <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>
- <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>
- "; }
- if(($pl['my_hosp']-time()) <= '0') {
- echo " ";
- 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"; }
- echo "</a> "; }
- if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
- echo " ";
- 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"; }
- echo "</a>
- <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> "; }
- if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
- echo " <a class='button' title='Jail - See whos in jail' href='/jail.php'><span class='skull icon'></span>Jail</a>
- <a class='button' title='Hospital - See whos in Hospital' href='/hospital.php'><span class='skull icon'></span>Hospital</a> "; }
- echo " <a class='button' title='Friends list - View people on your list of friends.' href='/friends.php'><span class='skull icon'></span>Friends</a>
- <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>
- <a class='button' title='Search - Search for a user in the city.' href='/search.php'><span class='skull icon'></span>Search</a>
- <a class='button' title='Users Online - See who is online.' href='/usersonline.php'><span class='skull icon'></span>Users Online</a>
- <a class='button' title='Newspaper - Read the latest news from the official CC Times.' href='/newspaper.php'><span class='skull icon'></span>Newspaper</a>
- <a class='button' title='Forums - Read the forums regularly. ' href='/forums.php'><span class='skull icon'></span>Forums</a> ";
- 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>
- <a class='button' title='Easter Competition.' href='/xmas_town.php'><span class='skull icon'></span>Easter Town</a>
- <a class='button' title='Good bye see you soon' href='/refer.php'><span class='skull icon'></span>Your Recruits</a> "; }
- echo " <span class='title'>Specials</span> ";
- if(($pl['my_hosp']-time()) <= '0' && ($pl['my_jail']-time()) <= '0') {
- echo " <a class='button' title='Turfwars - Join a team and fight to win. ' href='/turfwars.php'><span class='skull icon'></span>Turfwars</a> ";
- }
- 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>
- ";
- echo " <a class='button' title='' href='/preferences.php'><span class='skull icon'></span>Account Settings</a>
- ";
- echo " <a class='button' title='Good bye see you soon' href='/logout.php'><span class='skull icon'></span>Logout</a>
- ";
- if($pl['am_i_staff'] >='5') {
- echo "
- <span class='title'>Staff Area</span>
- <a class='button' href='/the-_-file/'><span class='skull icon'></span>Control panel</a>
- ";
- $q_ry = array();
- $fifmins = time()-15*60;
- $q_ry = "SELECT `playerid`,`playername`,`am_i_staff`,`laston`
- FROM `members`
- WHERE `am_i_staff` >= '2'
- AND `laston` >= '".mysql_real_escape_string($fifmins)."'";
- $onstaff = array();
- $onstaff = mysql_query($q_ry);
- $os = array();
- while($os = mysql_fetch_array($onstaff))
- {
- echo " <a class='button' href='profile.php?XID=".($os['playerid'])."'><span class='skull icon'></span>";
- if($os['am_i_staff'] == 2) { echo "<font color=#660099>"; }
- else if($os['am_i_staff'] == 3) { echo "<b><font color=#0085A3>"; }
- else if($os['am_i_staff'] == 4) { echo "<b><font color=#006633>"; }
- else if($os['am_i_staff'] == 5) { echo "<b><font color=#AA0000>"; }
- echo htmlentities($os['playername']),"</a></font></b> ";
- if($os['laston'] != '0') { $la = ((time()-$os['laston'])>'0') ? (time()-$os['laston']) : 0;
- $unit="Secs";
- if($la >= 60) { $la=(int) ($la/60); $unit="Mins"; }
- if($la >= 60) { $la=(int) ($la/60); $unit="Hrs";
- if($la >= 24) { $la=(int) ($la/24); $unit="Days"; }
- }
- }
- else { echo " "; }
- echo " </b> "; }
- echo " ";
- }
- echo "
- ";
- ?>
- <script type="text/javascript">
- function GetXmlHttpObject() {
- var xmlhttp=null;
- try {
- // Opera 8.0+, Firefox, Safari
- xmlhttp=new XMLHttpRequest();
- }
- catch (e) {
- try {
- //IE
- xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch (e) {
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- }
- return xmlhttp;
- }
- var time = '<? print date("F d, Y h:i:s", time())?>'
- var ampm = '<? print date("F d, Y H:i:s", time())?>'
- var loadmins = <?php echo date('i')+1; ?>;
- var loadsecs = <?php echo date('s')+1; ?>;
- var loaddona = <?php echo $pl['my_dondays'] ?>;
- var loadener = <?php echo $pl['my_energy'] ?>;
- var loadmaxe = <?php echo $pl['my_maxenergy'] ?>;
- var loadgraf = <?php echo $pl['my_nerve'] ?>;
- var loadmaxg = <?php echo $pl['my_maxnerve'] ?>;
- var loadhapy = <?php echo $pl['my_happy'] ?>;
- var loadmaxh = <?php echo $pl['my_maxhappy'] ?>;
- 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,{}))
- 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,{}))
- window.onload=function()
- {
- setInterval("display();",1000);
- }
- </script>
- <li class='PlayerStats_End'></li>
- </li>
- </ul>
- </div>
- <?php
- 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/>";
- if($pl['my_tuts_on'] == 'yes')
- {
- $q_ry = array();
- $q_ry = "SELECT *
- FROM `tutorial_pages`
- WHERE `tut_page` = '".(str_replace("/", "", $_SERVER['SCRIPT_NAME']))."'";
- $paget = array();
- $paget = mysql_query($q_ry);
- if(mysql_num_rows($paget))
- {
- $pt = array();
- $pt = mysql_fetch_array($paget);
- echo "<br/><center><table class = 'roundedglowshadowtable' width = '50%'>
- <tr><td align = 'left' width = '60%' valign = 'top'>
- <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>
- ".stripslashes($pt['tut_text'])."
- </td>
- <td align = 'center' width = '20%' valign = 'top'>
- <img src = 'images/tutbulb.png'><br/>
- [<a href='preferences.php?action=tutchange'>Switch off</a>]
- </td></tr></table></center><br/>";
- }
- }
- $hide_seek = mysql_query("SELECT * FROM `hide&seek` WHERE hUSER='{$pl['playerid']}'") or die(mysql_error());
- if(mysql_num_rows($hide_seek) > 0)
- {
- echo '<center><b>You are busy hiding</b>
- <form action="hidenseek.php" method="post">
- <input type="hidden" name="page" value="'.$_SERVER['PHP_SELF'].'">
- <input type="submit" value="Hide Here" name="hide"> | <input type="submit" value="Seek Here" name="seek">
- </form></center>';
- }
- $q_ry = array();
- $q_ry = "SELECT *
- FROM `active_missions` am
- LEFT JOIN `game_missions` m ON
- am.am_mission = m.m_id
- WHERE am.am_playerid = '".mysql_real_escape_string($memid)."'";
- $active = array();
- $active = mysql_query($q_ry);
- if(mysql_num_rows($active))
- {
- $a = array();
- $a = mysql_fetch_array($active);
- if(($a['am_time']-time()) <= '0')
- {
- $q_ry = array();
- $q_ry = "INSERT INTO `member_mail`
- VALUES ('NULL',
- '".mysql_real_escape_string($memid)."',
- '".mysql_real_escape_string($a['m_playerid'])."',
- 'Failed!',
- '".mysql_real_escape_string($a['m_failmessage'])."',
- unix_timestamp(),
- '0')";
- mysql_query($q_ry);
- $q_ry = array();
- $q_ry = "DELETE FROM `active_missions`
- WHERE `am_playerid` = '".mysql_real_escape_string($memid)."'";
- mysql_query($q_ry);
- }
- else
- {
- 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>";
- }
- }
- echo "<img src = 'images/ieodd.png' style = 'display: none;'>
- <img src = 'images/ieeven.png' style = 'display: none;'>
- <img src = 'images/iehover.png' style = 'display: none;'>
- <img src = 'images/ieodds.png' style = 'display: none;'>
- <img src = 'images/ieevens.png' style = 'display: none;'>
- <img src = 'images/iehovers.png' style = 'display: none;'>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement