- Timestamp:
- Mar 19, 2010, 9:46:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/player.php
r690 r691 17 17 18 18 if($err == 0) echo('<img src="'.$html->Link('/imgs/inc/on.gif').'"> <font color="#234303" size="4">'.$text.'</font><br />'); 19 else echo('<img src="'.$html->Link(' imgs/inc/off.gif').'"> <font color="#990000" size="4\">'.$text.'</font><br />');19 else echo('<img src="'.$html->Link('/imgs/inc/off.gif').'"> <font color="#990000" size="4\">'.$text.'</font><br />'); 20 20 } 21 21 … … 37 37 { 38 38 $this->Msg('Zadané jmnéno účtu již existuje', 1); 39 $this->Recall(3);40 39 } 41 40 } … … 55 54 $_SESSION['UserName'] = $username; 56 55 $this->Msg('Přihlášení úspěšné', 0); 57 $this->Recall(1);58 56 } else 59 57 { 60 58 $this->Msg('Přihlášení neúspěšné', 1); 61 $this->Recall(3);62 59 } 63 60 } … … 68 65 $_SESSION['UserName'] = ''; 69 66 $this->Msg('Odhlášení úspěšné', 0); 70 $this->Recall(1);71 67 } 72 68 … … 329 325 } 330 326 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 } else342 {343 echo('<meta http-equiv="refresh" content="'.$time.';">');344 }345 }346 }347 348 327 public function CharsOnAcc($accid) 349 328 { 350 global $Config, $System ;329 global $Config, $System, $html; 351 330 352 331 echo('<table class="BaseTable"> … … 366 345 '<td>'.$row['name'].'</td>'. 367 346 '<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>'. 370 349 '<td>'.round($row['totaltime'] / 3600).' h</td>'. 371 350 '</tr>');
Note:
See TracChangeset
for help on using the changeset viewer.