Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: private.php 5159 2010-08-01 09:19:26Z RyanGordon $
| * $Id: private.php 5476 2011-06-24 14:49:59Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 15 | Zeile 15 |
---|
$templatelist = "private_send,private_send_buddyselect,private_read,private_tracking,private_tracking_readmessage,private_tracking_unreadmessage"; $templatelist .= ",private_folders,private_folders_folder,private_folders_folder_unremovable,private,usercp_nav_changename,usercp_nav,private_empty_folder,private_empty,posticons";
|
$templatelist = "private_send,private_send_buddyselect,private_read,private_tracking,private_tracking_readmessage,private_tracking_unreadmessage"; $templatelist .= ",private_folders,private_folders_folder,private_folders_folder_unremovable,private,usercp_nav_changename,usercp_nav,private_empty_folder,private_empty,posticons";
|
$templatelist .= "usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_nav_messenger,multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage";
| $templatelist .= "usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_nav_messenger,multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage,usercp_nav_editsignature,private_read_action,postbit_away,postbit_avatar,postbit_warn,postbit_rep_button";
|
$templatelist .= ",private_messagebit,codebuttons,smilieinsert,posticons,private_send_autocomplete,private_messagebit_denyreceipt,private_read_to, postbit_online,postbit_find,postbit_pm, postbit_email,postbit_reputation,postbit_warninglevel,postbit_author_user,postbit_reply_pm,postbit_forward_pm,postbit_delete_pm,postbit,private_tracking_nomessage,private_nomessages";
require_once "./global.php";
| $templatelist .= ",private_messagebit,codebuttons,smilieinsert,posticons,private_send_autocomplete,private_messagebit_denyreceipt,private_read_to, postbit_online,postbit_find,postbit_pm, postbit_email,postbit_reputation,postbit_warninglevel,postbit_author_user,postbit_reply_pm,postbit_forward_pm,postbit_delete_pm,postbit,private_tracking_nomessage,private_nomessages";
require_once "./global.php";
|
Zeile 122 | Zeile 122 |
---|
$mybb->input['action'] = "send"; }
|
$mybb->input['action'] = "send"; }
|
if(($mybb->input['action'] == "do_search" || $mybb->input['quick_search']) && $mybb->request_method == "post")
| if(($mybb->input['action'] == "do_search" || $mybb->input['action'] == "do_stuff" && ($mybb->input['quick_search'] || !$mybb->input['hop'] && !$mybb->input['moveto'] && !$mybb->input['delete'])) && $mybb->request_method == "post")
|
{ $plugins->run_hooks("private_do_search_start");
| { $plugins->run_hooks("private_do_search_start");
|
Zeile 677 | Zeile 677 |
---|
{ $options = $mybb->input['options']; $query = $db->query("
|
{ $options = $mybb->input['options']; $query = $db->query("
|
SELECT u.username AS userusername, u.*, f.*, g.title AS grouptitle, g.usertitle AS groupusertitle, g.namestyle, g.stars AS groupstars, g.starimage AS groupstarimage, g.image AS groupimage, g.usereputationsystem
| SELECT u.username AS userusername, u.*, f.*
|
FROM ".TABLE_PREFIX."users u LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
|
FROM ".TABLE_PREFIX."users u LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
|
LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)
| |
WHERE u.uid='".$mybb->user['uid']."' ");
|
WHERE u.uid='".$mybb->user['uid']."' ");
|
|
|
$post = $db->fetch_array($query);
|
$post = $db->fetch_array($query);
|
|
|
$post['userusername'] = $mybb->user['username']; $post['postusername'] = $mybb->user['username']; $post['message'] = $previewmessage;
| $post['userusername'] = $mybb->user['username']; $post['postusername'] = $mybb->user['username']; $post['message'] = $previewmessage;
|
Zeile 691 | Zeile 692 |
---|
$post['icon'] = $mybb->input['icon']; $post['smilieoff'] = $options['disablesmilies']; $post['dateline'] = TIME_NOW;
|
$post['icon'] = $mybb->input['icon']; $post['smilieoff'] = $options['disablesmilies']; $post['dateline'] = TIME_NOW;
|
|
|
if(!$options['signature'])
|
if(!$options['signature'])
|
{
| {
|
$post['includesig'] = 0;
|
$post['includesig'] = 0;
|
}
| }
|
else
|
else
|
{
| {
|
$post['includesig'] = 1; }
|
$post['includesig'] = 1; }
|
| // Merge usergroup data from the cache $data_key = array( 'title' => 'grouptitle', 'usertitle' => 'groupusertitle', 'stars' => 'groupstars', 'starimage' => 'groupstarimage', 'image' => 'groupimage', 'namestyle' => 'namestyle', 'usereputationsystem' => 'usereputationsystem' );
foreach($data_key as $field => $key) { $post[$key] = $groupscache[$post['usergroup']][$field]; }
|
$postbit = build_postbit($post, 2); eval("\$preview = \"".$templates->get("previewpost")."\";"); }
| $postbit = build_postbit($post, 2); eval("\$preview = \"".$templates->get("previewpost")."\";"); }
|
Zeile 739 | Zeile 758 |
---|
$optionschecked['signature'] = 'checked="checked"'; } if($pm['smilieoff'] == 1)
|
$optionschecked['signature'] = 'checked="checked"'; } if($pm['smilieoff'] == 1)
|
{
| {
|
$optionschecked['disablesmilies'] = 'checked="checked"'; } if($pm['receipt'])
| $optionschecked['disablesmilies'] = 'checked="checked"'; } if($pm['receipt'])
|
Zeile 791 | Zeile 810 |
---|
$subject = preg_replace("#(FW|RE):( *)#is", '', $subject); $postdate = my_date($mybb->settings['dateformat'], $pm['dateline']); $posttime = my_date($mybb->settings['timeformat'], $pm['dateline']);
|
$subject = preg_replace("#(FW|RE):( *)#is", '', $subject); $postdate = my_date($mybb->settings['dateformat'], $pm['dateline']); $posttime = my_date($mybb->settings['timeformat'], $pm['dateline']);
|
$message = "[quote={$pm['quotename']}]\n$message\n[/quote]";
| $message = "[quote='{$pm['quotename']}']\n$message\n[/quote]";
|
$message = preg_replace('#^/me (.*)$#im', "* ".$pm['quotename']." \\1", $message);
if($mybb->input['do'] == 'forward')
| $message = preg_replace('#^/me (.*)$#im', "* ".$pm['quotename']." \\1", $message);
if($mybb->input['do'] == 'forward')
|
Zeile 894 | Zeile 913 |
---|
$pmid = intval($mybb->input['pmid']);
$query = $db->query("
|
$pmid = intval($mybb->input['pmid']);
$query = $db->query("
|
SELECT pm.*, u.*, f.*, g.title AS grouptitle, g.usertitle AS groupusertitle, g.stars AS groupstars, g.starimage AS groupstarimage, g.image AS groupimage, g.namestyle
| SELECT pm.*, u.*, f.*
|
FROM ".TABLE_PREFIX."privatemessages pm LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=pm.fromid) LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
|
FROM ".TABLE_PREFIX."privatemessages pm LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=pm.fromid) LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
|
LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)
| |
WHERE pm.pmid='".intval($mybb->input['pmid'])."' AND pm.uid='".$mybb->user['uid']."' "); $pm = $db->fetch_array($query);
| WHERE pm.pmid='".intval($mybb->input['pmid'])."' AND pm.uid='".$mybb->user['uid']."' "); $pm = $db->fetch_array($query);
|
Zeile 911 | Zeile 929 |
---|
if(!$pm['pmid']) { error($lang->error_invalidpm);
|
if(!$pm['pmid']) { error($lang->error_invalidpm);
|
| }
// If we've gotten a PM, attach the group info $data_key = array( 'title' => 'grouptitle', 'usertitle' => 'groupusertitle', 'stars' => 'groupstars', 'starimage' => 'groupstarimage', 'image' => 'groupimage', 'namestyle' => 'namestyle' );
foreach($data_key as $field => $key) { $pm[$key] = $groupscache[$pm['usergroup']][$field];
|
}
if($pm['receipt'] == 1)
| }
if($pm['receipt'] == 1)
|