|
From: OryNider <ory...@us...> - 2007-06-28 15:22:37
|
Update of /cvsroot/mxbb/mx_online_adv/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11444/includes Modified Files: functions.php online_adv_hack.php online_common.php Log Message: bigint(20) was cauzed the value of 'time' to be allways 1 so this should be int(11) please change this in the database or reinstall. Index: online_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/online_common.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** online_common.php 26 Jun 2007 16:02:12 -0000 1.1 --- online_common.php 28 Jun 2007 15:22:26 -0000 1.2 *************** *** 49,55 **** // //$period = 1240000000; ! $period = 1200000000; $time = date("U"); ! //$this_period = $board_config['session_length']*1000000; --- 49,55 ---- // //$period = 1240000000; ! //$period = 1200000000; $time = date("U"); ! $period = $board_config['session_length']*1000; *************** *** 333,337 **** if ( !empty($bot_id) ) { ! online_spider_surfing($agent,$bot_id); } else --- 333,338 ---- if ( !empty($bot_id) ) { ! //$current_time = date("U"); ! online_spider_surfing($agent, $bot_id); } else *************** *** 365,369 **** if ( !empty($bot_id) ) { ! online_spider_surfing($agent,$bot_id); } } --- 366,371 ---- if ( !empty($bot_id) ) { ! //$current_time = date("U"); ! online_spider_surfing($agent, $bot_id); } } *************** *** 399,403 **** { drop_spiders_surfing($period); ! } ?> --- 401,406 ---- { drop_spiders_surfing($period); ! } ! ?> Index: online_adv_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/online_adv_hack.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** online_adv_hack.php 26 Jun 2007 16:02:04 -0000 1.1 --- online_adv_hack.php 28 Jun 2007 15:22:26 -0000 1.2 *************** *** 52,56 **** // //$this_period = 1240000000; ! $this_period = 1190000000; $time = date("U"); //$this_period = $board_config['session_length']*1000000; --- 52,56 ---- // //$this_period = 1240000000; ! $this_period = $board_config['session_length']*1000; $time = date("U"); //$this_period = $board_config['session_length']*1000000; *************** *** 341,345 **** if ( !empty($this_bot_id) ) { ! online_spider_surfing($this_agent,$this_bot_id); } else --- 341,346 ---- if ( !empty($this_bot_id) ) { ! //$current_time = date("U"); ! online_spider_surfing($this_agent, $this_bot_id); } else *************** *** 373,377 **** if ( !empty($this_bot_id) ) { ! online_spider_surfing($this_agent,$this_bot_id); } } --- 374,379 ---- if ( !empty($this_bot_id) ) { ! //$current_time = date("U"); ! online_spider_surfing($this_agent, $this_bot_id); } } Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/functions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions.php 26 Jun 2007 16:01:52 -0000 1.1 --- functions.php 28 Jun 2007 15:22:26 -0000 1.2 *************** *** 14,18 **** } ! function online_spider_surfing($nick,$bot_id) { global $db; --- 14,18 ---- } ! function online_spider_surfing($nick, $bot_id) { global $db; *************** *** 58,62 **** $sql = "DELETE FROM " . ONLINE_ADV_SESSION_TABLE . " ! WHERE time < '$max_time'"; if( !$result = $db->sql_query($sql) ) --- 58,62 ---- $sql = "DELETE FROM " . ONLINE_ADV_SESSION_TABLE . " ! WHERE time<'$max_time'"; if( !$result = $db->sql_query($sql) ) *************** *** 64,67 **** --- 64,68 ---- mx_message_die(GENERAL_ERROR, 'SQL Error in function drop_spiders_surfing()', '', __LINE__, __FILE__, $sql); } + } |