phpBB

Code Changes

File: includes/cache.php

  Unmodified   Added   Modified   Removed
Line 84Line 84
			$censors = array();
while ($row = $db->sql_fetchrow($result))
{

			$censors = array();
while ($row = $db->sql_fetchrow($result))
{

				$censors['match'][] = '#(?<!\w)(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')(?!\w)#i';

				$censors['match'][] = get_censor_preg_expression($row['word']);

				$censors['replace'][] = $row['replacement'];
}
$db->sql_freeresult($result);

				$censors['replace'][] = $row['replacement'];
}
$db->sql_freeresult($result);

Line 289Line 289
			{
case 'mssql':
case 'mssql_odbc':

			{
case 'mssql':
case 'mssql_odbc':

 
				case 'mssqlnative':

					$sql = 'SELECT user_id, bot_agent, bot_ip
FROM ' . BOTS_TABLE . '
WHERE bot_active = 1

					$sql = 'SELECT user_id, bot_agent, bot_ip
FROM ' . BOTS_TABLE . '
WHERE bot_active = 1