Ignore:
Timestamp:
Mar 13, 2008, 8:45:46 PM (17 years ago)
Author:
george
Message:

Opravy související s přejmenování sloupce character na characters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/pomm_public/pomm_run.php

    r142 r309  
    33 * Project Name: MiniManager for Mangos Server
    44 * 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)
    66 * Copyright: Q.SA
    77 * Email: *****
     
    1818
    1919if( !$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");
    2121        if ($sql->num_rows($result)){
    2222                $order_side = (in_array($sql->result($result, 0, 'race'),array(2,5,6,8,10))) ?
     
    2727$result = $sql->query("SELECT name,race,class,position_x,position_y,map,SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1),
    2828                SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 37), ' ', -1),zone
    29                 FROM `character` WHERE `online`= 1 $order_side");
     29                FROM `characters` WHERE `online`= 1 $order_side");
    3030
    3131$i = 0;
     
    3333        $char_gender = str_pad(dechex($char[7]),8, 0, STR_PAD_LEFT);
    3434
    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]);
    3636        $arr[$i]['x'] = $pos['x'];
    3737        $arr[$i]['y'] = $pos['y'];
     
    4848$sql->close();
    4949
    50 $_RESULT =$arr; 
     50$_RESULT =$arr;
    5151?>
Note: See TracChangeset for help on using the changeset viewer.