Vergleich newreply.php - 1.2.1 - 1.2.9

  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: newreply.php 2277 2006-09-27 10:26:56Z chris $

 * $Id: newreply.php 3055 2007-05-13 15:01:15Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 22Zeile 22
// Load global language phrases
$lang->load("newreply");


// Load global language phrases
$lang->load("newreply");


// Get the pid and tid from the input.
$pid = $mybb->input['pid'];

// Get the pid and tid and replyto from the input.
$pid = $replyto = $mybb->input['pid'];

$tid = $mybb->input['tid'];

$tid = $mybb->input['tid'];

 
if(isset($mybb->input['replyto']))
{
$replyto = intval($mybb->input['replyto']);
}


// Edit a draft post.
$draft_pid = 0;


// Edit a draft post.
$draft_pid = 0;

Zeile 271Zeile 275
	}
else
{

	}
else
{

		$user_check = "p.ipaddress='{$session->ipaddress}'";

		$user_check = "p.ipaddress='".$db->escape_string($session->ipaddress)."'";

	}
if(!$mybb->input['savedraft'])
{

	}
if(!$mybb->input['savedraft'])
{

Zeile 469Zeile 473
			{
$unviewable_forums = "AND t.fid NOT IN ({$unviewable_forums})";
}

			{
$unviewable_forums = "AND t.fid NOT IN ({$unviewable_forums})";
}

			if(is_moderator($fid))

			if(is_moderator($fid) == "yes")

			{
$visible_where = "AND p.visible != 2";
}

			{
$visible_where = "AND p.visible != 2";
}

Zeile 723Zeile 727
	if($forumpermissions['canpostattachments'] != "no")
{
$attachcount = 0;

	if($forumpermissions['canpostattachments'] != "no")
{
$attachcount = 0;

		if($mybb->input['action'] == "editdraft")

		if($mybb->input['action'] == "editdraft" || ($mybb->input['tid'] && $mybb->input['pid']))

		{
$attachwhere = "pid='$pid'";
}

		{
$attachwhere = "pid='$pid'";
}

Zeile 754Zeile 758
		}
$query = $db->simple_select(TABLE_PREFIX."attachments", "SUM(filesize) AS ausage", "uid='".$mybb->user['uid']."'");
$usage = $db->fetch_array($query);

		}
$query = $db->simple_select(TABLE_PREFIX."attachments", "SUM(filesize) AS ausage", "uid='".$mybb->user['uid']."'");
$usage = $db->fetch_array($query);

		if($usage['ausage'] > ($mybb->usergroup['attachquota']*1000) && $mybb->usergroup['attachquota'] != 0)

		if($usage['ausage'] > ($mybb->usergroup['attachquota']*1024) && $mybb->usergroup['attachquota'] != 0)

		{
$noshowattach = 1;
}

		{
$noshowattach = 1;
}

Zeile 764Zeile 768
		}
else
{

		}
else
{

			$friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1000);

			$friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1024);

		}
$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_quota = sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);

		}
$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_quota = sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);