diff --git a/mojotrollz/idea/playermap/config/.htaccess b/mojotrollz/idea/playermap/config/.htaccess new file mode 100644 index 0000000..f239fe8 --- /dev/null +++ b/mojotrollz/idea/playermap/config/.htaccess @@ -0,0 +1,2 @@ +order deny,allow +deny from all \ No newline at end of file diff --git a/mojotrollz/idea/playermap/config/config-protected.php b/mojotrollz/idea/playermap/config/config-protected.php new file mode 100644 index 0000000..544eab3 --- /dev/null +++ b/mojotrollz/idea/playermap/config/config-protected.php @@ -0,0 +1,12 @@ + 'mysql', +'db_host' => '127.0.0.1', +'db_port' => '3306', +'db_username' => 'root', +'db_password' => 'ascent', +'db_name' => 'realmd', +'db_encoding' => 'utf8', +); +$project = "trinity"; +?> \ No newline at end of file diff --git a/mojotrollz/idea/playermap/config/index.php b/mojotrollz/idea/playermap/config/index.php new file mode 100644 index 0000000..675c84d --- /dev/null +++ b/mojotrollz/idea/playermap/config/index.php @@ -0,0 +1,3 @@ + diff --git a/mojotrollz/idea/playermap/config/playermap_config.php b/mojotrollz/idea/playermap/config/playermap_config.php new file mode 100644 index 0000000..65c4cc8 --- /dev/null +++ b/mojotrollz/idea/playermap/config/playermap_config.php @@ -0,0 +1,63 @@ + diff --git a/mojotrollz/idea/playermap/func.php b/mojotrollz/idea/playermap/func.php new file mode 100644 index 0000000..469e91c --- /dev/null +++ b/mojotrollz/idea/playermap/func.php @@ -0,0 +1,169 @@ +link_id = @mysql_connect($db_host, $db_username, $db_password, true); + + if ($this->link_id) + { + if (@mysql_select_db($db_name, $this->link_id)) + return $this->link_id; + else + { + //error('Unable to select database. MySQL reported: '.mysql_error()); + $this->close(); + } + } + else + //error('Unable to connect to MySQL server. MySQL reported: '.mysql_error()); + + $this->link_id = false; + } + + function isValid() + { + return $this->link_id; + } + + function query($sql) + { + if(!$this->link_id) + return false; + + $this->query_result = @mysql_query($sql, $this->link_id); + + if ($this->query_result) + { + ++$this->num_queries; + return $this->query_result; + } + else + { + return false; + } + } + + + function result($query_id = 0, $row = 0) + { + return ($query_id) ? @mysql_result($query_id, $row) : false; + } + + + function fetch_assoc($query_id = 0) + { + return ($query_id) ? @mysql_fetch_assoc($query_id) : false; + } + + + function fetch_row($query_id = 0) + { + return ($query_id) ? @mysql_fetch_row($query_id) : false; + } + + + function num_rows($query_id = 0) + { + return ($query_id) ? @mysql_num_rows($query_id) : false; + } + + + function affected_rows() + { + return ($this->link_id) ? @mysql_affected_rows($this->link_id) : false; + } + + + function insert_id() + { + return ($this->link_id) ? @mysql_insert_id($this->link_id) : false; + } + + + function get_num_queries() + { + return $this->num_queries; + } + + + function get_saved_queries() + { + return $this->saved_queries; + } + + + function free_result($query_id = false) + { + return ($query_id) ? @mysql_free_result($query_id) : false; + } + + + function escape($str) + { + if (function_exists('mysql_real_escape_string')) + return mysql_real_escape_string($str, $this->link_id); + else + return mysql_escape_string($str); + } + + + function error() + { + $result['error_sql'] = @current(@end($this->saved_queries)); + $result['error_no'] = $this->link_id ? @mysql_errno($this->link_id) : @mysql_errno(); + $result['error_msg'] = $this->link_id ? @mysql_error($this->link_id) : @mysql_error(); + + return $result; + } + + + function close() + { + if ($this->link_id) + { + if ($this->query_result) + @mysql_free_result($this->query_result); + + return @mysql_close($this->link_id); + } + else + return false; + } +} + +function error($message) +{ + $s = 'Error: '.$message.'.'; + echo $s; +} + +function sort_players($a, $b) +{ + if($a['leaderGuid'] == $b['leaderGuid']) + return strcmp($a['name'],$b['name']); + return ($a['leaderGuid'] < $b['leaderGuid']) ? -1 : 1; +} + +function get_zone_name($zone_id) +{ + global $zones; + $zname = 'Unknown zone'; + if(isset($zones[$zone_id])) { + $zname = $zones[$zone_id]; + } + return $zname; +} + +function test_realm(){ + //return true; //always run + global $server, $port; + $s = @fsockopen("$server", $port, $ERROR_NO, $ERROR_STR,(float)0.5); + if($s){@fclose($s);return true;} else return false; +} +?> \ No newline at end of file diff --git a/mojotrollz/idea/playermap/img/c_icons/1-0.gif b/mojotrollz/idea/playermap/img/c_icons/1-0.gif new file mode 100644 index 0000000..636b1ab Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/1-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/1-1.gif b/mojotrollz/idea/playermap/img/c_icons/1-1.gif new file mode 100644 index 0000000..054236b Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/1-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/1.gif b/mojotrollz/idea/playermap/img/c_icons/1.gif new file mode 100644 index 0000000..69f21f7 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/10-0.gif b/mojotrollz/idea/playermap/img/c_icons/10-0.gif new file mode 100644 index 0000000..ecd83a3 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/10-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/10-1.gif b/mojotrollz/idea/playermap/img/c_icons/10-1.gif new file mode 100644 index 0000000..d5006d1 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/10-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/11-0.gif b/mojotrollz/idea/playermap/img/c_icons/11-0.gif new file mode 100644 index 0000000..6522a07 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/11-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/11-1.gif b/mojotrollz/idea/playermap/img/c_icons/11-1.gif new file mode 100644 index 0000000..5ab47f4 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/11-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/11.gif b/mojotrollz/idea/playermap/img/c_icons/11.gif new file mode 100644 index 0000000..c0d5757 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/11.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/2-0.gif b/mojotrollz/idea/playermap/img/c_icons/2-0.gif new file mode 100644 index 0000000..ebb4278 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/2-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/2-1.gif b/mojotrollz/idea/playermap/img/c_icons/2-1.gif new file mode 100644 index 0000000..ea72a03 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/2-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/2.gif b/mojotrollz/idea/playermap/img/c_icons/2.gif new file mode 100644 index 0000000..53e7cce Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/2.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/3-0.gif b/mojotrollz/idea/playermap/img/c_icons/3-0.gif new file mode 100644 index 0000000..7ccdce5 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/3-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/3-1.gif b/mojotrollz/idea/playermap/img/c_icons/3-1.gif new file mode 100644 index 0000000..a5794d3 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/3-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/3.gif b/mojotrollz/idea/playermap/img/c_icons/3.gif new file mode 100644 index 0000000..9315879 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/3.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/4-0.gif b/mojotrollz/idea/playermap/img/c_icons/4-0.gif new file mode 100644 index 0000000..88fedf5 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/4-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/4-1.gif b/mojotrollz/idea/playermap/img/c_icons/4-1.gif new file mode 100644 index 0000000..d10e767 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/4-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/4.gif b/mojotrollz/idea/playermap/img/c_icons/4.gif new file mode 100644 index 0000000..072c561 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/4.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/5-0.gif b/mojotrollz/idea/playermap/img/c_icons/5-0.gif new file mode 100644 index 0000000..14569af Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/5-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/5-1.gif b/mojotrollz/idea/playermap/img/c_icons/5-1.gif new file mode 100644 index 0000000..52d976a Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/5-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/5.gif b/mojotrollz/idea/playermap/img/c_icons/5.gif new file mode 100644 index 0000000..1298e49 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/5.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/6-0.gif b/mojotrollz/idea/playermap/img/c_icons/6-0.gif new file mode 100644 index 0000000..e0c094f Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/6-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/6-1.gif b/mojotrollz/idea/playermap/img/c_icons/6-1.gif new file mode 100644 index 0000000..6891790 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/6-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/6.gif b/mojotrollz/idea/playermap/img/c_icons/6.gif new file mode 100644 index 0000000..0b87a05 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/6.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/7-0.gif b/mojotrollz/idea/playermap/img/c_icons/7-0.gif new file mode 100644 index 0000000..744505a Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/7-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/7-1.gif b/mojotrollz/idea/playermap/img/c_icons/7-1.gif new file mode 100644 index 0000000..2bbfc45 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/7-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/7.gif b/mojotrollz/idea/playermap/img/c_icons/7.gif new file mode 100644 index 0000000..8684655 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/7.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/8-0.gif b/mojotrollz/idea/playermap/img/c_icons/8-0.gif new file mode 100644 index 0000000..73f2d29 Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/8-0.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/8-1.gif b/mojotrollz/idea/playermap/img/c_icons/8-1.gif new file mode 100644 index 0000000..42fccfa Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/8-1.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/8.gif b/mojotrollz/idea/playermap/img/c_icons/8.gif new file mode 100644 index 0000000..71325dc Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/8.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/9.gif b/mojotrollz/idea/playermap/img/c_icons/9.gif new file mode 100644 index 0000000..de66e6b Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/9.gif differ diff --git a/mojotrollz/idea/playermap/img/c_icons/Thumbs.db b/mojotrollz/idea/playermap/img/c_icons/Thumbs.db new file mode 100644 index 0000000..a585b3e Binary files /dev/null and b/mojotrollz/idea/playermap/img/c_icons/Thumbs.db differ diff --git a/mojotrollz/idea/playermap/img/c_icons/index.html b/mojotrollz/idea/playermap/img/c_icons/index.html new file mode 100644 index 0000000..a9c8c87 --- /dev/null +++ b/mojotrollz/idea/playermap/img/c_icons/index.html @@ -0,0 +1,9 @@ + + + + + + + ErroR here. + + diff --git a/mojotrollz/idea/playermap/img/map/Thumbs.db b/mojotrollz/idea/playermap/img/map/Thumbs.db new file mode 100644 index 0000000..c85a7d3 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/Thumbs.db differ diff --git a/mojotrollz/idea/playermap/img/map/allia.gif b/mojotrollz/idea/playermap/img/map/allia.gif new file mode 100644 index 0000000..7ad61bd Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/allia.gif differ diff --git a/mojotrollz/idea/playermap/img/map/allianceicon.gif b/mojotrollz/idea/playermap/img/map/allianceicon.gif new file mode 100644 index 0000000..6233ca2 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/allianceicon.gif differ diff --git a/mojotrollz/idea/playermap/img/map/azeroth.jpg b/mojotrollz/idea/playermap/img/map/azeroth.jpg new file mode 100644 index 0000000..b476d84 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/azeroth.jpg differ diff --git a/mojotrollz/idea/playermap/img/map/dead.gif b/mojotrollz/idea/playermap/img/map/dead.gif new file mode 100644 index 0000000..1034ecf Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/dead.gif differ diff --git a/mojotrollz/idea/playermap/img/map/group-icon.gif b/mojotrollz/idea/playermap/img/map/group-icon.gif new file mode 100644 index 0000000..efa3cb4 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/group-icon.gif differ diff --git a/mojotrollz/idea/playermap/img/map/horde.gif b/mojotrollz/idea/playermap/img/map/horde.gif new file mode 100644 index 0000000..d9f515e Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/horde.gif differ diff --git a/mojotrollz/idea/playermap/img/map/hordeicon.gif b/mojotrollz/idea/playermap/img/map/hordeicon.gif new file mode 100644 index 0000000..958a6b6 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/hordeicon.gif differ diff --git a/mojotrollz/idea/playermap/img/map/index.html b/mojotrollz/idea/playermap/img/map/index.html new file mode 100644 index 0000000..a9c8c87 --- /dev/null +++ b/mojotrollz/idea/playermap/img/map/index.html @@ -0,0 +1,9 @@ + + + + + + + ErroR here. + + diff --git a/mojotrollz/idea/playermap/img/map/inst-icon - Copy.gif b/mojotrollz/idea/playermap/img/map/inst-icon - Copy.gif new file mode 100644 index 0000000..23bac3f Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/inst-icon - Copy.gif differ diff --git a/mojotrollz/idea/playermap/img/map/inst-icon.gif b/mojotrollz/idea/playermap/img/map/inst-icon.gif new file mode 100644 index 0000000..23bac3f Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/inst-icon.gif differ diff --git a/mojotrollz/idea/playermap/img/map/northrend.jpg b/mojotrollz/idea/playermap/img/map/northrend.jpg new file mode 100644 index 0000000..f5394ef Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/northrend.jpg differ diff --git a/mojotrollz/idea/playermap/img/map/outland.jpg b/mojotrollz/idea/playermap/img/map/outland.jpg new file mode 100644 index 0000000..b165688 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/outland.jpg differ diff --git a/mojotrollz/idea/playermap/img/map/realm_off.gif b/mojotrollz/idea/playermap/img/map/realm_off.gif new file mode 100644 index 0000000..04621df Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/realm_off.gif differ diff --git a/mojotrollz/idea/playermap/img/map/realm_on.gif b/mojotrollz/idea/playermap/img/map/realm_on.gif new file mode 100644 index 0000000..e63e846 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/realm_on.gif differ diff --git a/mojotrollz/idea/playermap/img/map/status.gif b/mojotrollz/idea/playermap/img/map/status.gif new file mode 100644 index 0000000..4952ef2 Binary files /dev/null and b/mojotrollz/idea/playermap/img/map/status.gif differ diff --git a/mojotrollz/idea/playermap/index.php b/mojotrollz/idea/playermap/index.php new file mode 100644 index 0000000..e3f3277 --- /dev/null +++ b/mojotrollz/idea/playermap/index.php @@ -0,0 +1,925 @@ + +Online Playermap by Lasoto + + + + + + + +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+ + +
+
+
+ diff --git a/mojotrollz/idea/playermap/libs/data_lib.php b/mojotrollz/idea/playermap/libs/data_lib.php new file mode 100644 index 0000000..6241e6f --- /dev/null +++ b/mojotrollz/idea/playermap/libs/data_lib.php @@ -0,0 +1,85 @@ + diff --git a/mojotrollz/idea/playermap/libs/js/JsHttpRequest/Js.js b/mojotrollz/idea/playermap/libs/js/JsHttpRequest/Js.js new file mode 100644 index 0000000..2a08c56 --- /dev/null +++ b/mojotrollz/idea/playermap/libs/js/JsHttpRequest/Js.js @@ -0,0 +1,407 @@ +/** + * Subsys_JsHttpRequest_Js: JavaScript DHTML data loader. + * (C) 2005 Dmitry Koterov, http://forum.dklab.ru/users/DmitryKoterov/ + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * See http://www.gnu.org/copyleft/lesser.html + * + * Do not remove this comment if you want to use script! + * Не удаляйте данный комментарий, если вы хотите использовать скрипт! + * + * This library tries to use XMLHttpRequest (if available), and on + * failure - use dynamically created