Guest User

Style top

a guest
Sep 10th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 64.82 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.  
  5.  
  6. <head>
  7. <HEAD>
  8.  
  9. <style type="text/css">
  10. <!--
  11. body {cursor: url('cursor.ani');}
  12. -->
  13. </style>
  14. </HEAD>
  15. <?php
  16.  
  17.  
  18. $sound = "<embed src='http://murder-city.com/includes/test2.wav' height=0 width=0 hidden=true autostart=true loop=false volume=100 />";
  19.  
  20. $q_ry = array();
  21. $q_ry = "SELECT e_id
  22.            FROM member_events
  23.            WHERE e_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'
  24.            AND e_read = '0'";
  25. $evs  = array();
  26. $evs  = mysql_query($q_ry);
  27. if (mysql_num_rows($evs)) {
  28.     echo "$sound";
  29. }
  30.  
  31.  
  32.  
  33. ?>
  34.         <style type="text/css">
  35.  
  36.        tr .odd {
  37.        background: url(images/odd.png) repeat-y left top;
  38.        }
  39.        tr .even {
  40.        background: url(images/even.png) repeat-y left top;
  41.        }
  42.  body {
  43.        margin-top:0px;
  44.        text-align:center;
  45.        color:black;
  46.        }
  47.        
  48.        a:visited,a:active,a:link {
  49.        color: black;text-decoration: underline;
  50.        }
  51.        a:hover {
  52.        color: black;text-decoration: underline;
  53.        }
  54. <?php
  55. if (ae_detect_ie()) {
  56. ?>
  57.        tr .odd {
  58.        background: url(images/ieodd.png) no-repeat center top;
  59.        }
  60.        tr .even {
  61.        background: url(images/ieeven.png) no-repeat center top;
  62.        }
  63.        tr .even:hover, tr .odd:hover {
  64.        background: url(images/iehover.png) no-repeat center top;
  65.        }
  66.        tr .odds {
  67.        background: url(images/ieodds.png) no-repeat center top;
  68.        }
  69.        tr .evens {
  70.        background: url(images/ieevens.png) no-repeat center top;
  71.        }
  72.        tr .evens:hover, tr .odds:hover {
  73.        background: url(images/iehovers.png) no-repeat center top;
  74.        }
  75.        input {
  76.        border:0px;
  77.        }
  78.        input.nostyle {
  79.        border:0px;
  80.        }
  81.        main {
  82.        font-family:helvetica, arial, geneva, sans-serif;font-size:14px; color: black;
  83.        font-weight: 800px;
  84.        }
  85. <?php
  86. }
  87. ?>
  88. <?php
  89. if (!ae_detect_ie()) {
  90. ?>
  91.        tr .odd {
  92.        background: url(images/odd.png) repeat-y left top;
  93.        }
  94.        tr .even {
  95.        background: url(images/even.png) repeat-y left top;
  96.        }
  97.        tr .even:hover, tr .odd:hover {
  98.        background: url(images/ffhover.png) repeat-y left top;
  99.        }
  100.        tr .odds {
  101.        background: url(images/odd.png) repeat-y left top;
  102.        }
  103.        tr .evens {
  104.        background: url(images/even.png) repeat-y left top;
  105.        }
  106.        tr .evens:hover, tr .odds:hover {
  107.        background: url(images/ffhover.png) repeat-y left top;
  108.        }
  109.        input {
  110.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  111.        background-color: #FFFFFF;
  112.        -moz-border-radius: 7px;
  113.        -webkit-border-radius: 5px;
  114.        border:solid; style="
  115.        background-color:
  116.        #000000; 1px
  117.        padding: 10px;"
  118.        }
  119.        input.nostyle {
  120.        border:0px;
  121.        }
  122.        main {
  123.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  124.        font-weight: 800;
  125.        text-shadow: #363636 0px 0px 4px;
  126.        }
  127. <?php
  128. }
  129. ?>
  130.        .trainbutt {
  131.         -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  132.         -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  133.         box-shadow:inset 0px 1px 0px 0px #ffffff;
  134.         background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  135.         background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
  136.         filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
  137.         background-color:#ededed;
  138.         -webkit-border-top-left-radius:0px;
  139.         -moz-border-radius-topleft:0px;
  140.         border-top-left-radius:0px;
  141.         -webkit-border-top-right-radius:0px;
  142.         -moz-border-radius-topright:0px;
  143.         border-top-right-radius:0px;
  144.         -webkit-border-bottom-right-radius:0px;
  145.         -moz-border-radius-bottomright:0px;
  146.         border-bottom-right-radius:0px;
  147.         -webkit-border-bottom-left-radius:0px;
  148.         -moz-border-radius-bottomleft:0px;
  149.         border-bottom-left-radius:0px;
  150.         text-indent:0;
  151.         border:1px solid #dcdcdc;
  152.         display:inline-block;
  153.         color:#777777;
  154.         font-family:Arial;
  155.         font-size:15px;
  156.         font-weight:normal;
  157.         font-style:normal;
  158.         height:20px;
  159.         line-height:20px;
  160.         width:59px;
  161.         text-decoration:none;
  162.         text-align:center;
  163.         text-shadow:1px 1px 0px #ffffff;
  164. }
  165. .trainbutt:hover {
  166.         background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
  167.         background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
  168.         filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
  169.         background-color:#dfdfdf;
  170. }.trainbutt:active {
  171.         position:relative;
  172.         top:1px;
  173. }
  174. .endbut {
  175.         -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  176.         -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  177.         box-shadow:inset 0px 1px 0px 0px #ffffff;
  178.         background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  179.         background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
  180.         filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
  181.         background-color:#ededed;
  182.         -webkit-border-top-left-radius:0px;
  183.         -moz-border-radius-topleft:0px;
  184.         border-top-left-radius:0px;
  185.         -webkit-border-top-right-radius:0px;
  186.         -moz-border-radius-topright:0px;
  187.         border-top-right-radius:0px;
  188.         -webkit-border-bottom-right-radius:0px;
  189.         -moz-border-radius-bottomright:0px;
  190.         border-bottom-right-radius:0px;
  191.         -webkit-border-bottom-left-radius:0px;
  192.         -moz-border-radius-bottomleft:0px;
  193.         border-bottom-left-radius:0px;
  194.         text-indent:0;
  195.         border:1px solid #dcdcdc;
  196.         display:inline-block;
  197.         color:#777777;
  198.         font-family:Arial;
  199.         font-size:16px;
  200.         font-weight:normal;
  201.         font-style:normal;
  202.         height:55px;
  203.         line-height:55px;
  204.         width:112px;
  205.         text-decoration:none;
  206.         text-align:center;
  207.         text-shadow:1px 1px 0px #ffffff;
  208. }
  209. .endbut:hover {
  210.         background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
  211.         background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
  212.         filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
  213.         background-color:#dfdfdf;
  214.         cursor: pointer;
  215. }.endbut:active {
  216.         position:relative;
  217.         top:1px;
  218. }
  219. .trainbut {
  220.         -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  221.         -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  222.         box-shadow:inset 0px 1px 0px 0px #ffffff;
  223.         background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  224.         background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
  225.         filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
  226.         background-color:#ededed;
  227.         -webkit-border-top-left-radius:0px;
  228.         -moz-border-radius-topleft:0px;
  229.         border-top-left-radius:0px;
  230.         -webkit-border-top-right-radius:0px;
  231.         -moz-border-radius-topright:0px;
  232.         border-top-right-radius:0px;
  233.         -webkit-border-bottom-right-radius:0px;
  234.         -moz-border-radius-bottomright:0px;
  235.         border-bottom-right-radius:0px;
  236.         -webkit-border-bottom-left-radius:0px;
  237.         -moz-border-radius-bottomleft:0px;
  238.         border-bottom-left-radius:0px;
  239.         text-indent:0;
  240.         border:1px solid #dcdcdc;
  241.         display:inline-block;
  242.         color:#777777;
  243.         font-family:Arial;
  244.         font-size:15px;
  245.         font-weight:normal;
  246.         font-style:normal;
  247.         height:20px;
  248.         line-height:20px;
  249.         width:59px;
  250.         text-decoration:none;
  251.         text-align:center;
  252.         text-shadow:1px 1px 0px #ffffff;
  253.         cursor: pointer;
  254. }
  255. .trainbut:hover {
  256.         background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
  257.         background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
  258.         filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
  259.         background-color:#dfdfdf;
  260.         cursor: pointer;
  261. }.trainbut:active {
  262.         position:relative;
  263.         top:1px;
  264. }
  265.        main {
  266.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  267.        font-weight: 800;
  268.        text-shadow: #363636 0px 0px 4px;
  269.        }
  270.        input.chat {
  271.        font-size:10px;
  272.        border:1px lightblue solid;
  273.        cursor:pointer;
  274.        }
  275.        textarea {
  276.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  277.        background-color: #FFFFFF;
  278.        -moz-border-radius: 7px;
  279.        -webkit-border-radius: 5px;
  280.        border:solid; style="
  281.        background-color:
  282.        #000000; 1px
  283.        padding: 10px;"
  284.        }
  285.        textarea.nostyle {
  286.        font-size:10px;
  287.        border:1px lightblue solid;
  288.        }
  289.        .maintable {
  290.        margin-top:10px;
  291.        margin-top:2px;
  292.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;  
  293.        -moz-border-radius: 7px;
  294.        -webkit-border-radius: 5px;
  295.        border: style="
  296.        background-color:
  297.        #000000; 1px solid #000000;
  298.        padding: 5px;"
  299.        }
  300.        .maintable td {
  301.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  302.        font-size:12px;
  303.        }
  304.        .rounded {
  305.        margin-top:2px;
  306.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;  
  307.        -moz-border-radius: 1em;
  308.        -moz-box-shadow: 0px 2px 20px rgba(0,0,0,0.9);
  309.        border: style="
  310.        background-color:
  311.        #ffffff; 1px;
  312.        padding: 5px;"
  313.        }
  314.        .bj {
  315.        margin-top:2px;
  316.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  317.        -moz-border-radius: 10em;
  318.        -moz-box-shadow: 0px 2px 20px rgba(0,0,0,0.9);
  319.        border: style="
  320.        background-color:
  321.        green; 1px;
  322.        padding: 5px;"
  323.        }
  324.        .rounded td.round {
  325.        margin-top:2px;
  326.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  327.        -moz-border-radius: 1em;
  328.        }
  329.        .forum {
  330.        margin-top:2px;
  331.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  332.        background-color:#E3E3E3;
  333.        -moz-border-radius: 1em;
  334.        -moz-box-shadow: 0px 2px 20px rgba(0,0,255,0.9);
  335.        border: style="
  336.        background-color:
  337.        #ffffff; 1px;
  338.        padding: 5px;"
  339.        }
  340.        .red {
  341.        margin-top:2px;
  342.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  343.        background-color:#E3E3E3;
  344.        -moz-border-radius: 1em;
  345.        -moz-box-shadow: 0px 2px 20px rgba(252,3,3,0.9);
  346.        border: style="
  347.        background-color:
  348.        #ffffff; 1px;
  349.        padding: 5px;"
  350.        }
  351.        .orange {
  352.        margin-top:2px;
  353.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  354.        background-color:#E3E3E3;
  355.        -moz-border-radius: 1em;
  356.        -moz-box-shadow: 0px 2px 20px rgba(255,165,0,0.9);
  357.        border: style="
  358.        background-color:
  359.        #ffffff; 1px;
  360.        padding: 5px;"
  361.        }
  362.        .forum td.round {
  363.        margin-top:2px;
  364.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  365.        -moz-border-radius: 1em;
  366.        }
  367.        .properties {
  368.        margin-top:2px;
  369.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  370.        background-color:#E3E3E3;
  371.        -moz-border-radius: 1em;
  372.        -moz-box-shadow: 0px 2px 20px rgba(124,252,0,0.9);
  373.        border: style="
  374.        background-color:
  375.        #ffffff; 1px;
  376.        padding: 5px;"
  377.        }
  378.        .properties td.round {
  379.        margin-top:2px;
  380.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  381.        -moz-border-radius: 1em;
  382.        }
  383.        .properties table.movedin {
  384.        margin-top:2px;
  385.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  386.        -moz-border-radius: 1em;
  387.        }
  388.        .forumreply {
  389.        margin-top:2px;
  390.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  391.        -moz-border-radius: 1em;
  392.        -moz-box-shadow: 0px 2px 20px rgba(255,0,0,1);
  393.        border: style="
  394.        background-color:
  395.        #ffffff; 1px;
  396.        padding: 5px;"
  397.        }
  398.        .forumreply td.round {
  399.        margin-top:2px;
  400.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  401.        -moz-border-radius: 1em;
  402.        }
  403.        .menu {
  404.        margin-top:2px;
  405.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  406.        background-color:#E3E3E3;
  407.        -moz-border-radius: 12px 22px;
  408.        -moz-box-shadow: 0px 2px 20px rgba(0,0,0,0.9);
  409.        border: style="
  410.        background-color:
  411.        #000000; 1px solid #000000;
  412.        padding: 5px;"
  413.        }
  414.        .menu td {
  415.        background-color: #FFFFFF;
  416.        }
  417.        .menu td.a:visited,a:active,a:link {
  418.        color: black;text-decoration: none;
  419.        }
  420.        #banner {
  421.        width:800px;
  422.        height:70px;
  423.        align:center;
  424.        }
  425.        #btmbar {
  426.        bottom:0;
  427.        right:5px;
  428.        position:fixed;
  429.        background-color:#FFFFFF;
  430.        height:25px;
  431.        }
  432.        #staffbar {
  433.        bottom:0px;
  434.        right:0px;
  435.        left:0px;
  436.        border:1px;
  437.        position:fixed;
  438.        text-align: center;
  439.        }
  440.        #BARfrndlist {
  441.        bottom:25px;
  442.        right:9px;
  443.        position:fixed;
  444.        background-color:#A1A1A1;
  445.        width:150px;
  446.        }
  447.        #BARwindow1 {
  448.        bottom:25px;
  449.        right:174px;
  450.        position:fixed;
  451.        background-color:#E3E3E3;
  452.        width:175px;
  453.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  454.        }
  455.        #BARwindow2 {
  456.        bottom:25px;
  457.        right:354px;
  458.        position:fixed;
  459.        background-color:#E3E3E3;
  460.        width:175px;
  461.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  462.        }
  463.        #BARfriends {
  464.        width:150px;
  465.        border:1px #000000 solid;
  466.        }
  467.        .chtbx {
  468.        width:175px;
  469.        border:1px #000000 solid;
  470.        text-align:left;
  471.        }
  472.        .popUp {
  473.        display:none;
  474.        left: auto;
  475.        right: auto;
  476.        }
  477.        #procomments {
  478.        display:none;
  479.        }
  480.        .popUpOpen {
  481.        display:block;
  482.        bottom:230px;
  483.        left: 450px;
  484.        position:fixed;
  485.        background-color:#E3E3E3;
  486.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  487.        margin-top:2px;
  488.        -moz-border-radius: 1em;
  489.        -moz-box-shadow: 0px 2px 20px rgba(0,0,255,0.9);
  490.        border: style="
  491.        background-color:
  492.        #ffffff; 1px;
  493.        padding: 5px;"
  494.        }
  495.        tr .even:hover, tr .odd:hover {
  496.     background: none repeat scroll 0 0 #54C2F0;
  497.     border-bottom-right-radius: 7px;
  498.     border-right: 1px solid transparent;
  499.     box-shadow: 1px 2px 2px #999999;
  500.     cursor: pointer;
  501.        }
  502.        tr .odds {
  503.        background: url(images/odd.png) repeat-y left top;
  504.        }
  505.        tr .evens {
  506.        background: url(images/even.png) repeat-y left top;
  507.        }
  508.        tr .evens:hover, tr .odds:hover{
  509.     background: none repeat scroll 0 0 #54C2F0;
  510.     border-bottom-right-radius: 7px;
  511.     border-right: 1px solid transparent;
  512.     box-shadow: 1px 2px 2px #999999;
  513.     cursor: pointer;
  514. }
  515.        input {
  516.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  517.        background-color: #FFFFFF;
  518.        -moz-border-radius: 7px;
  519.        -webkit-border-radius: 5px;
  520.        border:1px solid #000000;
  521.        }
  522.        input.nostyle {
  523.        border:0px;
  524.        }
  525. #top_header-wrap {
  526.     position: fixed;
  527.     top: 0;
  528.     left: 0;
  529.     width: 100%;   
  530. }
  531.  
  532. #hederimage {
  533.     height: 48px;
  534.     background: url( ../images/headerbgimage.png) repeat-x left bottom;
  535.     valign: center;
  536. }
  537.  
  538. #headeroverlay {
  539.     width: 85%;
  540.     margin: 0 auto;
  541.     position: relative;
  542. }
  543.  
  544. #top_header h1 {
  545.     color: #beffbf;
  546.     text-align: right;
  547.     width: 290px;
  548.     margin: 0;
  549.     position: absolute;
  550.     left: 0;
  551.     top: 20px;
  552. }
  553.  
  554. #top_header h1 em{
  555.     color: #90b874;
  556.     font-size: small;
  557.     display: block;
  558. }
  559.  
  560. #top_header ul {
  561.     margin: 0;
  562.     padding: 0;
  563.     list-style: none;
  564.     position: absolute;
  565.     top: 8px;
  566.     right: 0;
  567. }
  568.  
  569. #top_header ul li {
  570.     float: left;
  571. }
  572.  
  573. #top_header ul li a{
  574.     color: #90b874;
  575.     font-weight: bold;
  576.     font-size: 1.4em;
  577.     text-decoration: none;
  578. }
  579.  
  580. #top_header ul li a:hover {
  581.     color: #beffbf;
  582. }
  583.        main {
  584.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color:#FFFFFF ;
  585.        font-weight: 800;
  586.        text-shadow: #363636 0px 0px 4px;
  587.        }
  588.  
  589. .crime_result {
  590.     border:1px solid #000000;
  591.     border-radius:5px;
  592.     background-color:#FFFFFF;
  593.     font-weight:bold;
  594. }
  595. .crime_stats {
  596.     border:1px solid #000000;
  597.     border-radius:5px;
  598.     color:#999999;
  599.     background-color:#555555;
  600. }
  601. #crimelink:hover{
  602.     background-color:#888888;
  603.     color:#222222;
  604.     cursor:pointer;
  605. }
  606.        #tooltip {position:absolute;
  607.        font-size:12px;
  608.        z-index: 99999999;
  609.        min-width: 50px;
  610.        text-shadow: none !important;
  611.        background: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#262626));
  612.        background: -moz-linear-gradient(top,  #4E4E4E,  #262626);
  613.        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4E4E4E', endColorstr='#262626');
  614.        border: 1px solid #3A3A3A;
  615.        -moz-border-radius: 5px;
  616.        -webkit-border-radius: 5px;
  617.        border-radius: 5px;
  618.        box-shadow: 0px 0px 5px #FFFFFF;
  619.        text-align:center;
  620.        padding-left: 10px;
  621.        padding-right: 10px;
  622.        }
  623.        #tooltip .tipHeader {
  624.        height:8px;
  625.        color:#ffffff;
  626.        font-weight:bold;
  627.        padding-bottom:0px;
  628.        background:none;
  629.        }
  630.        #tooltip .tipBody {
  631.        background: #000000;
  632.        padding:0px;
  633.        }
  634.  
  635.        #tooltip .tipFooter {
  636.        height:8px;
  637.        background:none;
  638.        }
  639.     .stats-bar-fill {
  640.     height: 6px;
  641.     }
  642.     .clock_body {
  643.     background: url("../images/crbar.png") repeat scroll 0 0 transparent;
  644.     border: 1px solid #F1EFE1;
  645.     border-radius: 10px 10px 10px 10px;
  646.     color: #000000;
  647.     cursor: default;
  648.     text-align: center;
  649.     padding-left:5px;
  650.     padding-right:5px;
  651.     font-weight:bold;
  652.     text-align:center;
  653.     font-size:11px;
  654.     width: 55px;
  655. }
  656. #item_wrapper{
  657.     border:1px solid #000000;
  658.     text-align:center;
  659.     cursor:pointer;
  660.     }
  661. #item_wrapper:hover{
  662.     background-color:#AABBCC;
  663.     }
  664. .item_links{
  665.     background-color:#F5FFFA;
  666.     font-weight:bold;
  667.     width:100%;
  668. }
  669.        *html #tooltip .tipHeader {margin-bottom:-6px;}
  670.          </style>
  671. <style>     #all > tr {
  672.             float: left; width: 200px;
  673.             padding: 0 10px 0 0;
  674.         }
  675.         #all .turf_header {
  676.             text-decoration: none;
  677.             display: block;
  678.             width:100%;
  679.             border-radius: 20px;
  680.             background:#990000;
  681.             color: white;
  682.             text-align: center;
  683.             margin: 0 0 5px 0;
  684.             }
  685.         #all a {
  686.             text-decoration: none;
  687.             display: block;
  688.             padding: 10px;
  689.             color: white;
  690.             text-align: center;
  691.             margin: 0 0 5px 0;
  692.             -webkit-transition: all 0.2s ease;
  693.             -moz-transition: all 0.2s ease;
  694.             -o-transition: all 0.2s ease;
  695.         }
  696.         #all:hover a {
  697.             opacity: 0.2;
  698.         }
  699.         #all:hover tr:hover a {
  700.             opacity: 0.5;
  701.         }
  702.         #all:hover tr:hover a:hover {
  703.             opacity: 1;
  704.         }</style>  
  705.  <link href="/css/banner.css" media="all" rel="stylesheet" type="text/css">
  706.  
  707. <link href='css/newcss.css' rel='stylesheet' type='text/css'/>
  708.  
  709. <link REL="SHORTCUT ICON" HREF="ico-icon.jpg">
  710.          <title>Reunited City | Free Text Based RPG Game</title>
  711.          
  712.           <link type="text/css" rel="stylesheet" media="all" href="../css/chat.css" />
  713.        <link type="text/css" rel="stylesheet" href="css/popup.css" />
  714.      <link type="text/css" rel="stylesheet" href="css/profiles.css" />
  715.      <link rel="stylesheet" type="text/css" href="css/incrementing.css" />
  716.          <link type="text/css" rel="stylesheet" href="css/main_chat.css" />
  717.           <link type="text/css" rel="stylesheet" href="css/style.css" />
  718.          
  719.             <link href="/css/lolno.css" media="all" rel="stylesheet" type="text/css">
  720. <link href="/css/sidebar.css?v=<?php
  721. echo time();
  722. ?>" rel="stylesheet" type="text/css" />
  723.          
  724.           <link href="/css/banner.css" media="all" rel="stylesheet" type="text/css">
  725.          <link href="/css/dock.css" rel="stylesheet" type="text/css" />
  726.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  727.          <script type="text/javascript" src="../js/jquery.js"></script>
  728.          <script type="text/javascript" src="../js/incrementing.js"></script>
  729.          <script src="../js/jquery-1.4.2.js" type="text/javascript"></script>
  730.          <script type="text/javascript" src="../js/dock.js"></script>
  731.          <script src="../js/popups.js" type="text/javascript"></script>
  732.          
  733.  
  734. <script type = 'text/javascript'>
  735.         var timeoutId;
  736.         $(document).ready(function() {
  737.         $('[rel=tooltip]').mouseover(function(e) {
  738.           var tip = $(this).attr('title');
  739.           var tiptitle = $(this).attr('id');
  740.           $(this).attr('title','','');
  741.           $(this).css('cursor','pointer');
  742.           $(this).append('<div id="tooltip"><div class="tipHeader">' + tiptitle + '</div><div class="tipBody">' + tip + '</div><div class="tipFooter"></div></div>');
  743.           }).mouseout(function() {
  744.           $(this).attr('title',$('.tipBody').html(),'id');
  745.           $(this).children('div#tooltip').remove();
  746.            });
  747.         });
  748.          </script>
  749. <script type="text/javascript">
  750.    
  751.     $(document).ready(
  752.         function()
  753.         {
  754.             $('#dock').Fisheye(
  755.                 {
  756.                     maxWidth: 50,
  757.                     items: 'a',
  758.                     itemsText: 'span',
  759.                     container: '.dock-container',
  760.                     itemWidth: 40,
  761.                     proximity: 90,
  762.                     halign : 'center'
  763.                 }
  764.             )
  765.         }
  766.     );
  767.  
  768. </script>
  769.  
  770. <script language="javascript" type="text/javascript">
  771.  
  772.     var timeOut = new Array();
  773.     function postFormAjax(formname, url, number)
  774.     {
  775.        var xmlhttp;
  776.        if (window.XMLHttpRequest)
  777.        {
  778.               xmlhttp=new XMLHttpRequest();
  779.        }
  780.        else
  781.        {
  782.           xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  783.        }
  784.     if(xmlhttp)
  785.     {
  786.     var fields = new Array();
  787.     if(formname)
  788.     {
  789.      var ajax = formname;
  790.     }
  791.     for(var x = 0; x < eval("document."+ajax+".elements.length"); x++)
  792.     {
  793.      eval("fields.push(document."+ajax+".elements[x].name+'='+document."+ajax+".elements[x].value)");
  794.  
  795.     }
  796.     var sendf = fields.join('&');
  797.     xmlhttp.open("POST", url, true);
  798.     xmlhttp.onreadystatechange = function()
  799.     {
  800.       if(xmlhttp.readyState == 4)
  801.       {
  802.         if(xmlhttp.status == 200)
  803.         {
  804.               var elemn = "actionstatus" + number;
  805.               document.getElementById(elemn).innerHTML = '';
  806.               document.getElementById(elemn).innerHTML = xmlhttp.responseText;
  807.         }
  808.       }
  809.     }
  810.     xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  811.     xmlhttp.send(sendf);
  812.    }
  813.   }
  814.  
  815.    function loadNotes() {
  816.    var xmlhttp;
  817.    if(window.XMLHttpRequest) {
  818.    xmlhttp = new XMLHttpRequest();
  819.    }
  820.    else
  821.       {
  822.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  823.       }
  824.       xmlhttp.onreadystatechange=function()
  825.       {
  826.       if(xmlhttp.readyState==4) {
  827.       document.getElementById("shownotes").innerHTML = xmlhttp.responseText;
  828.       }
  829.     }
  830.     xmlhttp.open("GET", "staffnotes.php?noteLoader=true", true);
  831.     xmlhttp.send(null);
  832.     }
  833.  
  834.    function loadBar(type, url) {
  835.    var xmlhttp;
  836.    if(window.XMLHttpRequest) {
  837.    xmlhttp = new XMLHttpRequest();
  838.    }
  839.    else
  840.       {
  841.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  842.       }
  843.       xmlhttp.onreadystatechange=function()
  844.       {
  845.       if(xmlhttp.readyState==4) {
  846.       var elemnt = "BAR" + type;
  847.       document.getElementById(elemnt).innerHTML = xmlhttp.responseText;
  848.       }
  849.     }
  850.     xmlhttp.open("GET", url, true);
  851.     xmlhttp.send(null);
  852.     }
  853.  
  854.  
  855.    function resetBar(elem) {
  856.    document.getElementById(elem).innerHTML = '';
  857.    }
  858.  
  859.  
  860.    function startChat(who) {
  861.    var xmlhttp;
  862.    if(window.XMLHttpRequest) {
  863.    xmlhttp = new XMLHttpRequest();
  864.    }
  865.    else
  866.       {
  867.       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  868.       }
  869.       xmlhttp.onreadystatechange=function()
  870.       {
  871.       if(xmlhttp.readyState==4) {
  872.       loadBar('openchats', 'bar.php?load=chats');
  873.       }
  874.     }
  875.     var url = "bar.php?load=start&id=" + who;
  876.     xmlhttp.open("GET", url, true);
  877.     xmlhttp.send(null);
  878.     }
  879.  
  880. // run the function below once the DOM(Document Object Model) is ready
  881. $(document).ready(function() {
  882.     // trigger the function when clicking on an assigned element
  883.     $(".toggleAd").click(function () {
  884.         // check the visibility of the next element in the DOM
  885.         if ($(this).next().is(":hidden")) {
  886.             $(this).next().slideDown("medium"); // slide it down
  887.         } else {
  888.             $(this).next().slideUp("medium"); // hide it
  889.         }
  890.     });
  891. });
  892. $(document).ready(function() {
  893.     // trigger the function when clicking on an assigned element
  894.     $(".toggleSec").click(function () {
  895.         // check the visibility of the next element in the DOM
  896.         if ($(this).next().is(":hidden")) {
  897.             $(this).next().slideDown("medium"); // slide it down
  898.         } else {
  899.             $(this).next().slideUp("medium"); // hide it
  900.         }
  901.     });
  902. });
  903. $(document).ready(function() {
  904.     // trigger the function when clicking on an assigned element
  905.     $(".toggleMod").click(function () {
  906.         // check the visibility of the next element in the DOM
  907.         if ($(this).next().is(":hidden")) {
  908.             $(this).next().slideDown("medium"); // slide it down
  909.         } else {
  910.             $(this).next().slideUp("medium"); // hide it
  911.         }
  912.     });
  913. });
  914. $(document).ready(function() {
  915.     // trigger the function when clicking on an assigned element
  916.     $(".toggleHelp").click(function () {
  917.         // check the visibility of the next element in the DOM
  918.         if ($(this).next().is(":hidden")) {
  919.             $(this).next().slideDown("medium"); // slide it down
  920.         } else {
  921.             $(this).next().slideUp("medium"); // hide it
  922.         }
  923.     });
  924. });
  925. $(document).ready(function() {
  926.     // trigger the function when clicking on an assigned element
  927.     $(".toggleSnote").click(function () {
  928.         // check the visibility of the next element in the DOM
  929.         if ($(this).next().is(":hidden")) {
  930.             $(this).next().slideDown("medium"); // slide it down
  931.         } else {
  932.             $(this).next().hide(); // hide it
  933.         }
  934.     });
  935. });
  936. $(document).ready(function() {
  937.     // trigger the function when clicking on an assigned element
  938.     $("div#NSbutton").click(function () {
  939.         // check the visibility of the next element in the DOM
  940.         $(this).hide();
  941.     });
  942. });
  943.  
  944.  
  945.                  function EnterSub(e, id)
  946.                  {
  947.                         var key = (e.keyCode ? e.keyCode : e.which);
  948.                         if(key == 13) {
  949.                            var clicker = 'post' + id;
  950.                        document.getElementById(clicker).click();
  951.                     }
  952.                  }
  953. function closeMainChatBox(chatboxtitle,chatboxno) {
  954.     $('#chatbox_'+chatboxtitle).css('display','none');
  955.         loadBar('window'+chatboxno, 'bar.php?load=min&id='+chatboxtitle);
  956.  
  957.  
  958. }
  959. <?php
  960. if (ae_detect_ie()) {
  961. ?>
  962.        tr .odd {
  963.        background: url(images/ieodd.png) no-repeat center top;
  964.        }
  965.        tr .even {
  966.        background: url(images/ieeven.png) no-repeat center top;
  967.        }
  968.        tr .even:hover, tr .odd:hover {
  969.        background: url(images/iehover.png) no-repeat center top;
  970.        }
  971.        tr .odds {
  972.        background: url(images/ieodds.png) no-repeat center top;
  973.        }
  974.        tr .evens {
  975.        background: url(images/ieevens.png) no-repeat center top;
  976.        }
  977.        tr .evens:hover, tr .odds:hover {
  978.        background: url(images/iehovers.png) no-repeat center top;
  979.        }
  980.        input {
  981.        border:0px;
  982.        }
  983.        input.nostyle {
  984.        border:0px;
  985.        }
  986.        main {
  987.        font-family:helvetica, arial, geneva, sans-serif;font-size:14px; color: black;
  988.        font-weight: 800px;
  989.        }
  990. <?php
  991. }
  992. if (!ae_detect_ie()) {
  993. ?>
  994.        tr .odd {
  995.        background: url(images/odd.png) repeat-y left top;
  996.        }
  997.        tr .even {
  998.        background: url(images/even.png) repeat-y left top;
  999.        }
  1000.        tr .even:hover, tr .odd:hover {
  1001.        background: url(images/ffhover.png) repeat-y left top;
  1002.        }
  1003.        tr .odds {
  1004.        background: url(images/odd.png) repeat-y left top;
  1005.        }
  1006.        tr .evens {
  1007.        background: url(images/even.png) repeat-y left top;
  1008.        }
  1009.        tr .evens:hover, tr .odds:hover {
  1010.        background: url(images/ffhover.png) repeat-y left top;
  1011.        }
  1012.        input {
  1013.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  1014.        background-color: #FFFFFF;
  1015.        -moz-border-radius: 7px;
  1016.        -webkit-border-radius: 5px;
  1017.        border:solid; style="
  1018.        background-color:
  1019.        #000000; 1px
  1020.        padding: 10px;"
  1021.        }
  1022.        input.nostyle {
  1023.        border:0px;
  1024.        }
  1025.        main {
  1026.        font-family:helvetica, arial, geneva, sans-serif;font-size:12px; color: black;
  1027.        font-weight: 800;
  1028.        text-shadow: #363636 0px 0px 4px;
  1029.        }
  1030. <?php
  1031. }
  1032. ?>
  1033.        #tooltip {
  1034.        position:absolute;
  1035.        color:#ffffff;
  1036.        font-size:12px;
  1037.        width:300px;
  1038.        }
  1039.        #tooltip .tipHeader {
  1040.        height:8px;
  1041.        background: url('images/hover-top.png') no-repeat center top;
  1042.        }
  1043.        #tooltip .tipBody {
  1044.        background: url('images/hover-middle.png') repeat-y center top;
  1045.        padding:5px;
  1046.        }
  1047.        #tooltip .tipFooter {
  1048.        height:8px;
  1049.        background: url('images/hover-bottom.png') no-repeat center bottom;
  1050.        }
  1051.        *html #tooltip .tipHeader {margin-bottom:-6px;}
  1052.         </style>
  1053.          <link type="text/css" rel="stylesheet" media="all" href="css/chat.css" />
  1054.          <link type="text/css" rel="stylesheet" href="css/style.css" />
  1055.          <head>
  1056.          <link REL="SHORTCUT ICON" HREF="ico-icon.jpg">
  1057.          <title>Reuited City | Free Text Based RPG Game</title>
  1058.        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  1059.          <script type="text/javascript" src="js/jquery.js"></script>
  1060.          <script src="js/popups.js" type="text/javascript"></script>
  1061.          <script src="js/jquery-1.4.2.js" type="text/javascript"></script>
  1062.          <script type="text/javascript" src="js/chat.js"></script>
  1063.          
  1064.          <script type = 'text/javascript'>
  1065.  var timeoutId;
  1066.         $(document).ready(function() {
  1067.         $('[rel=tooltip]').mouseover(function(e) {
  1068.           var tip = $(this).attr('title');
  1069.           $(this).attr('title','');
  1070.           $(this).css('cursor','pointer');
  1071.           $(this).append('<div id="tooltip"><div class="tipHeader"></div><div class="tipBody">' + tip + '</div><div class="tipFooter"></div></div>');
  1072.           $('#tooltip').css('top', e.pageY + 8 );
  1073.           $('#tooltip').css('left', e.pageX + 8 );
  1074.           }).mousemove(function(e) {
  1075.           $('#tooltip').css('top', e.pageY + 8 );
  1076.           $('#tooltip').css('left', e.pageX + 8 );
  1077.           }).mouseout(function() {
  1078.           $(this).attr('title',$('.tipBody').html());
  1079.           $(this).children('div#tooltip').remove();
  1080.         $(document).ready(function() {
  1081.          $(".openPopup1").click(function () {
  1082.              $("#po1").removeClass("popUp").addClass("popUpOpen");
  1083.        
  1084.            });
  1085.         });
  1086.          </script>
  1087.          </head>
  1088. <?php
  1089. ob_start();
  1090. ob_flush();
  1091. if ($_SESSION['attacking']) {
  1092.     header('location:run.php');
  1093. }
  1094. $jorh   = array();
  1095. $jorh   = mysql_query("SELECT * FROM members WHERE
  1096.             playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'");
  1097. $joh    = array();
  1098. $joh    = mysql_fetch_array($jorh);
  1099. $pl     = mysql_fetch_assoc(mysql_query("SELECT * FROM members WHERE playerid='" . $_SESSION['playerid'] . "'"));
  1100. $bgc    = array();
  1101. $sides  = array();
  1102. $banner = array();
  1103.  
  1104. if ($joh['my_jail'] > gmtime()) {
  1105.     $bgc   = 'E09900';
  1106.     $sides = 'j';
  1107. } else if ($joh['my_hosp'] > gmtime()) {
  1108.     $bgc   = 'FDFDFD';
  1109.     $sides = 'h';
  1110. } else {
  1111.     $bgc   = 'CCCCCC';
  1112.     $sides = '';
  1113. }
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. /* {start} Venom ([email protected]) */
  1120. $playerid = $_SESSION['playerid'];
  1121. if ($pl['myTheme'] == 2) {
  1122.     $statBars   = array(
  1123.         'energy' => ($joh['my_energy'] / $joh['my_maxenergy']) * 100,
  1124.         'happy' => ($joh['my_happy'] / $joh['my_maxhappy']) * 100,
  1125.         'nerve' => ($joh['my_nerve'] / $joh['my_maxnerve']) * 100
  1126.        
  1127.     );
  1128.     $nextMinute = date('i') + 1;
  1129.     if ($pl['my_dondays']) {
  1130.         if ($nextMinute > '50') {
  1131.             $energyMins = (60 - $nextMinute);
  1132.         } else if ($nextMinute > '40') {
  1133.             $energyMins = (50 - $nextMinute);
  1134.         } else if ($nextMinute > '30') {
  1135.             $energyMins = (40 - $nextMinute);
  1136.         } else if ($nextMinute > '20') {
  1137.             $energyMins = (30 - $nextMinute);
  1138.         } else if ($nextMinute > '10') {
  1139.             $energyMins = (20 - $nextMinute);
  1140.         } else if ($nextMinute > '00') {
  1141.             $energyMins = (10 - $nextMinute);
  1142.         }
  1143.     } else {
  1144.         if ($nextMinute > '45') {
  1145.             $energyMins = (60 - $nextMinute);
  1146.         } else if ($nextMinute > '30') {
  1147.             $energyMins = (45 - $nextMinute);
  1148.         } else if ($nextMinute > '15') {
  1149.             $energyMins = (30 - $nextMinute);
  1150.         } else if ($nextMinute > '00') {
  1151.             $energyMins = (15 - $nextMinute);
  1152.         }
  1153.     }
  1154.    
  1155.     if ($nextMinute > '45') {
  1156.         $happyMins = (60 - $nextMinute);
  1157.     } else if ($nextMinute > '30') {
  1158.         $happyMins = (45 - $nextMinute);
  1159.     } else if ($nextMinute > '15') {
  1160.         $happyMins = (30 - $nextMinute);
  1161.     } else if ($nextMinute > '00') {
  1162.         $happyMins = (15 - $nextMinute);
  1163.     }
  1164.    
  1165.     if ($nextMinute > '55') {
  1166.         $nerveMins = (60 - $nextMinute);
  1167.     } else if ($nextMinute > '50') {
  1168.         $nerveMins = (55 - $nextMinute);
  1169.     } else if ($nextMinute > '45') {
  1170.         $nerveMins = (50 - $nextMinute);
  1171.     } else if ($nextMinute > '40') {
  1172.         $nerveMins = (45 - $nextMinute);
  1173.     } else if ($nextMinute > '35') {
  1174.         $nerveMins = (40 - $nextMinute);
  1175.     } else if ($nextMinute > '30') {
  1176.         $nerveMins = (35 - $nextMinute);
  1177.     } else if ($nextMinute > '25') {
  1178.         $nerveMins = (30 - $nextMinute);
  1179.     } else if ($nextMinute > '20') {
  1180.         $nerveMins = (25 - $nextMinute);
  1181.     } else if ($nextMinute > '15') {
  1182.         $nerveMins = (20 - $nextMinute);
  1183.     } else if ($nextMinute > '10') {
  1184.         $nerveMins = (15 - $nextMinute);
  1185.     } else if ($nextMinute > '05') {
  1186.         $nerveMins = (10 - $nextMinute);
  1187.     } else if ($nextMinute > '00') {
  1188.         $nerveMins = (05 - $nextMinute);
  1189.     }
  1190.    
  1191.     $newEvents = mysql_num_rows(mysql_query("SELECT e_id FROM member_events WHERE e_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "' AND e_read = '0'"));
  1192.     $newMail   = mysql_num_rows(mysql_query("SELECT mm_id FROM member_mail WHERE mm_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "' AND mm_read = '0'"));
  1193.     $newAwards = mysql_num_rows(mysql_query("SELECT ma_id FROM members_awards WHERE ma_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "' AND ma_viewed = '0'"));
  1194.    
  1195.     echo "<link href='/css/ingame.css' rel='stylesheet' type='text/css' />";
  1196.     if ($pl['my_jail'])
  1197.         echo "<style type='text/css'>body { background-color: #" . $bgc . " !important; }</style>";
  1198.     if ($pl['my_hosp'])
  1199.         echo "<style type='text/css'>body { background-color: #" . $bgc . " !important; }</style>";
  1200.     echo "<style type='text/'>body { background-color: #" . $bgcssc . " !important; }</style>";
  1201.    
  1202.    
  1203.    
  1204.     echo "
  1205.      <div class='vnm-header'>
  1206.              <div class='vnm-headerInner'>
  1207.                      <div class='vnm-headerLogo' style='background-position:" . ($joh['my_jail'] ? "0px -40px" : ($joh['my_hosp'] ? "0px -80px" : "0px 0px")) . "' onclick=\"location.href='/index.php'\"></div>
  1208.                      <div class='vnm-headerBarEnergyOuter'><div class='vnm-headerBarVal'>" . $joh['my_energy'] . "/" . $joh['my_maxenergy'] . "</div><div class='vnm-headerBarEnergy' style='width:" . $statBars['energy'] . "%'></div></div>
  1209.                      <div class='vnm-headerBarHappyOuter'><div class='vnm-headerBarVal'>" . $joh['my_happy'] . "/" . $joh['my_maxhappy'] . "</div><div class='vnm-headerBarHappy' style='width:" . $statBars['happy'] . "%'></div></div>
  1210.                      <div class='vnm-headerBarNerveOuter'><div class='vnm-headerBarVal'>" . $joh['my_nerve'] . "/" . $joh['my_maxnerve'] . "</div><div class='vnm-headerBarNerve' style='width:" . $statBars['nerve'] . "%'></div></div>
  1211.                      
  1212.                      <div class='vnm-headerBarTimes'>
  1213.                              <div>Energy: " . ($joh['my_energy'] < $joh['my_maxenergy'] && isset($energyMins) ? $energyMins : 0) . "mins</div>
  1214.                              <div>Happy: " . ($joh['my_happy'] < $joh['my_maxhappy'] && isset($happyMins) ? $happyMins : 0) . "mins</div>
  1215.                              <div>Nerve: " . ($joh['my_nerve'] < $joh['my_maxnerve'] && isset($nerveMins) ? $nerveMins : 0) . "mins</div>
  1216.                              
  1217.                      </div>
  1218.                      <div class='vnm-headerStats1'>
  1219.   <table width='99%' cellpadding='0' cellspacing='0' border = '0'><tr>
  1220.             <td colspan = '2' align = 'left'>
  1221.             <img src='images/" . $pl['my_gender'] . ".gif' title = '" . $pl['my_gender'] . "'>";
  1222.     if ($mjb['my_job']) {
  1223.         echo "<img src='images/";
  1224.         if ($mjb['my_job'] == '1') {
  1225.             echo "army.png' alt = 'Job: Army' title='Job: Army";
  1226.         }
  1227.         if ($mjb['my_job'] == '2') {
  1228.             echo "market.png' alt = 'Job: Grocer' title='Job: Grocer";
  1229.         }
  1230.         if ($mjb['my_job'] == '3') {
  1231.             echo "casino.png' alt = 'Job: Casino' title='Job: Casino";
  1232.         }
  1233.         echo "'>";
  1234.     }
  1235.    
  1236.     if ($pl['my_faction']) {
  1237.         $q_ry = array();
  1238.         $q_ry = "SELECT fac_name
  1239.                FROM faction_s
  1240.                WHERE fac_id = '" . mysql_real_escape_string($pl['my_faction']) . "'";
  1241.         $fn   = array();
  1242.         $fn   = mysql_fetch_array(mysql_query($q_ry));
  1243.         echo " <img src='images/navigation/faction.gif' alt = 'Faction: " . $fn['fac_name'] . "' title='Faction: " . $fn['fac_name'] . "'>";
  1244.     }
  1245.     if ($pl['my_partner']) {
  1246.         $q_ry = array();
  1247.         $q_ry = "SELECT playername
  1248.                FROM members
  1249.                WHERE playerid = '" . mysql_real_escape_string($pl['my_partner']) . "'";
  1250.         $pn   = array();
  1251.         $pn   = mysql_fetch_array(mysql_query($q_ry));
  1252.         echo " <img src='images/spouse.png' alt = 'Spouse: " . $pn['playername'] . "' title='Spouse: " . $pn['playername'] . "'>";
  1253.     }
  1254.     if (mysql_num_rows($bnka)) {
  1255.         $bk = array();
  1256.         $bk = mysql_fetch_array($bnka);
  1257.         echo " <img src='images/bank.png' alt = 'Investment: " . money_alter($bk['a_ammount']) . " - " . gettimeleft($bk['a_time']) . "' title='Investment: " . money_alter($bk['a_ammount']) . " -
  1258.            " . gettimeleft($bk['a_time']) . "'>";
  1259.     }
  1260.     if (mysql_num_rows($oncrs)) {
  1261.         $onc = array();
  1262.         $onc = mysql_fetch_array($oncrs);
  1263.         echo " <img src='images/education.png' alt = '" . $onc['edu_name'] . ": " . gettimeleft($onc['lc_time']) . "' title='" . $onc['edu_name'] . ": " . gettimeleft($onc['lc_time']) . "'>";
  1264.     }
  1265.     $q_ry   = array();
  1266.     $q_ry   = "SELECT mi_time,mi_effect_left,mi_drug_id
  1267.                FROM member_influences
  1268.                WHERE mi_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'
  1269.                AND mi_time >= '" . mysql_real_escape_string(time()) . "'";
  1270.     $druggy = array();
  1271.     $druggy = mysql_query($q_ry);
  1272.     if (mysql_num_rows($druggy)) {
  1273.         $dr   = array();
  1274.         $dr   = mysql_fetch_array($druggy);
  1275.         $type = array(
  1276.             9 => 'Ecstacey',
  1277.             100 => 'Vicodin',
  1278.             79 => 'Xanax'
  1279.         );
  1280.         echo " <img src='images/drug.png' title='" . $type[$dr['mi_drug_id']] . ": " . gettimeleft($dr['mi_time']) . "'>";
  1281.     }
  1282.     if ($pl['my_dondays']) {
  1283.         echo " <img src='images/donator.gif' alt = 'Donator: " . $pl['my_dondays'] . " Days left' title='Donator: " . $pl['my_dondays'] . " Days left'>";
  1284.     }
  1285.     if ($pl['vipday']) {
  1286.         echo " <img src='images/vip.jpg' alt = 'VIP: " . $pl['vipday'] . " Days left' title='VIP: " . $pl['vipday'] . " Days left'>";
  1287.     }
  1288.     if ($pl['am_i_staff'] > 1) {
  1289.         echo " <img src='images/staff.png' title='Staff member'>";
  1290.     }
  1291.     echo "</td></tr>
  1292.             </table>
  1293.                              Name: <a href='/profile.php?XID=" . $_SESSION['playerid'] . "'>" . $joh['playername'] . "</a><br/>
  1294.                              Money: \$" . number_format($joh['wallet']) . "<br/>
  1295.                              Level: </td><td align = 'left'>" . $pl['my_level'];
  1296.     $q_ry = array();
  1297.     $q_ry = "SELECT my_experience,my_crimeexp
  1298.                FROM members_extra
  1299.                WHERE playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1300.     $lvl  = array();
  1301.     $lvl  = mysql_query($q_ry);
  1302.     $lv   = mysql_fetch_array($lvl);
  1303.     if (($lv['my_experience'] + ($lv['my_crimeexp'] / $pl['my_level'])) > exp_level($pl['my_level'])) {
  1304.         echo "</td><td align = 'center'> [<a href='levelup.php'>upgrade</a>]";
  1305.     }
  1306.     echo "</td></tr>
  1307.                      </div>
  1308.                      <div class='vnm-headerStats2'>
  1309.                              Points: " . number_format($joh['my_points']) . "</td><td align = 'center'> [<a href='pexchange.php'>use</a>]</td></tr><br/>
  1310.                              Merits: " . number_format($joh['my_merits']) . "</td><td align = 'center'> [<a href='mexchange.php'>use</a>]</td></tr><br/>
  1311.                              
  1312.                      </div>
  1313.                      <form action='/search.php' method='post'>
  1314.                              <input type='hidden' name='type' value='username' />
  1315.                              <input type='text' name='name' placeholder='Search players' class='vnm-headerSearch' />
  1316.                              <input type='submit' value='Go' name='srch' class='vnm-headerSearchGo' />
  1317.                      </form>
  1318.                      <a href='/logout.php' class='vnm-headerLogout'>Logout</a>
  1319.                      <div menufor='Account' class='vnm-headerMenu vnm-headerMenuAccount" . ($newEvents || $newAwards || $newMail ? " vnm-headerMenuActive" : "") . "'>Account</div>
  1320.                      <div menufor='Explore' class='vnm-headerMenu vnm-headerMenuExplore'>Explore</div>
  1321.                      <div menufor='Preferences' class='vnm-headerMenu vnm-headerMenuPreferences'>Preferences</div>
  1322.                      <div class='vnm-headerNavigation vnm-headerNavigationAccount'>
  1323.                              <div onclick=\"location.href='/events.php'\"" . ($newEvents ? " class='vnm-headerNavigationActive'" : "") . ">Events (" . $newEvents . ")</div>
  1324.                              <div onclick=\"location.href='/messages.php'\"" . ($newMail ? " class='vnm-headerNavigationActive'" : "") . ">Messages (" . $newMail . ")</div>
  1325.                              <div onclick=\"location.href='/awards.php'\"" . ($newAwards ? " class='vnm-headerNavigationActive'" : "") . ">Awards (" . $newAwards . ")</div>
  1326.                              <div onclick=\"location.href='/notifications.php'\">Notifications</div>
  1327.                              " . ($joh['my_refpoints'] ? "<div onclick=\"location.href='/normalrefill.php?step=refill'\">Refills (" . $joh['my_refpoints'] . ")</div>" : "") . "
  1328.                      </div>
  1329.                      <div class='vnm-headerNavigation vnm-headerNavigationExplore'>
  1330.                              <div onclick=\"location.href='/index.php'\">Home</div>
  1331.                              <div onclick=\"location.href='/item.php'\">Item</div>
  1332.                              <div onclick=\"location.href='/city.php'\">City</div>
  1333.                              <div onclick=\"location.href='/properties.php'\">Properties</div>
  1334.                              <div onclick=\"location.href='/school.php'\">Education</div>
  1335.                              <div onclick=\"location.href='/php_gym.php'\">Gym</div>
  1336.                              <div onclick=\"location.href='/crimes.php'\">Crimes</div>
  1337.                              <div onclick=\"location.href='/job.php'\">Job</div>
  1338.                              <div onclick=\"location.href='/jail.php'\">Jail</div>
  1339.                              <div onclick=\"location.href='/hospital.php'\">Hospital</div>
  1340.                              <div onclick=\"location.href='/friends.php'\">Friends</div>
  1341.                              <div onclick=\"location.href='/enemies.php'\">Enemies</div>
  1342.                              <div onclick=\"location.href='/search.php'\">Search</div>
  1343.                              <div onclick=\"location.href='/usersonline.php'\">Users online</div>
  1344.                              <div onclick=\"location.href='/newspaper.php'\">Newspaper</div>
  1345.                              <div onclick=\"location.href='/forums.php'\">Forums</div>
  1346.                              " . ($pl['my_faction'] ? "<div onclick=\"location.href='/faction.php'\">Faction</div>" : "") . "
  1347.                        </div>
  1348.                        <div class='vnm-headerNavigation vnm-headerNavigationPreferences'>
  1349.                              <div onclick=\"location.href='/preferences.php'\">Preferences</div>
  1350.                              <div onclick=\"location.href='/createchat.php'\">Private Chat</div>
  1351.                              <div onclick=\"location.href='/player_report.php'\">Player Report</div>
  1352.                            
  1353.                        </div>
  1354.                  </div>
  1355.            </div>
  1356.      </div>
  1357. <span class='headerBarMsg'><center><a href='donate.php'><font color=orange size=3><b></b></font></a></center></span>
  1358.      <br/>
  1359.      
  1360.                   <table width='1300px' border = '0' cellpadding='0' cellspacing='0' class='maintable' style='margin-top:10px;' align='center'>
  1361.                   <tr>
  1362.                   <td align='center' valign='top' width = '100%'>
  1363.                   <table cellspacing = '0' cellpadding = '0' border = '0' width = '100%'>
  1364.               <tr>
  1365. <center><a href='donate.php'>*Become a donator today and receive a 150 energy bar + loads more!(LTD:<b>5 x  Feathery Hotel Coupon</b>[<a href='iinfo.php?XID=125'>View</a>])*</a></center><br/>";
  1366. } else {
  1367.     $jorh   = array();
  1368.     $jorh   = mysql_query("SELECT my_jail,my_hosp,color FROM members WHERE
  1369.             playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'");
  1370.     $joh    = array();
  1371.     $joh    = mysql_fetch_array($jorh);
  1372.     $bgc    = array();
  1373.     $sides  = array();
  1374.     $banner = array();
  1375.    
  1376.     if ($joh['my_jail'] > gmtime()) {
  1377.         $bgc   = 'BBA47E';
  1378.         $sides = 'j';
  1379.     } else if ($joh['my_hosp'] > gmtime()) {
  1380.         $bgc   = 'FDFDFD';
  1381.         $sides = 'h';
  1382.     } else {
  1383.         $bgc   = ($joh['color']);
  1384.         $sides = '';
  1385.     }
  1386.    
  1387.    
  1388.    
  1389.     echo "<body style='background: #" . $bgc . "'>
  1390.  
  1391.          <div align='left' class='headerBar'><a href='index.php'>
  1392.               <img src='images/reunitednewbanbraidz.png' BORDER=0 height='50px'></a>
  1393.              
  1394.                                 <span align='right' class='headerBarMsg'><a href='profile.php?XID=" . $_SESSION['playerid'] . "'><font color=grey><b>", stripslashes(htmlentities($pl['playername'])), "</a> [", $_SESSION['playerid'], "]</b></font>  &#8226; <a href='/help.php'> Help</a> &#8226; <a href='/preferences.php'> Settings</a> &#8226; <a style='margin-right:0px;' href='logout.php'> Logout</a></span>
  1395.                              
  1396.                        <form action='/search.php' method='post'>
  1397.                                        <input type='hidden' name='type' value='username' />
  1398.                                        <input type='text' name='name' placeholder='Search players' />
  1399.                                        <input type='submit' value='Go' name='srch' />
  1400.                                </form>
  1401.                                
  1402.                        </div>
  1403.  
  1404. <div class='vnm-headerBarMsg1'>";
  1405.     $q_ry = array();
  1406.     $q_ry = "SELECT *
  1407.             FROM updates
  1408.             ORDER BY u_date DESC LIMIT 1";
  1409.     $up   = array();
  1410.     $up   = mysql_query($q_ry);
  1411.     $d    = array();
  1412.    
  1413.    
  1414.     echo "<center>";
  1415.     while ($d = mysql_fetch_array($up)) {
  1416.         echo "<td align = 'center'><b><font color=#CC9933>" . $d['u_update'] . "</font></b></td></tr>";
  1417.     }
  1418.     echo "
  1419.           </a></a></div>
  1420.             <br/>
  1421.                
  1422. <div align='center'>
  1423.             <table width='100%' border = '0' cellpadding='0' cellspacing='0' class='maintable' style='margin-top:10px;'>
  1424.             <tr>
  1425.             <td align='left' valign='top' width='20%' rowspan='2' style='margin-left:10px;'>";
  1426.    
  1427.    
  1428.     $q_ry  = array();
  1429.     $q_ry  = "SELECT lc.lc_time,ed.edu_name
  1430.                FROM live_courses lc
  1431.                LEFT JOIN educate_courses ed
  1432.                ON lc.lc_course = ed.edu_id
  1433.                WHERE lc.lc_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1434.     $oncrs = array();
  1435.     $oncrs = mysql_query($q_ry);
  1436.    
  1437.     $q_ry = array();
  1438.     $q_ry = "SELECT a_ammount,a_time
  1439.                FROM bank_accounts
  1440.                WHERE a_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1441.     $bnka = array();
  1442.     $bnka = mysql_query($q_ry);
  1443.    
  1444.     $q_ry = array();
  1445.     $q_ry = "SELECT my_job
  1446.                FROM members_extra
  1447.                WHERE playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1448.     $mjb  = array();
  1449.     $mjb  = mysql_fetch_array(mysql_query($q_ry));
  1450.    
  1451.     $ep = (int) (($pl['my_energy'] / $pl['my_maxenergy']) * 165);
  1452.     if ($ep > 165) {
  1453.         $ep = 165;
  1454.     }
  1455.     $np = (int) (($pl['my_nerve'] / $pl['my_maxnerve']) * 165);
  1456.     if ($np > 165) {
  1457.         $np = 165;
  1458.     }
  1459.     $hp = (int) (($pl['my_happy'] / $pl['my_maxhappy']) * 165);
  1460.     if ($hp > 165) {
  1461.         $hp = 165;
  1462.        
  1463.     }
  1464.     echo "<table cellspacing = '0' cellpadding = '0' border = '0' width = '190px'>
  1465.         <tr>
  1466.            <td width = '14px'></td>
  1467.            <td align = 'center'>
  1468.             <table width='96%' cellpadding='0' cellspacing='0'>
  1469.            
  1470. <tr><td align = 'left' style = 'background:#222' no-repeat center top;font-weight:800;'><div class='hydra-navigationtitle' align = left><left><font color=white size=2>  Information</left></div></td></tr>
  1471.  
  1472.            <tr><td align = 'center' class='hydra-sidebarinfo'>
  1473.             <table width='99%' cellpadding='0' cellspacing='0' border = '0'><tr>
  1474.             <td colspan = '2' align = 'left'>
  1475.  
  1476.      
  1477.             " . round_table('195%') . "<img src='images/" . $pl['my_gender'] . ".gif' title = '" . $pl['my_gender'] . "'>";
  1478.     if ($mjb['my_job']) {
  1479.         echo "<img src='images/";
  1480.         if ($mjb['my_job'] == '1') {
  1481.             echo "army.png' alt = 'Job: Army' title='Job: Army";
  1482.         }
  1483.         if ($mjb['my_job'] == '2') {
  1484.             echo "market.png' alt = 'Job: Grocer' title='Job: Grocer";
  1485.         }
  1486.         if ($mjb['my_job'] == '3') {
  1487.             echo "casino.png' alt = 'Job: Casino' title='Job: Casino";
  1488.         }
  1489.         if ($mjb['my_job'] == '4') {
  1490.             echo "edu.png' alt = 'Job: Casino' title='Job: Hospital";
  1491.         }
  1492.         if ($mjb['my_job'] == '5') {
  1493.             echo "edu.png' alt = 'Job: Casino' title='Job: Education";
  1494.         }
  1495.         if ($mjb['my_job'] == '6') {
  1496.             echo "edu.png' alt = 'Job: Casino' title='Job: Law";
  1497.         }
  1498.         echo "'>";
  1499.     }
  1500.    
  1501.     if ($pl['my_faction']) {
  1502.         $q_ry = array();
  1503.         $q_ry = "SELECT fac_name
  1504.                FROM faction_s
  1505.                WHERE fac_id = '" . mysql_real_escape_string($pl['my_faction']) . "'";
  1506.         $fn   = array();
  1507.         $fn   = mysql_fetch_array(mysql_query($q_ry));
  1508.         echo " <img src='images/navigation/faction.gif' alt = 'Faction: " . $fn['fac_name'] . "' title='Faction: " . $fn['fac_name'] . "'>";
  1509.     }
  1510.     if ($pl['my_partner']) {
  1511.         $q_ry = array();
  1512.         $q_ry = "SELECT playername
  1513.                FROM members
  1514.                WHERE playerid = '" . mysql_real_escape_string($pl['my_partner']) . "'";
  1515.         $pn   = array();
  1516.         $pn   = mysql_fetch_array(mysql_query($q_ry));
  1517.         echo " <img src='images/spouse.png' alt = 'Spouse: " . $pn['playername'] . "' title='Spouse: " . $pn['playername'] . "'>";
  1518.     }
  1519.     if (mysql_num_rows($bnka)) {
  1520.         $bk = array();
  1521.         $bk = mysql_fetch_array($bnka);
  1522.         echo " <img src='images/bank.png' alt = 'Investment: " . money_alter($bk['a_ammount']) . " - " . gettimeleft($bk['a_time']) . "' title='Investment: " . money_alter($bk['a_ammount']) . " -
  1523.            " . gettimeleft($bk['a_time']) . "'>";
  1524.     }
  1525.    
  1526.    
  1527.     if (mysql_num_rows($oncrs)) {
  1528.         $onc = array();
  1529.         $onc = mysql_fetch_array($oncrs);
  1530.         echo " <img src='images/education.png' alt = '" . $onc['edu_name'] . ": " . gettimeleft($onc['lc_time']) . "' title='" . $onc['edu_name'] . ": " . gettimeleft($onc['lc_time']) . "'>";
  1531.     }
  1532.     $q_ry     = "SELECT wallet
  1533.                        FROM members
  1534.                        WHERE playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1535.     $mywallet = mysql_query($q_ry);
  1536.     $myw      = mysql_fetch_array($mywallet);
  1537.    
  1538.     $wallet = $myw['wallet'];
  1539.     if ($wallet < 1) {
  1540.         $wallet = "<font color=FireBrick>" . number_format($wallet) . "</font>";
  1541.     } else {
  1542.         $wallet = "<font color=DarkGreen>" . number_format($wallet) . "</font>";
  1543.     }
  1544.    
  1545.     $q_ry      = "SELECT deposit
  1546.                        FROM members
  1547.                        WHERE playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1548.     $deposit   = mysql_query($q_ry);
  1549.     $mydeposit = mysql_fetch_array($deposit);
  1550.    
  1551.     $deposit = $mydeposit['deposit'];
  1552.     if ($deposit < 0.0000) {
  1553.         $deposit = "<font color=FireBrick>" . number_format($pl['deposit'], 4) . "</font>";
  1554.     } else {
  1555.         $deposit = "<font color=DarkGreen>" . number_format($pl['deposit'], 4) . "</font>";
  1556.     }
  1557.     $q_ry   = array();
  1558.     $q_ry   = "SELECT mi_time,mi_effect_left,mi_drug_id
  1559.                FROM member_influences
  1560.                WHERE mi_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'
  1561.                AND mi_time >= '" . mysql_real_escape_string(time()) . "'";
  1562.     $druggy = array();
  1563.     $druggy = mysql_query($q_ry);
  1564.     if (mysql_num_rows($druggy)) {
  1565.         $dr   = array();
  1566.         $dr   = mysql_fetch_array($druggy);
  1567.         $type = array(
  1568.             9 => 'Ecstacey',
  1569.             100 => 'Vicodin',
  1570.             79 => 'Xanax'
  1571.         );
  1572.         echo " <img src='images/drug.png' title='" . $type[$dr['mi_drug_id']] . ": " . gettimeleft($dr['mi_time']) . "'>";
  1573.     }
  1574.    
  1575.     if ($pl['fhc']) {
  1576.         echo " <img src='images/icons/up.png' alt = 'Booster Cooldown: " . $pl['fhc'] . " Minutes left' title='Booster Cooldown: " . $pl['fhc'] . " Minutes left'>";
  1577.     }
  1578.    
  1579.     if ($pl['my_dondays']) {
  1580.         echo " <img src='images/donator.gif' alt = 'Donator: " . $pl['my_dondays'] . " Days left' title='Donator: " . $pl['my_dondays'] . " Days left'>";
  1581.     }
  1582.     if ($pl['vipday']) {
  1583.         echo "<img src='images/vip.jpg' alt = 'VIP: " . $pl['vipday'] . " Days left' title='VIP: " . $pl['vipday'] . " Days left'>";
  1584.     }
  1585.     if ($pl['am_i_staff'] > 1) {
  1586.         echo " <img src='images/staff.png' title='Staff member'>";
  1587.     }
  1588.     echo "" . end_round() . "<hr/>
  1589.  
  1590.             </table>
  1591.             <table width='99%' cellpadding='0' cellspacing='2' style = 'background: url(../images/1.jpg) repeat-y center top; height:57px;' border = '0'>
  1592.            
  1593.             <tr><td width = '30%' align = 'left'><b>Name:</b></td><td align = 'left'><a href='profile.php?XID=" . $_SESSION['playerid'] . "'>", stripslashes(htmlentities($pl['playername'])), "</a> [", $_SESSION['playerid'], "]</b></td></tr>
  1594.             <tr><td width = '30%' align = 'left'><b>Money:</b> </td><td align = 'left'>$ $wallet</font></span></td></tr>
  1595.            
  1596.             <tr><td align = 'left'><b>Level:</b> </td><td align = 'left'>" . $pl['my_level'];
  1597.     $q_ry = array();
  1598.     $q_ry = "SELECT my_experience,my_crimeexp
  1599.                FROM members_extra
  1600.                WHERE playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1601.     $lvl  = array();
  1602.     $lvl  = mysql_query($q_ry);
  1603.     $lv   = mysql_fetch_array($lvl);
  1604.     if (($lv['my_experience'] + ($lv['my_crimeexp'] / $pl['my_level'])) > exp_level($pl['my_level'])) {
  1605.         echo "</td><td align = 'center'>[<a href='levelup.php'>upgrade</a>]";
  1606.     }
  1607.     echo "</td></tr>
  1608.        <tr><td align = 'left'><b>Points:</b>  </td><td align = 'left'>[  ", number_format($pl['my_points']), "  ]</td><td align = 'center'>[<a href='pexchange.php'>use</a>]</td></tr>
  1609.       <tr><td align = 'left'><b>Merits:</b>  </td><td align = 'left'>[  ", number_format($pl['my_merits']), "  ]</td><td align = 'center'>[<a href='mexchange.php'>use</a>]</td></tr>
  1610.  
  1611.    
  1612.             </table><hr/>
  1613.      
  1614.             " . round_table('195%') . "<table width='99%' cellpadding='0' cellspacing='0' style = 'background: url(../images/1.jpg) no-repeat center top; height:93px; margin-bottom:3px;' border = '0'>
  1615.      <tr><td align = 'left' colspan = '2' height = '8px'></td></tr>
  1616.       <tr><td width = '40%' align = 'left'><b><span  rel = 'tooltip' title = '<b>Energy</b><img src = \"images/energy.gif\"><br/>Use energy for attacking and in the gym.'>Energy:</span></b> </td><td align = 'left'><span id = 'mie'><small>", $pl['my_energy'], "/", $pl['my_maxenergy'], "(";
  1617.     $loadtime = date('i') + 1;
  1618.     if ($pl['my_energy'] >= $pl['my_maxenergy']) {
  1619.         echo "full";
  1620.     } else {
  1621.         if ($pl['my_dondays']) {
  1622.             if ($loadtime > '50') {
  1623.                 echo (60 - $loadtime);
  1624.             } else if ($loadtime > '40') {
  1625.                 echo (50 - $loadtime);
  1626.             } else if ($loadtime > '30') {
  1627.                 echo (40 - $loadtime);
  1628.             } else if ($loadtime > '20') {
  1629.                 echo (30 - $loadtime);
  1630.             } else if ($loadtime > '10') {
  1631.                 echo (20 - $loadtime);
  1632.             } else if ($loadtime > '00') {
  1633.                 echo (10 - $loadtime);
  1634.             }
  1635.         } else {
  1636.             if ($loadtime > '45') {
  1637.                 echo (60 - $loadtime);
  1638.             } else if ($loadtime > '30') {
  1639.                 echo (45 - $loadtime);
  1640.             } else if ($loadtime > '15') {
  1641.                 echo (30 - $loadtime);
  1642.             } else if ($loadtime > '00') {
  1643.                 echo (15 - $loadtime);
  1644.             }
  1645.         }
  1646.         echo "m:" . (60 - date('s')) . "s";
  1647.     }
  1648.     echo ")</small></span></td></tr>
  1649.       <tr><td colspan = '2' align = 'center'><span id = 'sbe'><img src='images/bar_green.jpg' width = '" . $ep . "' height = '10px'><img src='images/bar_red.jpg' width = '" . (165 - $ep) . "' height = '10px'></span></td></tr>
  1650.       <tr><td align = 'left'><b><span  rel = 'tooltip' title = '<b>Nerve</b><img src = \"images/graft.gif\"><br/>Use nerve for crimes.'>Nerve:</span></b> </td><td align = 'left'><span id = 'mig'><small>", $pl['my_nerve'], "/", $pl['my_maxnerve'], "(";
  1651.     if ($pl['my_nerve'] >= $pl['my_maxnerve']) {
  1652.         echo "full";
  1653.     } else {
  1654.         if ($loadtime > '55') {
  1655.             echo (60 - $loadtime);
  1656.         } else if ($loadtime > '50') {
  1657.             echo (55 - $loadtime);
  1658.         } else if ($loadtime > '45') {
  1659.             echo (50 - $loadtime);
  1660.         } else if ($loadtime > '40') {
  1661.             echo (45 - $loadtime);
  1662.         } else if ($loadtime > '35') {
  1663.             echo (40 - $loadtime);
  1664.         } else if ($loadtime > '30') {
  1665.             echo (35 - $loadtime);
  1666.         } else if ($loadtime > '25') {
  1667.             echo (30 - $loadtime);
  1668.         } else if ($loadtime > '20') {
  1669.             echo (25 - $loadtime);
  1670.         } else if ($loadtime > '15') {
  1671.             echo (20 - $loadtime);
  1672.         } else if ($loadtime > '10') {
  1673.             echo (15 - $loadtime);
  1674.         } else if ($loadtime > '05') {
  1675.             echo (10 - $loadtime);
  1676.         } else if ($loadtime > '00') {
  1677.             echo (05 - $loadtime);
  1678.         }
  1679.         echo "m:" . (60 - date('s')) . "s";
  1680.     }
  1681.     echo ")</small></span></td></tr>
  1682.       <tr><td colspan = '2' align = 'center'><span id = 'sbg'><img src='images/bar_grey.jpg' width = '" . $np . "' height = '10px'><img src='images/bar_red.jpg' width = '" . (165 - $np) . "' height = '10px'></span></td></tr>
  1683.       <tr><td align = 'left'><b><span  rel = 'tooltip' title = '<b>Happy</b><img src = \"images/happy.gif\"><br/>The more happy you are the better you train your stats.'>Happy:</span></b> </td><td align = 'left'><span id = 'mih'><small>", $pl['my_happy'], "/", $pl['my_maxhappy'], "(";
  1684.     if ($pl['my_happy'] >= $pl['my_maxhappy']) {
  1685.         echo "full";
  1686.     } else {
  1687.         if ($loadtime > '45') {
  1688.             echo (60 - $loadtime);
  1689.         } else if ($loadtime > '30') {
  1690.             echo (45 - $loadtime);
  1691.         } else if ($loadtime > '15') {
  1692.             echo (30 - $loadtime);
  1693.         } else if ($loadtime > '00') {
  1694.             echo (15 - $loadtime);
  1695.         }
  1696.         echo "m:" . (60 - date('s')) . "s";
  1697.     }
  1698.     echo ")</small></span></td></tr>
  1699.       <tr><td colspan = '2' align = 'center'><span id = 'sbh'><img src='images/bar_blue.jpg' width = '" . $hp . "' height = '10px'><img src='images/bar_red.jpg' width = '" . (165 - $hp) . "' height = '10px'></span></td></tr>
  1700.       </table>" . end_round() . "<hr/>
  1701.       </td></tr>
  1702. <tr><td align='left'>
  1703.       <table width='100%' cellpadding='0' cellspacing='0' style = 'padding-top:0px;'>
  1704. ";
  1705.     include_once('navigation.php');
  1706.    
  1707.     include_once('navigation.php');
  1708.    
  1709.     echo "</td>
  1710.             <td align='center' valign='top' width = '80%'>
  1711.             <table cellspacing = '0' cellpadding = '0' border = '0' width = '100%'>
  1712.         <tr>
  1713.       ";
  1714.    
  1715. }
  1716.  
  1717.  
  1718. $q_ry   = array();
  1719. $q_ry   = "SELECT *
  1720.              FROM active_missions am
  1721.              LEFT JOIN game_missions m ON
  1722.              am.am_mission = m.m_id
  1723.              WHERE am.am_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1724. $active = array();
  1725. $active = mysql_query($q_ry);
  1726. if (mysql_num_rows($active)) {
  1727.     $a = array();
  1728.     $a = mysql_fetch_array($active);
  1729.     if (($a['am_time'] - time()) <= '0') {
  1730.         $q_ry = array();
  1731.         $q_ry = "INSERT INTO member_mail
  1732.                                    VALUES ('NULL',
  1733.                                            '" . mysql_real_escape_string($_SESSION['playerid']) . "',
  1734.                                            '" . mysql_real_escape_string($a['m_playerid']) . "',
  1735.                                            'Failed!',
  1736.                                            '" . mysql_real_escape_string($a['m_failmessage']) . "',
  1737.                                            unix_timestamp(),
  1738.                                            '0')";
  1739.         mysql_query($q_ry);
  1740.         $q_ry = array();
  1741.         $q_ry = "DELETE FROM active_missions
  1742.                     WHERE am_playerid = '" . mysql_real_escape_string($_SESSION['playerid']) . "'";
  1743.         mysql_query($q_ry);
  1744.     } else {
  1745.         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>";
  1746.     }
  1747. }
  1748. echo "<img src = 'images/ieodd.png' style = 'display: none;'>
  1749.           <img src = 'images/ieeven.png' style = 'display: none;'>
  1750.           <img src = 'images/iehover.png' style = 'display: none;'>
  1751.           <img src = 'images/ieodds.png' style = 'display: none;'>
  1752.           <img src = 'images/ieevens.png' style = 'display: none;'>
  1753.           <img src = 'images/iehovers.png' style = 'display: none;'>";
  1754.  
  1755. ?>
Advertisement
Add Comment
Please, Sign In to add comment