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

Aktualizace na minimanager 0.1.6g.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/char_edit.php

    r142 r307  
    2929$id = $sql->quote_smart($_GET['id']);
    3030
    31 $result = $sql->query("SELECT account FROM `character` WHERE guid = '$id'");
     31$result = $sql->query("SELECT account FROM `characters` WHERE guid = '$id'");
    3232
    3333if ($sql->num_rows($result)){
     
    4242        $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    4343
    44         $result = $sql->query("SELECT guid,account,data,name,race,class,position_x,position_y,map,online,totaltime,position_z,zone      FROM `character` WHERE guid = '$id'");
     44        $result = $sql->query("SELECT guid,account,data,name,race,class,position_x,position_y,map,online,totaltime,position_z,zone      FROM `characters` WHERE guid = '$id'");
    4545        $char = $sql->fetch_row($result);
    4646        $char_data = explode(' ',$char[2]);
     
    241241$id = $sql->quote_smart($_GET['id']);
    242242
    243 $result = $sql->query("SELECT account,online FROM `character` WHERE guid = '$id'");
     243$result = $sql->query("SELECT account,online FROM `characters` WHERE guid = '$id'");
    244244
    245245if ($sql->num_rows($result)){
     
    333333        $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    334334
    335         $result = $sql->query("SELECT data FROM `character` WHERE guid = '$id'");
     335        $result = $sql->query("SELECT data FROM `characters` WHERE guid = '$id'");
    336336        $char = $sql->fetch_row($result);
    337337        $char_data = explode(' ',$char[0]);
     
    423423        } else $teleport = "map='$map', position_x='$x', position_y='$y', position_z='$z',";
    424424
    425         $result = $sql->query("UPDATE `character` SET data = '$data', name = '$new_name', $teleport totaltime = '$new_tot_time' WHERE guid = '$id'");
     425        $result = $sql->query("UPDATE `characters` SET data = '$data', name = '$new_name', $teleport totaltime = '$new_tot_time' WHERE guid = '$id'");
    426426        $sql->close();
    427427
Note: See TracChangeset for help on using the changeset viewer.