include("mysql2.php");
//aktive user abfragen
$now=time()-90*24*3600;
$sql="SELECT `user_id` FROM phpbb_users WHERE `user_lastvisit` > '".$now."' AND `user_id` >= '53'";
$result = mysql_input($mysql_db, $sql); //do the query
$active_users=mysql_num_rows($result)+1;
print "aktive User: ".$active_users;
$sql = "UPDATE `phpbb_config` SET `config_value` = '".$active_users."' WHERE `config_name` = 'num_active_users' LIMIT 1" ;
$res=mysql_input($mysql_db, $sql);
?>[phpBB Debug] PHP Warning: in file [ROOT]/cron.php on line 29: Cannot modify header information - headers already sent by (output started at [ROOT]/test/update_active_users.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/cron.php on line 30: Cannot modify header information - headers already sent by (output started at [ROOT]/test/update_active_users.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/cron.php on line 31: Cannot modify header information - headers already sent by (output started at [ROOT]/test/update_active_users.php:1)
GIF89a € ÿÿÿ !ù , D ;