Zeile 1010 | Zeile 1010 |
---|
'namestyle' => 'namestyle' );
|
'namestyle' => 'namestyle' );
|
foreach($data_key as $field => $key)
| if(isset($groupscache[$pm['usergroup']]))
|
{
|
{
|
$pm[$key] = $groupscache[$pm['usergroup']][$field];
| foreach($data_key as $field => $key) { $pm[$key] = $groupscache[$pm['usergroup']][$field]; }
|
}
if($pm['receipt'] == 1)
| }
if($pm['receipt'] == 1)
|
Zeile 1341 | Zeile 1344 |
---|
if($page) { $start = ($page-1) * $perpage;
|
if($page) { $start = ($page-1) * $perpage;
|
} else
| } else
|
{ $start = 0; $page = 1;
| { $start = 0; $page = 1;
|
Zeile 1398 | Zeile 1401 |
---|
if(!empty($mybb->input['readcheck'])) { foreach($mybb->input['readcheck'] as $key => $val)
|
if(!empty($mybb->input['readcheck'])) { foreach($mybb->input['readcheck'] as $key => $val)
|
{ $sql_array = array( "receipt" => 0 ); $db->update_query("privatemessages", $sql_array, "pmid=".(int)$key." AND fromid=".$mybb->user['uid']);
| { $sql_array = array( "receipt" => 0 ); $db->update_query("privatemessages", $sql_array, "pmid=".(int)$key." AND fromid=".$mybb->user['uid']);
|
} } $plugins->run_hooks("private_do_tracking_end");
| } } $plugins->run_hooks("private_do_tracking_end");
|
Zeile 1505 | Zeile 1508 |
---|
$plugins->run_hooks("private_folders_end");
eval("\$folders = \"".$templates->get("private_folders")."\";");
|
$plugins->run_hooks("private_folders_end");
eval("\$folders = \"".$templates->get("private_folders")."\";");
|
output_page($folders); }
| output_page($folders); }
|
if($mybb->input['action'] == "do_folders" && $mybb->request_method == "post") { // Verify incoming POST request
| if($mybb->input['action'] == "do_folders" && $mybb->request_method == "post") { // Verify incoming POST request
|
Zeile 1565 | Zeile 1568 |
---|
else { error($lang->error_invalidpmfoldername);
|
else { error($lang->error_invalidpmfoldername);
|
} }
| } }
|
else { // Delete PMs from the folder
| else { // Delete PMs from the folder
|
Zeile 1574 | Zeile 1577 |
---|
} } }
|
} } }
|
|
|
$sql_array = array( "pmfolders" => $folders ); $db->update_query("users", $sql_array, "uid='".$mybb->user['uid']."'");
|
$sql_array = array( "pmfolders" => $folders ); $db->update_query("users", $sql_array, "uid='".$mybb->user['uid']."'");
|
|
|
// Update PM count update_pm_count();
$plugins->run_hooks("private_do_folders_end");
redirect("private.php", $lang->redirect_pmfoldersupdated);
|
// Update PM count update_pm_count();
$plugins->run_hooks("private_do_folders_end");
redirect("private.php", $lang->redirect_pmfoldersupdated);
|
}
| }
|
if($mybb->input['action'] == "empty") { if($mybb->user['totalpms'] == 0) { error($lang->error_nopms); }
|
if($mybb->input['action'] == "empty") { if($mybb->user['totalpms'] == 0) { error($lang->error_nopms); }
|
|
|
$plugins->run_hooks("private_empty_start");
$foldersexploded = explode("$%%$", $mybb->user['pmfolders']);
|
$plugins->run_hooks("private_empty_start");
$foldersexploded = explode("$%%$", $mybb->user['pmfolders']);
|
$folderlist = $unread = '';
| $folderlist = '';
|
foreach($foldersexploded as $key => $folders) { $folderinfo = explode("**", $folders, 2);
|
foreach($foldersexploded as $key => $folders) { $folderinfo = explode("**", $folders, 2);
|
| $unread = '';
|
$fid = $folderinfo[0]; if($folderinfo[0] == "1") {
| $fid = $folderinfo[0]; if($folderinfo[0] == "1") {
|
Zeile 1626 | Zeile 1630 |
---|
}
if($mybb->input['action'] == "do_empty" && $mybb->request_method == "post")
|
}
if($mybb->input['action'] == "do_empty" && $mybb->request_method == "post")
|
{ // Verify incoming POST request
| { // Verify incoming POST request
|
verify_post_check($mybb->get_input('my_post_key'));
$plugins->run_hooks("private_do_empty_start");
| verify_post_check($mybb->get_input('my_post_key'));
$plugins->run_hooks("private_do_empty_start");
|
Zeile 1668 | Zeile 1672 |
---|
}
if($mybb->input['action'] == "do_stuff" && $mybb->request_method == "post")
|
}
if($mybb->input['action'] == "do_stuff" && $mybb->request_method == "post")
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
$plugins->run_hooks("private_do_stuff");
| { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
$plugins->run_hooks("private_do_stuff");
|
if(!empty($mybb->input['hop'])) { header("Location: private.php?fid=".$mybb->get_input('jumpto'));
| if(!empty($mybb->input['hop'])) { header("Location: private.php?fid=".$mybb->get_input('jumpto'));
|
Zeile 1799 | Zeile 1803 |
---|
$plugins->run_hooks("private_export_start");
$foldersexploded = explode("$%%$", $mybb->user['pmfolders']);
|
$plugins->run_hooks("private_export_start");
$foldersexploded = explode("$%%$", $mybb->user['pmfolders']);
|
$folder_name = $folder_id = '';
| $folderlist_folder = '';
|
foreach($foldersexploded as $key => $folders) { $folderinfo = explode("**", $folders, 2);
| foreach($foldersexploded as $key => $folders) { $folderinfo = explode("**", $folders, 2);
|
Zeile 2004 | Zeile 2008 |
---|
{ $message['message'] = str_replace("\r\n", "\n", $message['message']); $message['message'] = str_replace("\n", "\r\n", $message['message']);
|
{ $message['message'] = str_replace("\r\n", "\n", $message['message']); $message['message'] = str_replace("\n", "\r\n", $message['message']);
|
}
| }
|
if($mybb->input['exporttype'] == "csv") {
| if($mybb->input['exporttype'] == "csv") {
|
Zeile 2236 | Zeile 2240 |
---|
while($row = $db->fetch_array($users_query)) { $recipients = my_unserialize($row['recipients']);
|
while($row = $db->fetch_array($users_query)) { $recipients = my_unserialize($row['recipients']);
|
if(is_array($recipients['to']) && count($recipients['to']))
| if(isset($recipients['to']) && is_array($recipients['to']) && count($recipients['to']))
|
{ $get_users = array_merge($get_users, $recipients['to']); }
| { $get_users = array_merge($get_users, $recipients['to']); }
|
Zeile 2336 | Zeile 2340 |
---|
{ foreach($recipients['to'] as $uid) {
|
{ foreach($recipients['to'] as $uid) {
|
| if(!isset($cached_users[$uid])) { continue; }
|
$profilelink = get_profile_link($uid); $user = $cached_users[$uid]; $user['username'] = htmlspecialchars_uni($user['username']);
| $profilelink = get_profile_link($uid); $user = $cached_users[$uid]; $user['username'] = htmlspecialchars_uni($user['username']);
|
Zeile 2351 | Zeile 2359 |
---|
eval("\$bcc_users = \"".$templates->get("private_multiple_recipients_bcc")."\";"); foreach($recipients['bcc'] as $uid) {
|
eval("\$bcc_users = \"".$templates->get("private_multiple_recipients_bcc")."\";"); foreach($recipients['bcc'] as $uid) {
|
| if(!isset($cached_users[$uid])) { continue; }
|
$profilelink = get_profile_link($uid); $user = $cached_users[$uid]; $user['username'] = htmlspecialchars_uni($user['username']);
| $profilelink = get_profile_link($uid); $user = $cached_users[$uid]; $user['username'] = htmlspecialchars_uni($user['username']);
|