mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Security measures (#1113)
This commit is contained in:
parent
61ef24539a
commit
73b07f2e92
2 changed files with 20 additions and 8 deletions
|
@ -579,6 +579,8 @@ if ($userdata['user_level'] == GROUP_MEMBER || IS_AM) {
|
|||
}
|
||||
}
|
||||
|
||||
// Assign posting title & hidden fields
|
||||
$page_title = '';
|
||||
$hidden_form_fields = '<input type="hidden" name="mode" value="' . $mode . '" />';
|
||||
|
||||
switch ($mode) {
|
||||
|
|
26
privmsg.php
26
privmsg.php
|
@ -1097,14 +1097,24 @@ if ($mode == 'read') {
|
|||
$template->assign_block_vars('switch_privmsg', []);
|
||||
$template->assign_var('POSTING_USERNAME');
|
||||
|
||||
$post_a = ' ';
|
||||
if ($mode == 'post') {
|
||||
$post_a = $lang['SEND_A_NEW_MESSAGE'];
|
||||
} elseif ($mode == 'reply') {
|
||||
$post_a = $lang['SEND_A_REPLY'];
|
||||
$mode = 'post';
|
||||
} elseif ($mode == 'edit') {
|
||||
$post_a = $lang['EDIT_MESSAGE'];
|
||||
//
|
||||
// Assign posting title & hidden fields
|
||||
//
|
||||
$post_a = false;
|
||||
switch ($mode) {
|
||||
case 'post':
|
||||
$post_a = $lang['SEND_A_NEW_MESSAGE'];
|
||||
break;
|
||||
case 'reply':
|
||||
$post_a = $lang['SEND_A_REPLY'];
|
||||
$mode = 'post';
|
||||
break;
|
||||
case 'edit':
|
||||
$post_a = $lang['EDIT_MESSAGE'];
|
||||
break;
|
||||
default:
|
||||
pm_die($lang['NONE_SELECTED']);
|
||||
break;
|
||||
}
|
||||
|
||||
$s_hidden_fields = '<input type="hidden" name="folder" value="' . $folder . '" />';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue