Line 192 | Line 192 |
---|
{ trigger_error('NO_AUTH_READ_HOLD_MESSAGE'); }
|
{ trigger_error('NO_AUTH_READ_HOLD_MESSAGE'); }
|
| add_form_key('ucp_pm_view');
|
// First Handle Mark actions and moving messages $submit_mark = (isset($_POST['submit_mark'])) ? true : false;
| // First Handle Mark actions and moving messages $submit_mark = (isset($_POST['submit_mark'])) ? true : false;
|
Line 210 | Line 212 |
---|
// Move PM if ($move_pm) {
|
// Move PM if ($move_pm) {
|
| if (!check_form_key('ucp_pm_view')) { trigger_error('FORM_INVALID'); }
|
$move_msg_ids = (isset($_POST['marked_msg_id'])) ? $request->variable('marked_msg_id', array(0)) : array(); $cur_folder_id = $request->variable('cur_folder_id', PRIVMSGS_NO_BOX);
| $move_msg_ids = (isset($_POST['marked_msg_id'])) ? $request->variable('marked_msg_id', array(0)) : array(); $cur_folder_id = $request->variable('cur_folder_id', PRIVMSGS_NO_BOX);
|
Line 354 | Line 361 |
---|
$template->assign_vars(array( 'CUR_FOLDER_ID' => $folder_id,
|
$template->assign_vars(array( 'CUR_FOLDER_ID' => $folder_id,
|
'CUR_FOLDER_NAME' => $folder_status['folder_name'],
| 'CUR_FOLDER_NAME' => $folder_status ? $folder_status['folder_name'] : false,
|
'NUM_NOT_MOVED' => $num_not_moved, 'NUM_REMOVED' => $num_removed, 'RELEASE_MESSAGE_INFO' => sprintf($user->lang['RELEASE_MESSAGES'], '<a href="' . $this->u_action . '&folder=' . $folder_id . '&release=1">', '</a>'),
| 'NUM_NOT_MOVED' => $num_not_moved, 'NUM_REMOVED' => $num_removed, 'RELEASE_MESSAGE_INFO' => sprintf($user->lang['RELEASE_MESSAGES'], '<a href="' . $this->u_action . '&folder=' . $folder_id . '&release=1">', '</a>'),
|
Line 377 | Line 384 |
---|
'S_IN_OUTBOX' => ($folder_id == PRIVMSGS_OUTBOX) ? true : false, 'S_IN_SENTBOX' => ($folder_id == PRIVMSGS_SENTBOX) ? true : false,
|
'S_IN_OUTBOX' => ($folder_id == PRIVMSGS_OUTBOX) ? true : false, 'S_IN_SENTBOX' => ($folder_id == PRIVMSGS_SENTBOX) ? true : false,
|
'FOLDER_STATUS' => $folder_status['message'], 'FOLDER_MAX_MESSAGES' => $folder_status['max'], 'FOLDER_CUR_MESSAGES' => $folder_status['cur'], 'FOLDER_REMAINING_MESSAGES' => $folder_status['remaining'], 'FOLDER_PERCENT' => $folder_status['percent']) );
| 'FOLDER_STATUS' => $folder_status ? $folder_status['message'] : false, 'FOLDER_MAX_MESSAGES' => $folder_status ? $folder_status['max'] : false, 'FOLDER_CUR_MESSAGES' => $folder_status ? $folder_status['cur'] : false, 'FOLDER_REMAINING_MESSAGES' => $folder_status ? $folder_status['remaining'] : false, 'FOLDER_PERCENT' => $folder_status ? $folder_status['percent'] : false, ));
|
if ($action == 'view_folder') {
| if ($action == 'view_folder') {
|
Line 398 | Line 405 |
---|
{ $template->assign_vars(array( 'S_VIEW_MESSAGE' => true,
|
{ $template->assign_vars(array( 'S_VIEW_MESSAGE' => true,
|
'L_RETURN_TO_FOLDER' => $user->lang('RETURN_TO', $folder_status['folder_name']),
| 'L_RETURN_TO_FOLDER' => $user->lang('RETURN_TO', $folder_status ? $folder_status['folder_name'] : ''),
|
'MSG_ID' => $msg_id, ));
| 'MSG_ID' => $msg_id, ));
|