// Copyright (C) 2010 Winch Gate Property Limited // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . $publicAccess = true; include('authenticate.php'); include('request_interface.php'); if ($preselServ != "") { list($presel_shard, $presel_server, $presel_service) = explode(".", $preselServ); if ($presel_service) { $aliases = split('[/-]', $presel_service); if (count($aliases) == 3) $presel_service = $aliases[0]; } } htmlProlog($_SERVER['PHP_SELF'], "Player Locator"); echo "\n"; // input variables : // - $preselServ : preselected service address // - $execCommand : executed command on preselected service, like a normal service // echo "

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; $result = sqlquery("SELECT DISTINCT shard FROM service ORDER BY shard"); echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Player/Character name
\n"; if (isset($char_name)) { $addr = (count($selected_shards) > 0 ? "[".join(",", $selected_shards)."]" : "*").".*.EGS.playerInfo $char_name"; $qstate = nel_query($addr, $commandResult); } if ($commandResult) { $res_array = explode("\n", $commandResult); $parse_start = 0; /* echo "
";
		print_r($res_array);
		echo "
\n"; */ echo "

\n"; $num_player = 0; echo "\n"; while (true) { if ($res_array[$parse_start] == "") break; $offset = 4; list($res_shard) = sscanf($res_array[$parse_start], "----- Result from Shard %s"); list($num_res) = sscanf($res_array[$parse_start+$offset-1], "%d"); $start = $parse_start+$offset; $stop = $start+$num_res; $parse_start += $num_res+$offset; $last_uid = ""; $icolor = 0; echo "Result of search for '$char_name' on Shard '$res_shard' ($num_res entr".($num_res>1 ? "ies" : "y")." found)
\n"; echo "Click on EntityId to get directly to DefaultPlayer view,
or click anywhere else to select a player and then click Select Players button.


\n"; echo "\n"; for ($line=$start; $line<$stop; ++$line) { $l = explode(" ", $res_array[$line]); for ($i=1; $i\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; ++$num_player; } echo "
UIdUserNameEIdEntityNameEntitySlotStateExt commands
".($chUser ? $parse["UId"] : "")."".$parse["UserName"]."".$parse["EId"]."".$parse["EntityName"]."".$parse["EntitySlot"]."".$parse["State"].""; if (isset($parse["SaveFile"])) { echo "Load/Save sheet"; } echo "
\n"; } echo "\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; } echo "
\n"; echo "\n"; htmlEpilog(); ?>