mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
parent
64df3c5538
commit
21c8e7d48a
58 changed files with 226 additions and 228 deletions
|
@ -33,7 +33,7 @@ if (empty($_GET['u']) || empty($_GET['act_key'])) {
|
|||
|
||||
$sql = "SELECT user_active, user_id, username, user_email, user_newpasswd, user_lang, user_actkey
|
||||
FROM " . BB_USERS . "
|
||||
WHERE user_id = " . intval($_GET[POST_USERS_URL]);
|
||||
WHERE user_id = " . (int)$_GET[POST_USERS_URL];
|
||||
if (!($result = DB()->sql_query($sql))) {
|
||||
bb_die('Could not obtain user information');
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ if (!$bb_cfg['board_email_form']) {
|
|||
set_die_append_msg();
|
||||
|
||||
if (!empty($_GET[POST_USERS_URL]) || !empty($_POST[POST_USERS_URL])) {
|
||||
$user_id = (!empty($_GET[POST_USERS_URL])) ? intval($_GET[POST_USERS_URL]) : intval($_POST[POST_USERS_URL]);
|
||||
$user_id = (!empty($_GET[POST_USERS_URL])) ? (int)$_GET[POST_USERS_URL] : (int)$_POST[POST_USERS_URL];
|
||||
} else {
|
||||
bb_die($lang['NO_USER_SPECIFIED']);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ $page_cfg['include_bbcode_js'] = true;
|
|||
$tracking_topics = get_tracks('topic');
|
||||
|
||||
$user_id = $userdata['user_id'];
|
||||
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
|
||||
$start = isset($_GET['start']) ? abs((int)$_GET['start']) : 0;
|
||||
$per_page = $bb_cfg['topics_per_page'];
|
||||
|
||||
if (isset($_POST['topic_id_list'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue