Changeset 136


Ignore:
Timestamp:
Nov 17, 2007, 8:10:19 PM (17 years ago)
Author:
hosiplan
Message:

+ chyby byly snad opraveny

Location:
db
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • db/include/myacc.php

    r133 r136  
    2727    SwitchDB(1); // nastavení databáze na mangos
    2828    $XpRess = new XpRess($_GET['resetxp']);
    29     $XpRess->ShowXp();
    30     $XpRess->XpRestart();
    31     $XpRess->XpRestartDone();
     29    if( $XpRess->char_name != false ){
     30      $XpRess->ShowXp();
     31      $XpRess->XpRestart();
     32      $XpRess->XpRestartDone();
     33      }
    3234  };
    3335 
  • db/include/position_reset.php

    r132 r136  
    1717      $sql = mysql_query("SELECT * FROM `character` WHERE `guid` = '".$this->char_id."' AND `account`='".$user['acc']."' LIMIT 1");
    1818      $load = mysql_fetch_array($sql);
    19       if( $load['online'] == 0 )
     19      if( $load['online'] != 0 )
    2020      {
    2121        print("Nemůžete přesouvat postavu, která je online! Nejprve se odhlašte!<br>");
  • db/include/xp_reset.php

    r133 r136  
    1717      $sql = mysql_query("SELECT * FROM `character` WHERE `guid` = '".$this->char_id."' AND `account`='".$user['acc']."' LIMIT 1");
    1818      $load = mysql_fetch_array($sql);
    19       if( $load['online'] == 0 )
     19      if( $load['online'] != 0 )
    2020      {
    2121        print("Nemůžete restartovat zkušenosti postavy, která je online! Nejprve se odhlašte!<br>\n");
  • db/post_read.php

    r135 r136  
    695695          $this->sql_select['result']['other']['chars'] .= "<td title=\"Povolání\">".$Database['class'][$this->sql_select['result']['char'][$i]['class']]."</td>\n";
    696696          //$this->sql_select['result']['other']['chars'] .= "<td><a href=\"./index.php?char=".$this->sql_select['result']['char'][$i]['guid'].$this->sid."\" target=\"_blank\">Exportovat</a></td>\n";
    697           //$this->sql_select['result']['other']['chars'] .= "<td><a href=\"./index.php?id=myacc&amp;heartstone=".$this->sql_select['result']['char'][$i]['guid'].$this->sid."\">Heartstone</a></td>\n";
    698           //$this->sql_select['result']['other']['chars'] .= "<td><a href=\"./index.php?id=myacc&amp;resetxp=".$this->sql_select['result']['char'][$i]['guid'].$this->sid."\">ResetXP</a></td></tr>\n";
     697          $this->sql_select['result']['other']['chars'] .= "<td><a href=\"./index.php?id=myacc&amp;heartstone=".$this->sql_select['result']['char'][$i]['guid'].$this->sid."\">Heartstone</a></td>\n";
     698          $this->sql_select['result']['other']['chars'] .= "<td><a href=\"./index.php?id=myacc&amp;resetxp=".$this->sql_select['result']['char'][$i]['guid'].$this->sid."\">ResetXP</a></td></tr>\n";
    699699          };
    700700        if( $this->sql_select['result']['char_count'] == 0 ){
Note: See TracChangeset for help on using the changeset viewer.