plik


"Normal","E"=>"Editor","I"=>"Image artist","i"=>"Island checker","J"=>"Artist & Island checker","D"=>"Dungeon checker","d"=>"Island & Dungeon checker","P"=>"Newspaper editor","p"=>"Newspaper editor & island checker","M"=>"PH Moderator","a"=>"Semi-admin","U"=>"Dungeon checker & Artist"); include "objects_util.php"; // Utilities to handle objects / inventory include "misc_util.php"; // Misc utilities include "db_conn.php"; include "titles.php"; header("Expires: now"); $playerid=0; if($HTTP_COOKIE_VARS["RPG"] != "") { $p=explode("/",$HTTP_COOKIE_VARS["RPG"]); $id=$p[0]+0; $username=urldecode($p[1]); $password=urldecode($p[2]); //$r=$db->Execute("SELECT * FROM PLAYER WHERE USERNAME='$username' AND PASSWORD = '$password' AND AUTHORIZED='Y'"); $playervals=read_db_entry($db,"SELECT * FROM PLAYER WHERE ID = $id"); // Match ? //echo "-".strtoupper($playervals["USERNAME"])."- -".strtoupper($username)."- -".strtoupper($playervals["PASSWORD"])."- -".strtoupper($password)."-"; if(count($playervals) > 0 && strtoupper($playervals["USERNAME"]) == strtoupper($username) && strtoupper($playervals["PASSWORD"]) == strtoupper($password)) $playerid=$playervals["ID"]; } echo "\n"; echo "\n"; echo "Player info\n"; echo "\n"; echo "\n"; echo "\n"; $uservals=read_db_entry($db,"SELECT * FROM PLAYER WHERE ID = ".($_GET["ID"]+0)." AND AUTHORIZED = 'Y'"); if($playerid != 0 && $playervals["HELPER"] == "Y" && $_GET["CMD"] == "BAN") { if($uservals["HELPER"] == "Y" && $playervals["ROLE"] != "M" && $playervals["ROLE"] != "A") echo "Cannot chat ban another PH
\n"; else { $dt=strftime("%Y-%m-%d",time()+(2*24*3600)); $db->Execute("UPDATE PLAYER SET CHATBAN = '$dt' WHERE ID = ".($_GET["ID"]+0)." AND HELPER = 'N'"); send_message($_GET["ID"]+0,"Chat banned","Due to violating either profanity, racism, or spamming rules, you have been chat banned for 2 days.",false,true,0,0); } } if($playervals["HELPER"] == "Y" && $_GET["CMD"] == "RECALL") { $db->Execute("UPDATE PLAYER SET LOCATION=12,MONSTERCOMBAT=0,MONSTERHP=0,GUIBLOCKED='N' WHERE ID = ".($_GET["ID"]+0)); $db->Execute("DELETE FROM PLAYER_COMBAT WHERE USERID = ".($_GET["ID"]+0)); echo "
Player recalled
\n"; } if($playervals["HELPER"] == "Y" && $_GET["CMD"] == "WARNING") { if($_GET["CHANNEL"] != "") add_chat_line("GEN_".($_GET["CHANNEL"]+0),"** ".$uservals["USERNAME"]." IS WARNED **"); else add_chat_line($playervals["LOCATION"],"** ".$uservals["USERNAME"]." IS WARNED **"); echo "
Player is warned
\n"; } echo ""; if($uservals["ROLE"] == 'A') echo "\n"; else if($uservals["ROLE"] != "N" && isset($roles[$uservals["ROLE"]])) echo "\n"; else if($uservals["HELPER"] == 'Y') echo "\n"; else echo "\n"; // List of medals $hasmedals=false; $sql="SELECT PLAYER_MEDALS.MEDALID, MEDALS.NAME, TABLE_ACTIONS.NB, MEDALS.MINNB,ACTION_TYPES.NAME FROM PLAYER_MEDALS,MEDALS,TABLE_ACTIONS, ACTION_TYPES WHERE PLAYER_MEDALS.USERID = ".($_GET["ID"]+0)." AND TABLE_ACTIONS.USERID = ".($_GET["ID"]+0)." AND TABLE_ACTIONS.ACTIONID = MEDALS.ACTIONID AND PLAYER_MEDALS.MEDALID = MEDALS.ID AND ACTION_TYPES.ID = MEDALS.ACTIONID ORDER BY PLAYER_MEDALS.MEDALID"; $r=$db->Execute($sql); if(!$r->EOF) while(!$r->EOF) { if($hasmedals == false) { echo "\n"; echo "\n"; echo "
Administrator
".$roles[$uservals["ROLE"]]."
Player helper
Player
"; $hasmedals=true; } echo "fields[0].".gif OnMouseOver=\"show_help_box(event,unescape('".rawurlencode($r->fields[1]."
Action: ".$r->fields[4]."
Requires: ".$r->fields[3]."
Did: ".$r->fields[2])."'));\" OnMouseOut='hide_help_box()'>\n"; $r->MoveNext(); } $r->Close(); if($i != 0) echo "
".$titles[$uservals['SEX']][$uservals['TITLE']]." ".$uservals["USERNAME"]." stats
"; $r=$db->Execute("SELECT NBITEMS FROM INVENTORY WHERE OBJECTID = 10137 AND USERID = ".($_GET["ID"]+0)); $nb=$r->fields[0]+0; $r->Close(); if($nb > 0) echo "\n"; if($playervals["HELPER"] == "Y" || $playervals["ROLE"] == "A") { $qual=array("0"=>"Low (Javascript)","1"=>"High (Javascript)","2"=>"Java Top view","3"=>"Java Perspective (full options)"); echo "\n"; } echo "\n"; $r=$db->Execute("SELECT COUNT(QUESTID) FROM AVAILABLE_QUESTS WHERE NBFINISHED > 10 AND UNIX_TIMESTAMP(FINISHEDON) > UNIX_TIMESTAMP(CURRENT_TIMESTAMP)-3600*24*60"); $nbtot=$r->fields[0]+0; $r->Close(); $r=$db->Execute("SELECT COUNT(USERID) FROM FINISHEDQUESTS,AVAILABLE_QUESTS WHERE AVAILABLE_QUESTS.QUESTID=FINISHEDQUESTS.QUESTID AND NBFINISHED > 10 AND USERID = ".($_GET["ID"]+0)); echo "\n"; $r->Close(); echo "\n"; echo "\n"; echo "\n"; echo "\n"; $class=array("F"=>"Fire Mage","I"=>"Ice Mage","E"=>"Earth Mage","A"=>"Air Mage","V"=>"Vampire Mage","B"=>"Vandale Warrior","C"=>"Cavaliar Warrior","M"=>"Marauder Warrior","R"=>"Rogue Warrior",""=>"Adventurer"); $r=$db->Execute("SELECT SCHOOL FROM PLAYER WHERE PLAYER.ID=".($_GET['ID']+0)." "); if(!$r->EOF) echo "\n"; $r->Close(); $r=$db->Execute("SELECT STARS FROM PLAYER_DONGEON WHERE USERID = ".($_GET["ID"]+0)); if(!$r->EOF) echo "\n"; $r->Close(); $r=$db->Execute("SELECT COUNT(ID) FROM PLAYER WHERE ARENAPOINTS > ".$uservals["ARENAPOINTS"]); $rank=$r->fields[0]+1; $r->Close; echo "\n"; $r=$db->Execute("SELECT LOCATIONS.NAME FROM LOCATIONS,ISLAND_STATUS WHERE ISLAND_STATUS.STATUS='C' AND ISLAND_STATUS.LOCATION=LOCATIONS.ID AND ISLAND_STATUS.USERID=".($_GET["ID"]+0)); if(!$r->EOF) echo "\n"; $r->Close(); $r=$db->Execute("SELECT NAME FROM CLANS,CLAN_MEMBERS WHERE CLAN_MEMBERS.USERID = ".($_GET["ID"]+0)." AND ROLE >= 0 AND CLAN_MEMBERS.CLANID = CLANS.CLANID LIMIT 0,1"); if(!$r->EOF) echo "\n"; $r->Close(); $r=$db->Execute("SELECT NAME FROM PLAYER_SHOP WHERE SHOPID = ".($_GET["ID"]+0)); if(!$r->EOF) echo "\n"; $r->Close(); /*$sql="SELECT PLAYER_MEDALS.MEDALID, MEDALS.NAME FROM PLAYER_MEDALS,MEDALS WHERE PLAYER_MEDALS.USERID = ".$_GET["ID"]." AND PLAYER_MEDALS.MEDALID = MEDALS.ID ORDER BY PLAYER_MEDALS.MEDALID"; $r=$db->Execute($sql); if(!$r->EOF) { echo "\n"; } else $r->Close();*/ // Player armors and so on echo "\n"; echo "
Ruby tokens owned: $nb
Image quality:".$qual[$uservals["IMAGEQUALITY"]+0]."
Level:".$uservals["LEVEL"]."Finished quests:".($r->fields[0]+0)." / $nbtot
Strength:".($uservals["STRONGNESS"]+$uservals["STRMOD"])."Dexterity:".($uservals["DEXTERITY"]+$uservals["DEXMOD"])."
Intelligence:".($uservals["INTELLIGENCE"]+$uservals["INTMOD"])."Charisma:".($uservals["CHARISMA"]+$uservals["CHAMOD"])."
Class:".$class[$r->fields[0]]."
Dungeon stars:fields[0].".gif>
Arena rank:#$rank (".$uservals["ARENAPOINTS"]." pts)
Island manager:".remove_tags($r->fields[0])."
Clan member:".remove_tags($r->fields[0])."
Market shop:".remove_tags($r->fields[0])."
"; $i=0; while(!$r->EOF) { if($i == 0) echo ""; echo "\n"; $i++; if($i >= 3) { echo "\n"; $i=0; } $r->MoveNext(); } if($i != 0) echo "\n"; $r->Close(); echo "
fields[0].".gif>
".$r->fields[1]."
"; echo ""; $i=0; $l=0; foreach($parts as $k) { if($i == 0) echo ""; if($k == "") $name=" "; else { $name="".ucfirst(strtolower($k)).""; $id=$uservals[$k]; if($id != 0) { $info=object_info($id); $name.="
".object_link($id,$info["NAME"]); } //echo ""; } echo ""; if($i == 0 && $l == 0) echo "\n"; if($i != 0) { echo ""; $i=0; $l++; } else $i++; } echo "
[Remove]$name

\n"; echo "
"; $pickpocket=false; $heal=false; if($playerid != 0 && $playervals["HELPER"] == "Y") { if($uservals["HELPER"] == "Y" && $playervals["ROLE"] != "M" && $playervals["ROLE"] != "A") echo "[Chat Ban (2 day)]\n"; else echo "[Chat ban (2 day)]\n"; } if($playerid != 0 && $playerid != $_GET["ID"]) { $sql="SELECT COUNT(USERID) FROM PLAYER_SKILLS WHERE USERID=$playerid AND SKILLID=4"; $r=$db->Execute($sql); if(($r->fields[0]+0) > 0) $pickpocket=true; $r->Close(); } if($playerid != 0 && $playerid != $_GET["ID"]) { $sql="SELECT COUNT(USERID) FROM PLAYER_SKILLS WHERE USERID=$playerid AND SKILLID=5"; $r=$db->Execute($sql); if(($r->fields[0]+0) > 0) $heal=true; $r->Close(); } if($playervals["LOCATION"] == 30 && $playervals["ID"] != $_GET["ID"] && ($uservals["LEVEL"]+0) >= 3 && ($playervals["LEVEL"]+0) >= 3 && abs($uservals["LEVEL"]-$playervals["LEVEL"]) <= 20) //if($playervals["LOCATION"] == 30 && $playervals["ID"] != $_GET["ID"] && ($uservals["LEVEL"]+0) >= 3 && ($playervals["LEVEL"]+0) >= 3) echo "[Fight]\n"; if($playerid != $_GET["ID"] && (($playervals["TITLE"]+0) == 8 || ($playervals["TITLE"]+0) == 9 || $playervals["ROLE"] == "A")) echo "[Give a title]\n"; if($playerid != 0 && $playerid != $_GET["ID"] && $_GET["CHANNEL"] == "") echo "[Trade]\n"; if($heal == true && $_GET["CHANNEL"] == "") echo "[Heal]\n"; if($playervals["ROLE"] == "M" || $playervals["ROLE"] == "A" ) { if($_GET["CMD"] == "WINGS") { $db->Execute("UPDATE PLAYER SET HELPER='Y' WHERE ID = ".($_GET["ID"]+0)); $uservals["HELPER"]="Y"; } else if($_GET["CMD"] == "UNWINGS" && $uservals["ROLE"] != "A") { $db->Execute("UPDATE PLAYER SET HELPER='N' WHERE ID = ".($_GET["ID"]+0)); $uservals["HELPER"]="N"; } if($uservals["HELPER"] == "N") echo "[Make PH]\n"; //else if($uservals["ROLE"] != "A" && $uservals["ROLE"] != "M") else if($uservals["ROLE"] != "A") echo "[Make De-PH]\n"; } if($playervals["HELPER"] == "Y") { echo "[Recall]\n"; echo "[Send a warning]\n"; } if($pickpocket == true && $_GET["CHANNEL"] == "") echo "[Pickpocket]\n"; if($playervals["ROLE"] == "A" && $uservals["ROLE"] != "A") { if($_POST["ROLE"] != "") { $uservals["ROLE"]=$_POST["ROLE"]; $db->Execute("UPDATE PLAYER SET ROLE=".$db->qstr($_POST["ROLE"])." WHERE ID = ".($_GET["ID"]+0)); } echo "
\n"; echo "
\n"; echo "Role:
\n"; } echo "[Close]\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; $uservals=$playervals; echo "\n"; echo "\n"; $db->Close(); ?>

Wyszukiwarka

Podobne podstrony:
player info
player info
info
show info
Beach Head Desert War info
info
8 0 info czujniki
info
view GPS Info
info Gios PDF Splitter And Merger 1 11
view GPS Info
product info

więcej podobnych podstron