| @@ 379-380 (lines=2) @@ | ||
| 376 | $search_params['searchtype'] = 2; |
|
| 377 | ||
| 378 | // Minimum age of messages. Default to zero (don't set param in that case). |
|
| 379 | if (!empty($search_params['minage']) || (!empty($_REQUEST['minage']) && $_REQUEST['minage'] > 0)) |
|
| 380 | $search_params['minage'] = !empty($search_params['minage']) ? (int) $search_params['minage'] : (int) $_REQUEST['minage']; |
|
| 381 | ||
| 382 | // Maximum age of messages. Default to infinite (9999 days: param not set). |
|
| 383 | if (!empty($search_params['maxage']) || (!empty($_REQUEST['maxage']) && $_REQUEST['maxage'] < 9999)) |
|
| @@ 383-384 (lines=2) @@ | ||
| 380 | $search_params['minage'] = !empty($search_params['minage']) ? (int) $search_params['minage'] : (int) $_REQUEST['minage']; |
|
| 381 | ||
| 382 | // Maximum age of messages. Default to infinite (9999 days: param not set). |
|
| 383 | if (!empty($search_params['maxage']) || (!empty($_REQUEST['maxage']) && $_REQUEST['maxage'] < 9999)) |
|
| 384 | $search_params['maxage'] = !empty($search_params['maxage']) ? (int) $search_params['maxage'] : (int) $_REQUEST['maxage']; |
|
| 385 | ||
| 386 | // Searching a specific topic? |
|
| 387 | if (!empty($_REQUEST['topic']) || (!empty($_REQUEST['search_selection']) && $_REQUEST['search_selection'] == 'topic')) |
|
| @@ 417-418 (lines=2) @@ | ||
| 414 | } |
|
| 415 | ||
| 416 | // Default the user name to a wildcard matching every user (*). |
|
| 417 | if (!empty($search_params['userspec']) || (!empty($_REQUEST['userspec']) && $_REQUEST['userspec'] != '*')) |
|
| 418 | $search_params['userspec'] = isset($search_params['userspec']) ? $search_params['userspec'] : $_REQUEST['userspec']; |
|
| 419 | ||
| 420 | // If there's no specific user, then don't mention it in the main query. |
|
| 421 | if (empty($search_params['userspec'])) |
|
| @@ 1235-1236 (lines=2) @@ | ||
| 1232 | $search_params['searchtype'] = 2; |
|
| 1233 | ||
| 1234 | // Minimum age of messages. Default to zero (don't set param in that case). |
|
| 1235 | if (!empty($search_params['minage']) || (!empty($_REQUEST['minage']) && $_REQUEST['minage'] > 0)) |
|
| 1236 | $search_params['minage'] = !empty($search_params['minage']) ? (int) $search_params['minage'] : (int) $_REQUEST['minage']; |
|
| 1237 | ||
| 1238 | // Maximum age of messages. Default to infinite (9999 days: param not set). |
|
| 1239 | if (!empty($search_params['maxage']) || (!empty($_REQUEST['maxage']) && $_REQUEST['maxage'] != 9999)) |
|
| @@ 1239-1240 (lines=2) @@ | ||
| 1236 | $search_params['minage'] = !empty($search_params['minage']) ? (int) $search_params['minage'] : (int) $_REQUEST['minage']; |
|
| 1237 | ||
| 1238 | // Maximum age of messages. Default to infinite (9999 days: param not set). |
|
| 1239 | if (!empty($search_params['maxage']) || (!empty($_REQUEST['maxage']) && $_REQUEST['maxage'] != 9999)) |
|
| 1240 | $search_params['maxage'] = !empty($search_params['maxage']) ? (int) $search_params['maxage'] : (int) $_REQUEST['maxage']; |
|
| 1241 | ||
| 1242 | $search_params['subject_only'] = !empty($search_params['subject_only']) || !empty($_REQUEST['subject_only']); |
|
| 1243 | $search_params['show_complete'] = !empty($search_params['show_complete']) || !empty($_REQUEST['show_complete']); |
|
| @@ 1246-1247 (lines=2) @@ | ||
| 1243 | $search_params['show_complete'] = !empty($search_params['show_complete']) || !empty($_REQUEST['show_complete']); |
|
| 1244 | ||
| 1245 | // Default the user name to a wildcard matching every user (*). |
|
| 1246 | if (!empty($search_params['user_spec']) || (!empty($_REQUEST['userspec']) && $_REQUEST['userspec'] != '*')) |
|
| 1247 | $search_params['userspec'] = isset($search_params['userspec']) ? $search_params['userspec'] : $_REQUEST['userspec']; |
|
| 1248 | ||
| 1249 | // This will be full of all kinds of parameters! |
|
| 1250 | $searchq_parameters = array(); |
|