Problem beim wwo

Octron
MfG Octron

Hallo
ich habe ein problem mit dem wwo hack
mein server steht in Amerika und der Zeitunterschied beträgt 9 std.
Alles wird im Forium richtig anngezeigt nur der wwo beginnt morgens um 9 uhr erst mit der leerung der anzeige.
Ich habe den code vom class_wwo.php mal angehangen. Welche änderung muß ich hier tätigen damit die leerung erst um 0.00 Uhr unserer zeit volzogen wird.

MfG Octron

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
<?php
//class wwo cpy 2004/2005 by ShadowByte (www.it-4all.org)
class wwo {

  var $can_view_ghosts      = 0;
  var $useronlinebit        = "";
  var $userid               = 0;
  var $useronlinetimeout    = 0;
  var $ignorelist           = 0;
  var $buddies              = "";

  function wwo ($userid, $useronlinetimeout) {
    global $db, $n;
    $this->userid              = $userid;
    $this->useronlinetimeout   = $useronlinetimeout;
    
    $now = time();
    $date_today = getdate($now);
    $time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
    $res = $db->query("DELETE FROM bb".$n."_wwo WHERE timest<'".$time_today."'");
    
    if($this->userid != "" && $this->userid != 0) {
      $row_user = $db->query_first("Select w.* From bb".$n."_users u
                                    LEFT JOIN bb".$n."_wwo w USING(userid)
                                    Where u.userid='".$userid."'");
                                    
      if($row_user['userid'] == $this->userid) {
        $timeout = $useronlinetimeout*60;
        if(($row_user['timest']+$timeout) <= $now) {
          $db->unbuffered_query("Replace into bb".$n."_wwo (userid, timest) 
                                 Values ('$this->userid','$now')");
        }
      } else {
        $db->unbuffered_query("Insert into bb".$n."_wwo (userid, timest)
                               Values ('$this->userid','$now')");
      }
      $rec = $db->query_first("Select id,onlinerec From bb".$n."_wwo_rec");
      $totalonline = $db->query_first("Select Count(userid) as total From bb".$n."_wwo");
      if($rec['onlinerec'] < $totalonline['total']) {
        $db->unbuffered_query("Replace into bb".$n."_wwo_rec (id, onlinerec, timest) 
                               Values ('$rec[id]','$totalonline[total]','$now')");
      }
    }
  }
  function show_wwo($can_view_ghosts, $buddylist, $ignorelist) {
    global $db, $n, $tpl, $session, $lang, $wbbuserdata;
    $this->can_view_ghosts     = $can_view_ghosts;
    $this->userid              = $userid;
    $this->buddies             = explode(' ',$buddylist);
    $this->ignorelist          = $ignorelist;
    
    if($this->ignorelist == "") $this->ignorelist = 0;
    
    $res = $db->query("Select w.userid, w.timest, u.username, u.invisible, u.activation, g.useronlinemarking
                       From bb".$n."_wwo w 
                       LEFT JOIN bb".$n."_users u USING(userid)
                       LEFT JOIN bb".$n."_groups g ON g.groupid=u.useronlinegroupid
                       Where u.userid NOT IN (".str_replace(" ",",",$this->ignorelist).")
                       Order by w.timest DESC");
    
    $wwo_user = "";
    while($user = $db->fetch_array($res)) {
      $notactive  = "";
      $onlinehour = "";
      $user['username'] = $this->htmlconvert($user['username']);
      if(in_array($user['userid'],$this->buddies)) 
        eval ("\$user['username'] = \"".$tpl->get("index_wwo_buddy")."\";");
      if($user['useronlinemarking'] != "") 
        $user['username']=sprintf($user['useronlinemarking'],$user['username']);
      
      if($user['invisible'] == 1) {
        if($can_view_ghosts == 1) { 
          $onlinehour = formatdate($wbbuserdata['timeformat'], $user['timest']);
          if($user['activation'] != 1) eval ("\$notactive = \"&nbsp;".$lang->get("LANG_GLOBAL_WWO_NACTIVE")."\";");
          eval ("\$wwo_user .= \"".$tpl->get("index_wwo_userbit")."\";");
        }
      } else {
        $onlinehour = formatdate($wbbuserdata['timeformat'], $user['timest']);
        if($user['activation'] != 1) eval ("\$notactive = \"&nbsp;".$lang->get("LANG_GLOBAL_WWO_NACTIVE")."\";");
        eval ("\$wwo_user .= \"".$tpl->get("index_wwo_userbit")."\";");
      }
    }
    return $wwo_user;
  }
  function show_recs() {
    global $db, $n, $tpl, $lang, $wbbuserdata;
    
    $c_user = $db->query_first("Select Count(w.userid) as totaluser 
                                 From bb".$n."_wwo w 
                                 LEFT JOIN bb".$n."_users u USING(userid) 
                                 Order by w.timest DESC");
    
    $c_ghosts = $db->query_first("Select Count(u.invisible) as totalghosts 
                                   From bb".$n."_wwo w 
                                   LEFT JOIN bb".$n."_users u USING(userid) 
                                   Where u.invisible = 1 
                                   Order by w.timest DESC");
    
    if($c_user['totaluser'] == 1)
     eval ("\$w_user = \"".$lang->get("LANG_GLOBAL_WWO_WAS")."\";");
    else
      eval ("\$w_user = \"".$lang->get("LANG_GLOBAL_WWO_WAS_PL")."\";");
    
    if($c_ghosts['totalghosts'] == 1)
      eval ("\$w_ghosts = \"".$lang->get("LANG_GLOBAL_WWO_WAS")."\";");
    else
      eval ("\$w_ghosts = \"".$lang->get("LANG_GLOBAL_WWO_WAS_PL")."\";");
    
    $user_rec = $db->query_first("Select onlinerec, timest From bb".$n."_wwo_rec");
    $rec_date = formatdate($wbbuserdata['dateformat'], $user_rec['timest']);
    $rec_time = formatdate($wbbuserdata['timeformat'], $user_rec['timest']);
    
    eval ("\$lang->items['LANG_GLOBAL_WWO_DESC'] = \"".$lang->get4eval("LANG_GLOBAL_WWO_DESC")."\";");
    eval ("\$wwo_recs = \"".$lang->get("LANG_GLOBAL_WWO_DESC")."\";");
    return $wwo_recs;
  }
  /** htmlconverter function **/
  function htmlconvert($text) {
   static $charset;
   global $phpversion;
   
   if(!isset($charset)) {
    global $lang;
    if(isset($lang) && $lang && is_object($lang)) $charset=strtolower($lang->get("LANG_GLOBAL_ENCODING"));
    else $charset="";
   }
   if(version_compare($phpversion, "4.3.0")>=0 && ($charset=="iso-8859-1" || $charset=="iso-8859-15" || $charset=="utf-8" || $charset=="cp1252" || $charset=="windows-1252" || $charset=="koi8-r" || $charset=="big5" || $charset=="gb2312" || $charset=="big5-hkscs" || $charset=="shift_jis" || $charset=="euc-jp")) return @htmlentities($text, ENT_COMPAT, $charset);
   elseif($charset=="iso-8859-1" || $charset=="windows-1252") return htmlentities($text);
   else return htmlspecialchars($text);
  }  
}
?>