|
From: OryNider <ory...@us...> - 2008-05-14 20:44:48
|
Update of /cvsroot/mxbb/mx_online_adv/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13125/includes Modified Files: functions.php online_adv_hack.php online_common.php Log Message: v1.0.1 Index: online_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/online_common.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** online_common.php 8 Feb 2008 05:24:23 -0000 1.5 --- online_common.php 14 May 2008 20:44:42 -0000 1.6 *************** *** 52,56 **** // $time = date("U"); ! $period = $board_config['session_length']; // --- 52,56 ---- // $time = date("U"); ! $period = 360; //$board_config['session_length']; // *************** *** 395,401 **** update_spiders_surfing($agent,$time,$bot_id); } - - - drop_spiders_surfing($period); --- 395,398 ---- Index: online_adv_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/online_adv_hack.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** online_adv_hack.php 25 Feb 2008 04:45:07 -0000 1.6 --- online_adv_hack.php 14 May 2008 20:44:42 -0000 1.7 *************** *** 51,55 **** //Set Time and Period // ! $this_period = $board_config['session_length'] * 1000; $time = date("U"); --- 51,55 ---- //Set Time and Period // ! $this_period = 360; //$board_config['session_length']; $time = date("U"); Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/functions.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** functions.php 25 Feb 2008 04:45:07 -0000 1.7 --- functions.php 14 May 2008 20:44:42 -0000 1.8 *************** *** 54,67 **** $current_time = date("U"); ! //prevent delay ! $period = $period + 2; // Calcul max_time $max_time = $current_time - $period; $sql = "DELETE from " . ONLINE_ADV_SESSION_TABLE . " ! WHERE time < '$max_time'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(CRITICAL_ERROR, 'SQL Error in function drop_spiders_surfing()', '', __LINE__, __FILE__, $sql); } } --- 54,67 ---- $current_time = date("U"); ! //Prevent delay ! $period = $period + 10; // Calcul max_time $max_time = $current_time - $period; $sql = "DELETE from " . ONLINE_ADV_SESSION_TABLE . " ! WHERE time < $max_time"; if(!$result = $db->sql_query($sql)) { ! //mx_message_die(CRITICAL_ERROR, 'SQL Error in function drop_spiders_surfing()', '', __LINE__, __FILE__, $sql); } } |