|
@@ 363-378 (lines=16) @@
|
| 360 |
|
) |
| 361 |
|
); |
| 362 |
|
$context['messages'] = array(); |
| 363 |
|
for ($counter = 0; $row = $smcFunc['db_fetch_assoc']($request); $counter++) |
| 364 |
|
{ |
| 365 |
|
censorText($row['subject']); |
| 366 |
|
censorText($row['body']); |
| 367 |
|
|
| 368 |
|
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']); |
| 369 |
|
|
| 370 |
|
$context['not_selected']['messages'][$row['id_msg']] = array( |
| 371 |
|
'id' => $row['id_msg'], |
| 372 |
|
'subject' => $row['subject'], |
| 373 |
|
'time' => timeformat($row['poster_time']), |
| 374 |
|
'timestamp' => forum_time(true, $row['poster_time']), |
| 375 |
|
'body' => $row['body'], |
| 376 |
|
'poster' => $row['real_name'], |
| 377 |
|
); |
| 378 |
|
} |
| 379 |
|
$smcFunc['db_free_result']($request); |
| 380 |
|
|
| 381 |
|
// Now get the selected messages. |
|
@@ 403-418 (lines=16) @@
|
| 400 |
|
) |
| 401 |
|
); |
| 402 |
|
$context['messages'] = array(); |
| 403 |
|
for ($counter = 0; $row = $smcFunc['db_fetch_assoc']($request); $counter++) |
| 404 |
|
{ |
| 405 |
|
censorText($row['subject']); |
| 406 |
|
censorText($row['body']); |
| 407 |
|
|
| 408 |
|
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']); |
| 409 |
|
|
| 410 |
|
$context['selected']['messages'][$row['id_msg']] = array( |
| 411 |
|
'id' => $row['id_msg'], |
| 412 |
|
'subject' => $row['subject'], |
| 413 |
|
'time' => timeformat($row['poster_time']), |
| 414 |
|
'timestamp' => forum_time(true, $row['poster_time']), |
| 415 |
|
'body' => $row['body'], |
| 416 |
|
'poster' => $row['real_name'] |
| 417 |
|
); |
| 418 |
|
} |
| 419 |
|
$smcFunc['db_free_result']($request); |
| 420 |
|
} |
| 421 |
|
|