Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: xmlhttp.php 2184 2006-09-02 10:22:48Z chris $
| * $Id: xmlhttp.php 2449 2006-11-27 22:57:17Z CraKteR $
|
*/
/**
| */
/**
|
Zeile 348 | Zeile 348 |
---|
//die(str_replace("&", "&", $message)); if($debug_this == 1) {
|
//die(str_replace("&", "&", $message)); if($debug_this == 1) {
|
$fp = fopen(MYBB_ROOT."/uploads/test.log", "a");
| $fp = fopen(MYBB_ROOT."uploads/test.log", "a");
|
fwrite($fp, $message."\n\n\n"); fclose($fp); }
| fwrite($fp, $message."\n\n\n"); fclose($fp); }
|
Zeile 402 | Zeile 402 |
---|
$attachcache[$attachment['pid']][$attachment['aid']] = $attachment; }
|
$attachcache[$attachment['pid']][$attachment['aid']] = $attachment; }
|
require_once MYBB_ROOT."/inc/functions_post.php";
| require_once MYBB_ROOT."inc/functions_post.php";
|
get_post_attachments($post['pid'], $post);
| get_post_attachments($post['pid'], $post);
|
Zeile 455 | Zeile 455 |
---|
else { $from_tid = '';
|
else { $from_tid = '';
|
}
| }
|
// Query for any posts in the list which are not within the specified thread $query = $db->query("
|
// Query for any posts in the list which are not within the specified thread $query = $db->query("
|
SELECT p.subject, p.message, p.pid, p.tid, p.username, u.username AS userusername
| SELECT p.subject, p.message, p.pid, p.tid, p.username, t.fid, p.visible, u.username AS userusername
|
FROM ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
|
FROM ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
|
WHERE {$from_tid}p.pid IN ($quoted_posts) {$unviewable_forums} AND p.visible='1'
| WHERE {$from_tid}p.pid IN ($quoted_posts) {$unviewable_forums}
|
"); while($quoted_post = $db->fetch_array($query))
|
"); while($quoted_post = $db->fetch_array($query))
|
{
| { if(!is_moderator($quoted_post['fid']) && $quoted_post['visible'] == 0) { continue; }
|
// Swap username over if we have a registered user if($quoted_post['userusername']) {
| // Swap username over if we have a registered user if($quoted_post['userusername']) {
|
Zeile 492 | Zeile 498 |
---|
*/ function xmlhttp_error($message) {
|
*/ function xmlhttp_error($message) {
|
| global $charset;
|
// Send our headers. header("Content-type: text/html; charset={$charset}");
| // Send our headers. header("Content-type: text/html; charset={$charset}");
|