|
From: OryNider <ory...@us...> - 2008-01-14 13:05:19
|
Update of /cvsroot/mxbb/mx_online_adv/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20626/includes Modified Files: Tag: core28x functions.php online_adv_hack.php online_common.php Log Message: Index: online_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/online_common.php,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** online_common.php 28 Jun 2007 16:56:20 -0000 1.3 --- online_common.php 14 Jan 2008 13:04:34 -0000 1.3.2.1 *************** *** 31,34 **** --- 31,36 ---- // ********************************************************************** + $mx_user->extend(MX_LANG_MAIN, MX_IMAGES_NONE); + /* if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { *************** *** 41,44 **** --- 43,47 ---- $link_language='lang_' . $board_config['default_lang']; } + */ include_once($module_root_path . 'includes/functions.'.$phpEx); *************** *** 51,55 **** $period = $board_config['session_length']; - // //Get The User Agent --- 54,57 ---- *************** *** 180,187 **** case 'adsbot-google ': case 'mediapartners-google ': - case 'adsense ': $agent = 'google'; $bot_id = '1'; break; case 'yahoo-verticalcrawler ': --- 182,193 ---- case 'adsbot-google ': case 'mediapartners-google ': $agent = 'google'; $bot_id = '1'; break; + + case 'adsense ': + $agent = 'adsense'; + $bot_id = '1'; + break; case 'yahoo-verticalcrawler ': *************** *** 195,198 **** --- 201,210 ---- break; + case 'yahoo! slurp ': + case 'slurp ': + $agent = 'slurp'; + $bot_id = '2'; + break; + case 'lycosbot ': case 'lycos ': *************** *** 234,238 **** break; - case 'slurp ': case 'fast-webcrawler ': case 'teoma ': --- 246,249 ---- *************** *** 255,261 **** case 'sohu-search ': case 'sohu ': - case 'iltrovatore-setaccio ': case 'il-set ': ! $agent = 'BOT'; $bot_id = '9'; break; --- 266,272 ---- case 'sohu-search ': case 'sohu ': case 'il-set ': ! case 'iltrovatore-setaccio ': ! $agent = $matches[1]; $bot_id = '9'; break; Index: online_adv_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/online_adv_hack.php,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** online_adv_hack.php 28 Jun 2007 16:56:20 -0000 1.3 --- online_adv_hack.php 14 Jan 2008 13:04:33 -0000 1.3.2.1 *************** *** 188,194 **** case 'adsbot-google ': case 'mediapartners-google ': case 'adsense ': ! $this_agent = 'google'; ! $this_bot_id = '1'; break; --- 188,198 ---- case 'adsbot-google ': case 'mediapartners-google ': + $agent = 'google'; + $bot_id = '1'; + break; + case 'adsense ': ! $agent = 'adsense'; ! $bot_id = '1'; break; *************** *** 199,216 **** case 'yahoomm ': case 'inktomi ': ! $this_agent = 'yahoo'; ! $this_bot_id = '2'; break; case 'lycosbot ': case 'lycos ': ! $this_agent = 'lycos'; ! $this_bot_id = '3'; break; case 'infoseekbot ': case 'infoseek ': ! $this_agent = 'infoseek'; ! $this_bot_id = '4'; break; --- 203,226 ---- case 'yahoomm ': case 'inktomi ': ! $agent = 'yahoo'; ! $bot_id = '2'; ! break; ! ! case 'yahoo! slurp ': ! case 'slurp ': ! $agent = 'slurp'; ! $bot_id = '2'; break; case 'lycosbot ': case 'lycos ': ! $agent = 'lycos'; ! $bot_id = '3'; break; case 'infoseekbot ': case 'infoseek ': ! $agent = 'infoseek'; ! $bot_id = '4'; break; *************** *** 220,246 **** case 'msnbot-products ': case 'msnbot-academic ': ! $this_agent = 'msn'; ! $this_bot_id = '5'; break; case 'altavistabot ': case 'altavista ': ! $this_agent = 'altavista'; ! $this_bot_id = '6'; break; case 'excitebot ': case 'excite ': ! $this_agent = 'excite'; ! $this_bot_id = '7'; break; case 'ask jeeves ': case 'ask ': ! $this_agent = 'askjeeves'; ! $this_bot_id = '8'; break; - case 'slurp ': case 'fast-webcrawler ': case 'teoma ': --- 230,255 ---- case 'msnbot-products ': case 'msnbot-academic ': ! $agent = 'msn'; ! $bot_id = '5'; break; case 'altavistabot ': case 'altavista ': ! $agent = 'altavista'; ! $bot_id = '6'; break; case 'excitebot ': case 'excite ': ! $agent = 'excite'; ! $bot_id = '7'; break; case 'ask jeeves ': case 'ask ': ! $agent = 'askjeeves'; ! $bot_id = '8'; break; case 'fast-webcrawler ': case 'teoma ': *************** *** 263,277 **** case 'sohu-search ': case 'sohu ': - case 'iltrovatore-setaccio ': case 'il-set ': ! $this_agent = 'BOT'; ! $this_bot_id = '9'; break; default: ! $this_agent = 'browser'; ! $this_bot_id = ''; ! } // Determine platform // This is very incomplete for platforms other than Win/Mac --- 272,286 ---- case 'sohu-search ': case 'sohu ': case 'il-set ': ! case 'iltrovatore-setaccio ': ! $agent = $matches[1]; ! $bot_id = '9'; break; default: ! $agent = 'browser'; ! $bot_id = ''; } + // Determine platform // This is very incomplete for platforms other than Win/Mac Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_online_adv/includes/functions.php,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** functions.php 28 Jun 2007 16:58:34 -0000 1.4 --- functions.php 14 Jan 2008 13:04:32 -0000 1.4.2.1 *************** *** 59,67 **** $sql = "DELETE FROM " . ONLINE_ADV_SESSION_TABLE . " ! WHERE time<'$max_time'"; if( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'SQL Error in function drop_spiders_surfing()', '', __LINE__, __FILE__, $sql); } } --- 59,67 ---- $sql = "DELETE FROM " . ONLINE_ADV_SESSION_TABLE . " ! WHERE time < '$max_time'"; if( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'SQL Error in function drop_spiders_surfing()', '', __LINE__, __FILE__, $sql); } } |