4 * Search for a search term
6 require_once 'www-header.php';
8 if (!isset($_GET['q']) || $_GET['q'] == '') {
9 header('Location: ' . Tools::fullUrl('/list'));
15 if (isset($_GET['page'])) {
16 if (!is_numeric($_GET['page'])) {
17 throw new Exception_Input('List page is not numeric');
19 $page = (int)$_GET['page'];
24 $search = $db->getSearch();
26 $sres = $search->search($query, $page, $perPage);