Changeset 691 for trunk/inc/player.php


Ignore:
Timestamp:
Mar 19, 2010, 9:46:30 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Generování pěkného pro další stránky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/player.php

    r690 r691  
    1717   
    1818    if($err == 0) echo('<img src="'.$html->Link('/imgs/inc/on.gif').'">&nbsp;<font color="#234303" size="4">'.$text.'</font><br />');
    19       else echo('<img src="'.$html->Link('imgs/inc/off.gif').'">&nbsp;<font color="#990000" size="4\">'.$text.'</font><br />');
     19      else echo('<img src="'.$html->Link('/imgs/inc/off.gif').'">&nbsp;<font color="#990000" size="4\">'.$text.'</font><br />');
    2020  }
    2121
     
    3737    {
    3838      $this->Msg('Zadané jmnéno účtu již existuje', 1);
    39       $this->Recall(3);
    4039    }     
    4140  }
     
    5554      $_SESSION['UserName'] = $username;
    5655      $this->Msg('Přihlášení úspěšné', 0);
    57       $this->Recall(1);
    5856    } else
    5957    {
    6058      $this->Msg('Přihlášení neúspěšné', 1);
    61       $this->Recall(3);
    6259    }
    6360  }
     
    6865    $_SESSION['UserName'] = '';
    6966    $this->Msg('Odhlášení úspěšné', 0);
    70     $this->Recall(1);
    7167  }
    7268
     
    329325  }
    330326
    331   public function Recall($time)
    332   {
    333     global $Config;
    334      
    335     if(isset($_SERVER['HTTP_REFERER']))
    336     {
    337       $link = parse_url($_SERVER['HTTP_REFERER']);
    338       if(($link['host'] == $Config['Web']['WoWServerAddr']) or ($link['host'] == 'localhost'))
    339       {
    340         echo('<meta http-equiv="refresh" content="'.$time.';?'.$link['query'].'">');
    341       } else
    342       {
    343         echo('<meta http-equiv="refresh" content="'.$time.';">');
    344       }
    345     }
    346   }
    347 
    348327  public function CharsOnAcc($accid)
    349328  {
    350     global $Config, $System;
     329    global $Config, $System, $html;
    351330   
    352331    echo('<table class="BaseTable">
     
    366345        '<td>'.$row['name'].'</td>'.
    367346        '<td>'.$this->GetPlayerLvl($row['guid']).'</td>'.
    368         '<td><img src="imgs/icons/'.$row['race'].'-'.$gender.'.gif" alt="rasa" /></td>'.
    369         '<td><img src="imgs/icons/'.$row['class'].'.gif" alt="trida" /></td>'.
     347        '<td><img src="'.$html->Link('imgs/icons/'.$row['race'].'-'.$gender.'.gif').'" alt="rasa" /></td>'.
     348        '<td><img src="'.$html->Link('/imgs/icons/'.$row['class'].'.gif').'" alt="trida" /></td>'.
    370349        '<td>'.round($row['totaltime'] / 3600).' h</td>'.
    371350        '</tr>');
Note: See TracChangeset for help on using the changeset viewer.