mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#882)
* Minor improvements * Updated * Updated * Updated * Update privmsg.php * Updated * Update admin_attach_cp.php
This commit is contained in:
parent
2c07660435
commit
4b453de64a
75 changed files with 699 additions and 735 deletions
|
@ -28,7 +28,7 @@ if (!$userdata['session_logged_in']) {
|
|||
redirect(LOGIN_URL . "?redirect=profile.php&mode=email&" . POST_USERS_URL . "=$user_id");
|
||||
}
|
||||
|
||||
$errors = array();
|
||||
$errors = [];
|
||||
|
||||
$sql = "SELECT username, user_id, user_rank, user_email, user_lang
|
||||
FROM " . BB_USERS . "
|
||||
|
@ -60,12 +60,12 @@ if ($row = DB()->fetch_row($sql)) {
|
|||
$emailer->set_subject($subject);
|
||||
|
||||
$emailer->set_template('profile_send_email', $user_lang);
|
||||
$emailer->assign_vars(array(
|
||||
$emailer->assign_vars([
|
||||
'SITENAME' => $bb_cfg['sitename'],
|
||||
'FROM_USERNAME' => $userdata['username'],
|
||||
'TO_USERNAME' => $username,
|
||||
'MESSAGE' => $message,
|
||||
));
|
||||
'MESSAGE' => $message
|
||||
]);
|
||||
|
||||
$emailer->send();
|
||||
|
||||
|
@ -73,12 +73,12 @@ if ($row = DB()->fetch_row($sql)) {
|
|||
}
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
$template->assign_vars([
|
||||
'USERNAME' => profile_url($row),
|
||||
'S_HIDDEN_FIELDS' => '',
|
||||
'S_POST_ACTION' => "profile.php?mode=email&" . POST_USERS_URL . "=$user_id",
|
||||
'ERROR_MESSAGE' => ($errors) ? implode('<br />', array_unique($errors)) : '',
|
||||
));
|
||||
'ERROR_MESSAGE' => ($errors) ? implode('<br />', array_unique($errors)) : ''
|
||||
]);
|
||||
|
||||
print_page('usercp_email.tpl');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue