|
@@ 211-215 (lines=5) @@
|
| 208 |
|
$_REQUEST['start'] = (int) $_REQUEST['start']; |
| 209 |
|
} |
| 210 |
|
// ... or a specific message ... |
| 211 |
|
elseif (strpos($_REQUEST['start'], 'msg') === 0) |
| 212 |
|
{ |
| 213 |
|
$virtual_msg = (int) substr($_REQUEST['start'], 3); |
| 214 |
|
$_REQUEST['start'] = $virtual_msg === 0 ? 0 : 'msg' . $virtual_msg; |
| 215 |
|
} |
| 216 |
|
// ... or whatever is new ... |
| 217 |
|
elseif (strpos($_REQUEST['start'], 'new') === 0) |
| 218 |
|
{ |
|
@@ 222-226 (lines=5) @@
|
| 219 |
|
$_REQUEST['start'] = 'new'; |
| 220 |
|
} |
| 221 |
|
// ... or since a certain time ... |
| 222 |
|
elseif (strpos($_REQUEST['start'], 'from') === 0) |
| 223 |
|
{ |
| 224 |
|
$timestamp = (int) substr($_REQUEST['start'], 4); |
| 225 |
|
$_REQUEST['start'] = $timestamp === 0 ? 0 : 'from' . $timestamp; |
| 226 |
|
} |
| 227 |
|
// ... or something invalid, in which case we reset it to 0. |
| 228 |
|
else |
| 229 |
|
$_REQUEST['start'] = 0; |