mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
parent
64df3c5538
commit
21c8e7d48a
58 changed files with 226 additions and 228 deletions
|
@ -40,7 +40,7 @@ $page_cfg['load_tpl_vars'] = array(
|
|||
);
|
||||
|
||||
$newest = $next_topic_id = 0;
|
||||
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
|
||||
$start = isset($_GET['start']) ? abs((int)$_GET['start']) : 0;
|
||||
$topic_id = isset($_GET[POST_TOPIC_URL]) ? (int)$_GET[POST_TOPIC_URL] : 0;
|
||||
$post_id = (!$topic_id && isset($_GET[POST_POST_URL])) ? (int)$_GET[POST_POST_URL] : 0;
|
||||
|
||||
|
@ -54,7 +54,7 @@ $posts_per_page = $bb_cfg['posts_per_page'];
|
|||
$select_ppp = '';
|
||||
|
||||
if ($userdata['session_admin']) {
|
||||
if ($req_ppp = abs(intval(@$_REQUEST['ppp'])) and in_array($req_ppp, $bb_cfg['allowed_posts_per_page'])) {
|
||||
if ($req_ppp = abs((int)(@$_REQUEST['ppp'])) and in_array($req_ppp, $bb_cfg['allowed_posts_per_page'])) {
|
||||
$posts_per_page = $req_ppp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue