Vergleich xmlhttp.php - 1.2.0 - 1.2.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 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 2477 2006-12-02 13:12:03Z CraKteR $

 */

/**

 */

/**

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}");