Changeset 307 for minimanager/pomm/pomm_run.php
- Timestamp:
- Mar 13, 2008, 8:18:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/pomm/pomm_run.php
r142 r307 3 3 * Project Name: MiniManager for Mangos Server 4 4 * Date: 17.10.2006 inital version (0.0.1a) 5 * Author: Q.SA (thanks to mirage666 for the original idea) 5 * Author: Q.SA (thanks to mirage666 for the original idea) 6 6 * Copyright: Q.SA 7 7 * Email: ***** … … 18 18 19 19 if( !$user_lvl && !$server[$realm_id]['both_factions']){ 20 $result = $sql->query("SELECT race FROM `character ` WHERE account = '$user_id' AND totaltime = (SELECT MAX(totaltime) FROM `character` WHERE account = '$user_id') LIMIT 1");20 $result = $sql->query("SELECT race FROM `characters` WHERE account = '$user_id' AND totaltime = (SELECT MAX(totaltime) FROM `characters` WHERE account = '$user_id') LIMIT 1"); 21 21 if ($sql->num_rows($result)){ 22 22 $order_side = (in_array($sql->result($result, 0, 'race'),array(2,5,6,8,10))) ? … … 27 27 $result = $sql->query("SELECT name,race,class,position_x,position_y,map,SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1), 28 28 SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 37), ' ', -1),zone 29 FROM `character ` WHERE `online`= 1 $order_side");29 FROM `characters` WHERE `online`= 1 $order_side"); 30 30 31 31 $i = 0; … … 33 33 $char_gender = str_pad(dechex($char[7]),8, 0, STR_PAD_LEFT); 34 34 35 $pos = get_player_position($char[3],$char[4],$char[5],$char[8]); 35 $pos = get_player_position($char[3],$char[4],$char[5],$char[8]); 36 36 $arr[$i]['x'] = $pos['x']; 37 37 $arr[$i]['y'] = $pos['y']; … … 48 48 $sql->close(); 49 49 50 $_RESULT =$arr; 50 $_RESULT =$arr; 51 51 ?>
Note:
See TracChangeset
for help on using the changeset viewer.