Vergleich xmlhttp.php - 1.2.0 - 1.2.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright © 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright © 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: xmlhttp.php 2184 2006-09-02 10:22:48Z chris $

 * $Id: xmlhttp.php 3030 2007-04-26 00:19:47Z Tikitiki $

 */

/**

 */

/**

Zeile 348Zeile 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 402Zeile 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 455Zeile 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']) != 'yes' && $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 492Zeile 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}");