Changeset 690 for trunk/inc/server.php


Ignore:
Timestamp:
Mar 19, 2010, 9:22:00 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Zavedení systému pěkných URL. Přejmenováno mnoho stránek.
  • Přidáno: Skript pro generování SERVERALERT aktualit pro klienta.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/server.php

    r684 r690  
    3939  function ParseCopper($copper_in)
    4040  {
     41    global $html;
     42   
    4143    $copper = $copper_in;
    4244    $golds = floor($copper / 10000);
     
    4446    $silver = floor($num / 100);
    4547    $copper = $num - $silver * 100;
    46     $show_golds = '<font size="4">'.$golds.'</font>&nbsp;<img src="imgs/inc/g.gif">';
    47     $show_silver = '<font size="4">'.$silver.'</font>&nbsp;<img src="imgs/inc/s.gif">';
    48     $show_copper = '<font size="4">'.$copper.'</font>&nbsp;<img src="imgs/inc/c.gif">';
     48    $show_golds = '<font size="4">'.$golds.'</font>&nbsp;<img src="'.$html->Link('/imgs/inc/g.gif').'">';
     49    $show_silver = '<font size="4">'.$silver.'</font>&nbsp;<img src="'.$html->Link('/imgs/inc/s.gif').'">';
     50    $show_copper = '<font size="4">'.$copper.'</font>&nbsp;<img src="'.$html->Link('/imgs/inc/c.gif').'">';
    4951    return($show_golds.'&nbsp;'.$show_silver.'&nbsp;'.$show_copper);
    5052  }
     
    6466  function OnlineStateImage($Status)
    6567  {
    66     if($Status) return('<img src="imgs/inc/on.gif" alt="online" />&nbsp;<span style="text-color: #234303; text-size: 4;">Online</span>');
    67       else return('<img src="imgs/inc/off.gif" alt="offline" />&nbsp;<span style="text-color: #990000; text-size: 4;">Offline</span>');
     68    global $html;
     69   
     70    if($Status) return('<img src="'.$html->Link('/imgs/inc/on.gif').'" alt="online" />&nbsp;<span style="text-color: #234303; text-size: 4;">Online</span>');
     71      else return('<img src="'.$html->Link('/imgs/inc/off.gif').'" alt="offline" />&nbsp;<span style="text-color: #990000; text-size: 4;">Offline</span>');
    6872  }
    6973
Note: See TracChangeset for help on using the changeset viewer.