Advertisement
Guest User

view profile 1

a guest
Dec 29th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.09 KB | None | 0 0
  1. <?
  2.  
  3. require("safe.php");
  4.  
  5. include("functions.php");
  6.  
  7.  
  8. ?>
  9.  
  10.  
  11. <?php
  12. $dissabled = false;
  13. $sql = "SELECT * FROM login WHERE name='".mysql_real_escape_string($_GET['studentname'])."'";
  14. $query = mysql_query($sql) or die(mysql_error());
  15. $row = mysql_fetch_object($query);
  16. $student_profileid = htmlspecialchars($row->id);
  17. $student_profilename = htmlspecialchars($row->name);
  18. $student_password = htmlspecialchars($row->password);
  19. $alltime = htmlspecialchars($row->alltime);
  20. $student_music = htmlspecialchars($row->music);
  21. $student_profilerank = htmlspecialchars($row->rank);
  22. $student_ranks = htmlspecialchars($row->rank);
  23. $student_mail = htmlspecialchars($row->mail);
  24. $student_money = htmlspecialchars($row->money);
  25. $student_health = htmlspecialchars($row->health);
  26. $student_power = htmlspecialchars($row->power);
  27. $student_exp = htmlspecialchars($row->exp);
  28. $student_weapon = htmlspecialchars($row->weapon);
  29. $student_bank = htmlspecialchars($row->bank);
  30. $student_ammo = htmlspecialchars($row->ammo);
  31. $student_armor = htmlspecialchars($row->armor);
  32. $student_location = htmlspecialchars($row->location);
  33. $student_points = htmlspecialchars($row->credits);
  34. $student_userip = htmlspecialchars($row->userip);
  35. $student_profilesitestate = htmlspecialchars($row->sitestate);
  36. $student_profilelastactive = htmlspecialchars($row->lastactive );
  37. $student_profilesignup = htmlspecialchars($row->signup );
  38. $student_profilegang = htmlspecialchars($row->gang);
  39. $student_profilemessages = htmlspecialchars($row->messages);
  40. $student_profileposts = htmlspecialchars($row->posts);
  41. $profile_quote = htmlspecialchars($row->quote);
  42. $profile_picture = htmlspecialchars($row->side_url);
  43. $student_profilepic = $row->side_pic;
  44. $profile_picture_main = htmlspecialchars($row->main_url);
  45. $profile_money = htmlspecialchars($row->money) + ($row->bank);
  46. $profile_bank = htmlspecialchars($row->bank);
  47. $profile_state = htmlspecialchars($row->state);
  48. $profile_donated = htmlspecialchars($row->donated);
  49. $profile_sitestate = htmlspecialchars($row->sitestate);
  50. $profile_oc = htmlspecialchars($row->oc);
  51. $profile_userip = htmlspecialchars($row->userip);
  52. $profile_cb = htmlspecialchars($row->medal_cb);
  53. $profile_ub = htmlspecialchars($row->medal_ub);
  54. $jb = htmlspecialchars($row->jb);
  55. $ocs = htmlspecialchars($row->ocs);
  56. $kills = htmlspecialchars($row->kills);
  57. $skills = htmlspecialchars($row->skills);
  58. $status = htmlspecialchars($row->status);
  59.  
  60. if(1 == 1) {
  61. include 'view_profile2.php';
  62. }else{
  63.  
  64. $q = mysql_query("SELECT power,name FROM login WHERE id = '".$_SESSION['user_id']."' AND power > '1'");
  65. while ($show = mysql_fetch_assoc($q)) {
  66. if ($show['power'] == '2') {
  67. $access='HDO';
  68. }
  69. else if ($show['power'] == '3') {
  70. $access='MOD';
  71. }
  72. else if ($show['power'] == '4') {
  73. $access='ADMIN';
  74. }
  75. else if ($show['power'] == '5') {
  76. $access='HDOM';
  77. }
  78. else {
  79. $access='FAILED';
  80. }
  81. }
  82.  
  83.  
  84.  
  85.  
  86. if($student_weapon == "1"){ $weapon1 = "None.";}
  87.  
  88. if($student_weapon == "2"){ $weapon1 = "Hi Standard 107";}
  89.  
  90. if($student_weapon == "3"){ $weapon1 = "Colt 45";}
  91.  
  92. if($student_weapon == "4"){ $weapon1 = "Winchester 12";}
  93.  
  94. if($student_weapon == "5"){ $weapon1 = "MAC 10";}
  95.  
  96. if($student_weapon == "6"){ $weapon1 = "M1 Thompson";}
  97.  
  98. if($student_weapon == "7"){ $weapon1 = "Minigun";}
  99.  
  100. if($student_weapon == "8"){ $weapon1 = "Machine Gun M60";}
  101.  
  102.  
  103. if($student_armor == "1"){ $armor1 = "None.";}
  104. if($student_armor == "2"){ $armor1 = "Guard Dog";}
  105. if($student_armor == "3"){ $armor1 = "Body Guard";}
  106. if($student_armor == "4"){ $armor1 = "Silk Vest";}
  107. if($student_armor == "5"){ $armor1 = "Steel Breastplate";}
  108. if($student_armor == "6"){ $armor1 = "Twaron Body Armour";}
  109. if($student_armor == "7"){ $armor1 = "Bullet Proof Vest";}
  110. if($student_armor == "8"){ $armor1 = "Ballastic Vest";} if($student_power == "1"){ $power1 = "Normal Player";}
  111.  
  112. if($student_power == "2"){ $power1 = "Help Desk Operator";}
  113.  
  114. if($student_power == "3"){ $power1 = "Moderator";}
  115.  
  116. if($student_power == "4"){ $power1 = "Administrator";}
  117.  
  118. if($student_power == "5"){ $power1 = "Help Desk Operator Manager";}
  119.  
  120.  
  121. if($student_location == "1" ) { $location1 = "Nevada";}
  122.  
  123. if($student_location == "2" ) { $location1 = "California";}
  124.  
  125. if($student_location == "3" ) { $location1 = "New Jersey";}
  126.  
  127. if($student_location == "4" ) { $location1 = "New York";}
  128.  
  129. if($student_location == "5" ) { $location1 = "Louisiana";}
  130.  
  131. if($student_location == "6" ) { $location1 = "Michigan";}
  132.  
  133. if($student_location == "7" ) { $location1 = "Pennsylvania";}
  134.  
  135. if($student_location == "8" ) { $location1 = "Illinois";}
  136.  
  137. if($student_location == "9" ) { $location1 = "Colorado";}
  138.  
  139.  
  140.  
  141. if($student_profilerank == "1"){$studentprofile_rank = $rank_1; }
  142.  
  143. if($student_profilerank == "2"){$studentprofile_rank = $rank_2; }
  144.  
  145. if($student_profilerank == "3"){$studentprofile_rank = $rank_3; }
  146.  
  147. if($student_profilerank == "4"){$studentprofile_rank = $rank_4; }
  148.  
  149. if($student_profilerank == "5"){$studentprofile_rank = $rank_5; }
  150.  
  151. if($student_profilerank == "6"){$studentprofile_rank = $rank_6; }
  152.  
  153. if($student_profilerank == "7"){$studentprofile_rank = $rank_7; }
  154.  
  155. if($student_profilerank == "8"){$studentprofile_rank = $rank_8; }
  156.  
  157. if($student_profilerank == "9"){$studentprofile_rank = $rank_9; }
  158.  
  159. if($student_profilerank == "10"){$studentprofile_rank = $rank_10; }
  160.  
  161. if($student_profilerank == "11"){$studentprofile_rank = $rank_11; }
  162.  
  163. if($student_profilerank == "12"){$studentprofile_rank = $rank_12; }
  164.  
  165. if($student_profilerank == "13"){$studentprofile_rank = $rank_13; }
  166.  
  167. if($student_profilerank == "14"){$studentprofile_rank = $rank_14; }
  168.  
  169. if($student_profilerank == "15"){$studentprofile_rank = $rank_15; }
  170.  
  171. if($student_profilerank == "16"){$studentprofile_rank = $rank_16; }
  172.  
  173. if($student_profilerank == "17"){$studentprofile_rank = $rank_17; }
  174.  
  175. if($student_profilerank == "18"){$studentprofile_rank = $rank_18; }
  176.  
  177. if($student_profilerank == "19"){$studentprofile_rank = $rank_19; }
  178. if($student_profilerank == "20"){$studentprofile_rank = $rank_20; }
  179.  
  180. if($student_power == "3"){$studentprofile_rank = "Moderator";}
  181.  
  182. if($student_power == "4"){$studentprofile_rank = "Administrator";}
  183.  
  184. if($student_power == "5"){$studentprofile_rank = "Help Desk Manager";}
  185.  
  186. if($student_profilesitestate == "9"){$student_state = "Alive";}
  187.  
  188. if($student_profilesitestate == "0"){$student_state = "Alive";}
  189.  
  190. if($student_profilesitestate == "2"){$student_state = "Dead";}
  191.  
  192. if($student_profilesitestate == "1"){$student_state = "Banned";}
  193.  
  194. if($student_profilename == "..."){$student_state = "Busy";}
  195.  
  196. if(empty($student_profilegang)){ $student_profile_gang = "No Crew.";}else { $student_profile_gang = $student_profilegang; };
  197.  
  198.  
  199.  
  200. $psql = "SELECT * FROM gangs WHERE name='".mysql_real_escape_string($student_profile_gang)."'";
  201. $query = mysql_query($psql) or die(mysql_error());
  202. $row = mysql_fetch_object($query);
  203. $gang_leader = htmlspecialchars($row->leader);
  204. $under_boss = htmlspecialchars($row->under_boss);
  205. $gang_id = htmlspecialchars($row->id);
  206. $gang_color2 = htmlspecialchars($row->color);
  207.  
  208. ?>
  209.  
  210.  
  211.  
  212.  
  213. <table width="100%" border="0" cellspacing="0">
  214.  
  215. <tr>
  216.  
  217. <td><table width="55%" border="1" align="center" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" class="table">
  218.  
  219. <tr>
  220.  
  221. <td colspan="2" align="left" class="style2" bordercolor="#000000" bgcolor="#133337"><center>
  222. <?php echo"".$student_profilename."</a>"; ?>'s Profile</center></td>
  223.  
  224. </tr>
  225.  
  226.  
  227. <?php
  228.  
  229. if($student_profile_gang == "No Crew."){
  230.  
  231. echo "";
  232.  
  233. }else{
  234.  
  235. echo "<td class=\"$gang_color2\" colspan=\"2\" align=\"center\" >
  236. <a href=\"home.php?pageid=901&gangname=". $student_profile_gang ."\">".$student_profile_gang."</a>
  237. </td>
  238. </tr>
  239.  
  240.  
  241. </td>";
  242.  
  243. }
  244.  
  245. ?>
  246.  
  247.  
  248.  
  249. <tr>
  250.  
  251.  
  252. <td width="15%" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Name:</b></label></td>
  253.  
  254. <td width="85%" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php
  255.  
  256. if ($student_power == "1") {
  257. echo "<a href='home.php?pageid=90&amp;studentname=".$student_profilename."'><font color='white'>".$student_profilename."</font></a>";
  258. }
  259. else if ($student_power == "2") {
  260. echo "<a href='home.php?pageid=90&amp;studentname=".$student_profilename."'><font color='yellow'><b>".$student_profilename."</b></font></a>";
  261. }
  262. else if ($student_power == "3") {
  263. echo "<a href='home.php?pageid=90&amp;studentname=".$student_profilename."'><font color='green'><b>".$student_profilename."</b></font></a>";
  264. }
  265. else if ($student_power == "4") {
  266. echo "<a href='home.php?pageid=90&amp;studentname=".$student_profilename."'><font color='red'><b>".$student_profilename."</b></font></a>";
  267. }
  268. else if ($student_power == "5") {
  269. echo "<a href='home.php?pageid=90&amp;studentname=".$student_profilename."'><font color='skyblue'><b>".$student_profilename."</b></font></a>";
  270. }
  271.  
  272.  
  273. ?>
  274.  
  275.  
  276. <tr>
  277. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b><?
  278. $check = mysql_num_rows(mysql_query("SELECT leader FROM gangs WHERE leader = '".$student_profilename."'"));
  279. if ($check == 0) {
  280. echo 'Crew:';
  281. }
  282. else {
  283. echo 'Boss Of:';
  284. }
  285.  
  286. ?></b></label>&nbsp;</td>
  287.  
  288. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php
  289.  
  290. if($student_profile_gang == "No Crew."){
  291.  
  292. echo "None";
  293.  
  294. }else{
  295.  
  296. echo "<a href=\"home.php?pageid=901&gangname=". $student_profile_gang ."\">".$student_profile_gang."</a>";
  297.  
  298. }
  299.  
  300. ?>
  301.  
  302. </label></td>
  303. </tr>
  304.  
  305. <?php
  306.  
  307.  
  308. if(!empty($profile_picture)){
  309.  
  310.  
  311. if($dissabled == false){
  312.  
  313.  
  314. }else{
  315.  
  316. ;
  317.  
  318. }
  319.  
  320. }else{
  321.  
  322.  
  323.  
  324. } ?> </td>
  325.  
  326. </tr>
  327.  
  328.  
  329. <?
  330. if ($alltime == '0') {
  331. ?>
  332. <tr>
  333.  
  334. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Status:</b></label></td>
  335.  
  336. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php echo $student_state;?>
  337. <?php
  338.  
  339.  
  340.  
  341. $sql = "SELECT * FROM login WHERE hide='0' AND name='".mysql_real_escape_string($student_profilename)."' AND DATE_SUB(NOW(),INTERVAL 15 MINUTE) <= lastactive";
  342.  
  343. $query = mysql_query($sql);
  344.  
  345. $row = mysql_fetch_object($query);
  346.  
  347. $id = htmlspecialchars($row->id);
  348.  
  349. $onlinename = htmlspecialchars($row->name);
  350.  
  351.  
  352. if(empty($onlinename)){
  353.  
  354. echo "(<span class='ofline'>Offline</span>)";
  355.  
  356. }else if($status == '1') {
  357.  
  358. echo "(<span class='online'>Online</span>)";
  359.  
  360. }else if($status == '2') {
  361.  
  362. echo "(<span class='busy'>Busy</span>)";
  363.  
  364. }else if($status == '3') {
  365.  
  366. echo "(<span class='friend_online'>Away</span>)";
  367.  
  368. }
  369.  
  370.  
  371.  
  372. ?>
  373.  
  374. </label></td>
  375.  
  376. </tr><? } ?>
  377.  
  378. <?
  379. if ($alltime == '1') {
  380. ?>
  381. <tr>
  382.  
  383. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Status:</b></label></td>
  384.  
  385. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php echo $student_state;?>
  386. <?php
  387.  
  388.  
  389.  
  390. $sql = "SELECT * FROM login WHERE hide='0' AND name='".mysql_real_escape_string($student_profilename)."' AND DATE_SUB(NOW(),INTERVAL 15 MINUTE) <= lastactive OR online='Yes'";
  391.  
  392. $query = mysql_query($sql);
  393.  
  394. $row = mysql_fetch_object($query);
  395.  
  396. $id = htmlspecialchars($row->id);
  397.  
  398. $onlinename = htmlspecialchars($row->name);
  399.  
  400.  
  401. if(empty($onlinename)){
  402.  
  403. echo "(<span class='online'>Online</span>)";
  404.  
  405. }else{
  406.  
  407. echo "(<span class='online'>Online</span>)";
  408.  
  409. }
  410.  
  411.  
  412.  
  413. ?>
  414.  
  415. </label></td>
  416.  
  417. </tr><? } ?>
  418. <tr>
  419.  
  420. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Rank:</b></label></td>
  421.  
  422. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php echo $studentprofile_rank;?>&nbsp;</label></td>
  423.  
  424. </tr>
  425.  
  426. <tr>
  427.  
  428. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style" width="50"><b>Wealth:</b></td>
  429.  
  430. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style" width="210"><?php
  431.  
  432.  
  433.  
  434. if(($profile_money >= -99999999999990 ) and ( $profile_money <= 100000)){ $profile_money = "Flat Broke";}
  435.  
  436. if(($profile_money > 100000 ) and ( $profile_money <= 350000)){ $profile_money = "Very Poor";}
  437.  
  438. if(($profile_money > 350000 ) and ( $profile_money <= 1000000)){ $profile_money = "Poor";}
  439.  
  440. if(($profile_money > 1000000 ) and ( $profile_money <= 2500000)){ $profile_money = "Wealthy";}
  441.  
  442. if(($profile_money > 2500000 ) and ( $profile_money <= 6000000)){ $profile_money = "Rich";}
  443.  
  444. if(($profile_money > 6000000 ) and ( $profile_money <= 13500000)){ $profile_money = "Very Rich";}
  445.  
  446. if(($profile_money > 13500000 ) and ( $profile_money <= 25000000)){ $profile_money = "Extremely Rich";}
  447.  
  448. if(($profile_money > 25000000 ) and ( $profile_money <= 50000000)){ $profile_money = "Disgustingly Rich";}
  449.  
  450. if(($profile_money > 50000000 ) and ( $profile_money <= 250000000)){ $profile_money = "Notoriously Rich";}
  451.  
  452. if($profile_money > 250000000 ){ $profile_money = "Mysticaly Rich";}
  453.  
  454.  
  455. echo $profile_money;
  456.  
  457.  
  458.  
  459. ?></td>
  460.  
  461. </tr>
  462.  
  463. <?
  464. if ($skills == '1') {
  465.  
  466. ?>
  467.  
  468. <tr>
  469.  
  470. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Kills:</b></label></td>
  471.  
  472. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php echo "".number_format($kills).""; ?></label>&nbsp;</td>
  473.  
  474. </tr>
  475. <? } ?>
  476.  
  477. <?php
  478.  
  479. $sql = "SELECT jail FROM user_info WHERE name='".mysql_real_escape_string($student_profilename)."'";
  480. $query = mysql_query($sql) or die(mysql_error());
  481. $row = mysql_fetch_object($query);
  482. $jail = htmlspecialchars($row->jail);
  483. $jail = explode("-", $jail);
  484.  
  485. ?>
  486.  
  487.  
  488. <?
  489. if ($jb == '1') {
  490.  
  491. ?>
  492.  
  493. <tr>
  494.  
  495. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Jailbust:</b></label></td>
  496.  
  497. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php echo "".number_format($jail[1]).""; ?></label>&nbsp;</td>
  498.  
  499. </tr>
  500. <? } ?>
  501.  
  502. <?
  503. if ($ocs == '1') {
  504.  
  505. ?>
  506. <tr>
  507. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>OC State:</b></td>
  508. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php
  509.  
  510. $psql = "SELECT oc_time FROM times WHERE studenttime='".mysql_real_escape_string($student_profilename)."'";
  511. $query = mysql_query($psql) or die(mysql_error());
  512. $row = mysql_fetch_object($query);
  513. $oc_time2 = htmlspecialchars($row->oc_time);
  514.  
  515.  
  516. if((time() <= $oc_time2) or ($student_power >= '3') or (!empty($profile_oc))) {
  517. echo "<font color=red>Not Available</font>";
  518. }else{
  519. echo "<font color=green>Available</font>";
  520. }
  521.  
  522. ?></td>
  523. </tr>
  524.  
  525. <? } ?>
  526.  
  527. <tr>
  528.  
  529. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Messages:</b></label></td>
  530.  
  531. <td align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php echo "".number_format($student_profilemessages).""; ?></label>&nbsp;</td>
  532.  
  533. </tr>
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540. <tr>
  541.  
  542. <td align="left" valign="top" bordercolor="#000000" bgcolor="#414141" class="style"><label><b>Quote:</b><br><br><br></td>
  543. <td align="left" valign="top" bordercolor="#000000" bgcolor="#414141" class="style">
  544. <br><?php
  545.  
  546. if(!empty($profile_picture_main)){
  547.  
  548. if($dissabled == false){
  549.  
  550. echo "<img src=\"".$profile_picture_main."\" border=\"0\" align=\"top\" /><br />";
  551.  
  552. }
  553.  
  554. }
  555.  
  556. ?>
  557.  
  558. <?php
  559.  
  560. if(empty($profile_quote)){ $profile_quote = "No Quote.";}else {$profile_quote = $profile_quote; };
  561.  
  562.  
  563. $profile_quote = htmlentities($profile_quote);
  564.  
  565. $profile_quote = nl2br($profile_quote);
  566.  
  567. $profile_quote = bbcodes($profile_quote);
  568.  
  569. $profile_quote = smilie($profile_quote);
  570.  
  571. echo $profile_quote;
  572.  
  573.  
  574.  
  575. $sql2 = "SELECT name,m1,m2,id FROM login WHERE name='".$name."'";
  576. $query2 = mysql_query($sql2) or die(mysql_error());
  577. $myself = mysql_fetch_assoc($query2);
  578. if(($student_profilename == 'Leoluca') && ($myself['m2'] > 24) && ($myself['m1'] == 2)){
  579. mysql_query("UPDATE login SET m2='50' WHERE id='".$myself['id']."'");
  580. echo 'Benedetto is planning to kill you....';
  581. }
  582.  
  583. ?>
  584. </td>
  585.  
  586. </tr>
  587.  
  588. </table></td>
  589.  
  590. </tr>
  591.  
  592. <tr>
  593.  
  594. <td>&nbsp;</td>
  595.  
  596. </tr>
  597.  
  598.  
  599.  
  600. <tr>
  601.  
  602. <td>&nbsp;</td>
  603.  
  604. </tr>
  605.  
  606. <tr>
  607.  
  608. <td align="center">
  609. <?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube")?>
  610.  
  611. <? if($access=='MOD' OR $access=='ADMIN'){ ?>
  612.  
  613.  
  614.  
  615. <table width="550" border="1" cellpadding="0" cellspacing="1" class="table">
  616.  
  617. <tr>
  618.  
  619.  
  620. <td align="center" class="style2" colspan="2">
  621. <?php echo"<a href=%22home.php?pageid=900&studentname=&quot;.$student_profilename.&quot;/&quot;>".$student_profilename."</a>"; ?>'s Statistics</td>
  622.  
  623. </tr>
  624.  
  625.  
  626.  
  627. <tr>
  628.  
  629. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>State:</label></td>
  630.  
  631. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube" and $student_profilename != "Cube")echo $location1;?>
  632. &nbsp;</td>
  633.  
  634. </tr>
  635.  
  636. <tr>
  637.  
  638. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Last Click:</label></td>
  639.  
  640. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo $student_profilelastactive;?>&nbsp;</label></td>
  641.  
  642. </tr>
  643.  
  644. <tr>
  645.  
  646. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Email:</label></td>
  647.  
  648. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo $student_mail;?>&nbsp;</label></td>
  649.  
  650. </tr>
  651.  
  652.  
  653.  
  654. <tr>
  655.  
  656. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>IP Address:</label></td>
  657.  
  658. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo $student_userip;?>&nbsp;</label></td>
  659.  
  660. </tr>
  661.  
  662.  
  663. <tr>
  664.  
  665. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Points:</label></td>
  666.  
  667. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo "".number_format($student_points)."";?>&nbsp;</label></td>
  668.  
  669. </tr>
  670.  
  671. <tr>
  672.  
  673. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Money:</label></td>
  674.  
  675. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo "$".number_format($student_money)."";?>&nbsp;</label></td>
  676.  
  677. </tr>
  678.  
  679. <tr>
  680.  
  681. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Money in bank:</label></td>
  682.  
  683. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo "$".number_format($student_bank)."";?>&nbsp;</label></td>
  684.  
  685. </tr>
  686.  
  687. <tr>
  688.  
  689. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Total Cash:</label></td>
  690.  
  691. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo "$".number_format($student_bank + $student_money)."";?></label>&nbsp;</td>
  692.  
  693. </tr>
  694.  
  695.  
  696. <tr>
  697.  
  698. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Experience:</label></td>
  699.  
  700. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo"".number_format( $student_exp).""; ?>&nbsp;</label></td>
  701.  
  702. </tr>
  703.  
  704.  
  705. <tr>
  706.  
  707. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Health:</label></td>
  708.  
  709. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo"".number_format( $student_health)."%"; ?>&nbsp;</label></td>
  710.  
  711. </tr>
  712.  
  713. <tr>
  714.  
  715. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Gun:</label></td>
  716.  
  717. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo $weapon1; ?>&nbsp;</label></td>
  718.  
  719. </tr>
  720.  
  721. <tr>
  722.  
  723. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Bullets:</label></td>
  724.  
  725. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo"".number_format($student_ammo).""; ?>&nbsp;</label></td>
  726.  
  727. </tr>
  728.  
  729. <tr>
  730.  
  731. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Protection:</label></td>
  732.  
  733. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo $armor1; ?>&nbsp;</label></td>
  734.  
  735. </tr>
  736. <? if($access=='ADMIN'){ ?>
  737. <tr>
  738.  
  739. <td width="210" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label>Password:</label></td>
  740.  
  741. <td width="400" align="left" bordercolor="#000000" bgcolor="#414141" class="style"><label><?php if($student_profilename != "Administrator" and $student_profilename != "" and $student_profilename != "Cube") echo $student_password;?>&nbsp;</label></td>
  742.  
  743. </tr>
  744. <? } ?>
  745. </table>
  746.  
  747. <? } ?></label></td>
  748.  
  749. </tr>
  750. <? if($access=='MOD' OR $access=='ADMIN'){ ?>
  751.  
  752. <td width="250" align="center" valign="top"><table width="250" border="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" class="table">
  753. <tr>
  754. <td colspan="2" align="center" bgcolor="#133337" class="style2"><label>Last 20 Received (Cash)</label>
  755. <label></label></td>
  756. </tr>
  757. <tr>
  758. <td width="125" align="left" bgcolor="#133337" class="info_row"><label>Sent by:</label></td>
  759. <td width="125" align="left" bgcolor="#133337" class="info_row"><label>Amount:</label></td>
  760. </tr>
  761. <?
  762.  
  763. // reveived
  764.  
  765. if ($_GET['action'] <> "received"){$Rlimit = "LIMIT 0,20";}
  766.  
  767.  
  768. $result = mysql_query("SELECT * FROM bank WHERE sendto='".mysql_real_escape_string($student_profilename)."' ORDER BY id DESC ".mysql_real_escape_string($Rlimit)."") or die(mysql_error());
  769. // keeps getting the next row until there are no more to get
  770. while($row = mysql_fetch_array( $result )) {
  771. // Print out the contents of each row into a table?>
  772. <tr>
  773. <td width="125" align="left" bgcolor="#414141" class="style"><?php echo "<a href=\"home.php?pageid=900&studentname=". $row['sendby'] ."\">".$row['sendby']."</a>"; ?></td>
  774. <td width="125" align="left" bgcolor="#414141" class="style"><label><?php echo "$".number_format($row['amount']).""; ?></label></td>
  775. </tr>
  776. <?php } // while
  777. // end print out results received.?>
  778. </table>
  779. <br/>
  780. <table width="250" border="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" class="table">
  781. <tr>
  782. <td colspan="2" align="center" bgcolor="#133337" class="style2"><label>Last 20 Sent (Cash)</label>
  783.  
  784. <label></label></td>
  785. </tr>
  786. <tr>
  787. <td width="125" align="left" bgcolor="#133337" class="info_row"><label>Sent to:</label></td>
  788. <td width="125" align="left" bgcolor="#133337" class="info_row"><label>Amount:</label></td>
  789. </tr>
  790. <?
  791.  
  792. // transfers
  793.  
  794. if ($_GET['action'] <> "transfers"){$Tlimit = "LIMIT 0,20";}
  795.  
  796. $result = mysql_query("SELECT * FROM bank WHERE sendby='".mysql_real_escape_string($student_profilename)."' ORDER BY id DESC ".mysql_real_escape_string($Tlimit)."") or die(mysql_error());
  797.  
  798. // keeps getting the next row until there are no more to get
  799. while($row = mysql_fetch_array( $result )) {
  800. // Print out the contents of each row into a table ?>
  801. <tr>
  802. <td width="125" align="left" bgcolor="#414141" class="style"><?php echo "<a href=\"home.php?pageid=900&studentname=". $row['sendto'] ."\">".$row['sendto']."</a>"; ?></td>
  803. <td width="125" align="left" bgcolor="#414141" class="style"><label><?php echo "$".number_format($row['amount']).""; ?></label></td>
  804. </tr>
  805. <?php } // while
  806. // end print out results received.?>
  807. </table></td>
  808. </tr>
  809.  
  810. <? } ?>
  811. <tr>
  812.  
  813. <td>&nbsp;</td>
  814.  
  815. </tr>
  816.  
  817. </table>
  818.  
  819. <br/>
  820. <?
  821. }
  822. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement