$master_timeout"; $res = mysql_query($sql); echo mysql_error(); while ($row = mysql_fetch_array($res)) { $onl_sql = "UPDATE ".$tbl_userlog." SET online='".$row[1]."',ok='Y' " . "WHERE id='".$row[0]."' AND ok = 'N'"; $onl_res = mysql_query($onl_sql); } $sql = "UPDATE ".$tbl_userlog." SET t_reload = $curr_gmt_time, " . "ip = '".$userlog_ip."', hostname = '".$userlog_hostname."' " . "WHERE id=".$id." " . "AND ok='N'"; $res = mysql_query($sql); if (!mysql_affected_rows()) { $sql = "INSERT INTO ".$tbl_userlog." (id,ip,hostname,t_since,t_reload) " . "VALUES (".$id.",'".$userlog_ip."','".$userlog_hostname."',$curr_gmt_time,$curr_gmt_time)"; $res = mysql_query($sql); } } } else { $your_url = ''; $hits = ''; /* include the language localization file */ include PPHL_LANG_DEFAULT; /* include color variables */ include INC_GETCSSCOLORS; } /* check browser for special CSS settings */ $usragent = extract_agent($HTTP_USER_AGENT); if (is_array($usragent)) { if ($usragent[0] == 'NS' && $usragent[1] < 5) define('SOLID_BORDER_CSS', FALSE); else define('SOLID_BORDER_CSS', TRUE); } else { define('SOLID_BORDER_CSS', TRUE); } if ($usragent[0] == 'IE' || $usragent[0] == 'OP') $IE4 = TRUE; else $IE4 = FALSE; /* date format */ if (!isset($strHeadDateFormat)) $strHeadDateFormat = "M d, h:iA"; /* date to display in the top-right corner */ $date_current = date($strHeadDateFormat, GMTtoUser($curr_gmt_time,$is_a_user)); define('__GOT_HEADSTUFF__', 1); }