|
@@ 296-306 (lines=11) @@
|
| 293 |
|
// Get as much memory as possible as this can be big. |
| 294 |
|
setMemoryLimit('256M'); |
| 295 |
|
|
| 296 |
|
if (isset($_REQUEST['boards'])) |
| 297 |
|
{ |
| 298 |
|
if (!is_array($_REQUEST['boards'])) |
| 299 |
|
$_REQUEST['boards'] = explode(',', $_REQUEST['boards']); |
| 300 |
|
foreach ($_REQUEST['boards'] as $k => $dummy) |
| 301 |
|
$_REQUEST['boards'][$k] = (int) $dummy; |
| 302 |
|
|
| 303 |
|
$board_clause = 'id_board IN ({array_int:boards})'; |
| 304 |
|
} |
| 305 |
|
else |
| 306 |
|
$board_clause = '1=1'; |
| 307 |
|
|
| 308 |
|
if (isset($_REQUEST['groups'])) |
| 309 |
|
{ |
|
@@ 308-318 (lines=11) @@
|
| 305 |
|
else |
| 306 |
|
$board_clause = '1=1'; |
| 307 |
|
|
| 308 |
|
if (isset($_REQUEST['groups'])) |
| 309 |
|
{ |
| 310 |
|
if (!is_array($_REQUEST['groups'])) |
| 311 |
|
$_REQUEST['groups'] = explode(',', $_REQUEST['groups']); |
| 312 |
|
foreach ($_REQUEST['groups'] as $k => $dummy) |
| 313 |
|
$_REQUEST['groups'][$k] = (int) $dummy; |
| 314 |
|
|
| 315 |
|
$group_clause = 'id_group IN ({array_int:groups})'; |
| 316 |
|
} |
| 317 |
|
else |
| 318 |
|
$group_clause = '1=1'; |
| 319 |
|
|
| 320 |
|
// Fetch all the board names. |
| 321 |
|
$request = $smcFunc['db_query']('', ' |