phpBB

Code Changes

File: includes/acp/acp_search.php

  Unmodified   Added   Modified   Removed
Line 332Line 332
								$forum_ids[] = $row['forum_id'];
}
$db->sql_freeresult($result);

								$forum_ids[] = $row['forum_id'];
}
$db->sql_freeresult($result);

							$row_count += sizeof($ids);

							$row_count += count($ids);





							if (sizeof($ids))

							if (count($ids))

							{
$this->search->index_remove($ids, $posters, $forum_ids);
}

							{
$this->search->index_remove($ids, $posters, $forum_ids);
}

Line 349Line 349
							$totaltime = microtime(true) - $starttime;
$rows_per_second = $row_count / $totaltime;
meta_refresh(1, append_sid($this->u_action . '&action=delete&skip_rows=' . $post_counter . '&hash=' . generate_link_hash('acp_search')));

							$totaltime = microtime(true) - $starttime;
$rows_per_second = $row_count / $totaltime;
meta_refresh(1, append_sid($this->u_action . '&action=delete&skip_rows=' . $post_counter . '&hash=' . generate_link_hash('acp_search')));

							trigger_error($user->lang('SEARCH_INDEX_DELETE_REDIRECT', (int) $row_count, $post_counter, $rows_per_second));

							trigger_error($user->lang('SEARCH_INDEX_DELETE_REDIRECT', (int) $row_count, $post_counter) . $user->lang('SEARCH_INDEX_DELETE_REDIRECT_RATE', $rows_per_second));

						}
}


						}
}


Line 474Line 474
			$statistics = array();
foreach ($data as $statistic => $value)
{

			$statistics = array();
foreach ($data as $statistic => $value)
{

				$n = sizeof($statistics);
if ($n && sizeof($statistics[$n - 1]) < 3)

				$n = count($statistics);
if ($n && count($statistics[$n - 1]) < 3)

				{
$statistics[$n - 1] += array('statistic_2' => $statistic, 'value_2' => $value);
}

				{
$statistics[$n - 1] += array('statistic_2' => $statistic, 'value_2' => $value);
}

Line 492Line 492
				'S_ACTIVE'			=> ($type == $config['search_type']) ? true : false,
'S_HIDDEN_FIELDS' => build_hidden_fields(array('search_type' => $type)),
'S_INDEXED' => (bool) $search->index_created(),

				'S_ACTIVE'			=> ($type == $config['search_type']) ? true : false,
'S_HIDDEN_FIELDS' => build_hidden_fields(array('search_type' => $type)),
'S_INDEXED' => (bool) $search->index_created(),

				'S_STATS'			=> (bool) sizeof($statistics))

				'S_STATS'			=> (bool) count($statistics))

			);

foreach ($statistics as $statistic)

			);

foreach ($statistics as $statistic)