Vergleich newthread.php - 1.00 - 1.11

  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$

 * $Id: newthread.php 926 2005-12-05 12:33:38Z chris $

 */

 */

 
define("KILL_GLOBALS", 1);


$templatelist = "newthread,previewpost,error_invalidforum,redirect_newthread,loginbox,changeuserbox,newthread_postpoll,posticons,attachment,newthread_postpoll,codebuttons,smilieinsert,error_nosubject";
$templatelist .= "posticons";


$templatelist = "newthread,previewpost,error_invalidforum,redirect_newthread,loginbox,changeuserbox,newthread_postpoll,posticons,attachment,newthread_postpoll,codebuttons,smilieinsert,error_nosubject";
$templatelist .= "posticons";

Zeile 85Zeile 86
	}
else
{

	}
else
{

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

		$username = htmlspecialchars_uni($mybb->input['username']);

	}
eval("\$loginbox = \"".$templates->get("loginbox")."\";");
}

	}
eval("\$loginbox = \"".$templates->get("loginbox")."\";");
}

Zeile 124Zeile 125
	if(!$mybb->input['submit'])
{
$mybb->input['action'] = "newthread";

	if(!$mybb->input['submit'])
{
$mybb->input['action'] = "newthread";

	}
}

	}
}

// Max images check
if($mybb->input['action'] == "do_newthread" && !$mybb->input['savedraft'])
{

// Max images check
if($mybb->input['action'] == "do_newthread" && !$mybb->input['savedraft'])
{

Zeile 144Zeile 145
		{
eval("\$maximageserror = \"".$templates->get("error_maxpostimages")."\";");
$mybb->input['action'] = "newthread";

		{
eval("\$maximageserror = \"".$templates->get("error_maxpostimages")."\";");
$mybb->input['action'] = "newthread";

		}

		}

	}
}

	}
}





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

$plugins->run_hooks("newthread_start");


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

$plugins->run_hooks("newthread_start");


	if($mybb->input['previewpost'] || $maximageserror)

	if($mybb->input['previewpost'] || $mybb->input['newattachment'] || $mybb->input['removeattachment']|| $maximageserror)

	{
$postoptions = $mybb->input['postoptions'];
if($postoptions['signature'] == "yes")

	{
$postoptions = $mybb->input['postoptions'];
if($postoptions['signature'] == "yes")

Zeile 165Zeile 166
			$postoptionschecked['emailnotify'] = "checked";
}
if($postoptions['disablesmilies'] == "yes")

			$postoptionschecked['emailnotify'] = "checked";
}
if($postoptions['disablesmilies'] == "yes")

		{

		{

			$postoptionschecked['disablesmilies'] = "checked";
}
if($postpoll == "yes")

			$postoptionschecked['disablesmilies'] = "checked";
}
if($postpoll == "yes")

Zeile 185Zeile 186
		if($post['smilieoff'] == "yes")
{
$postoptionschecked['disablesmilies'] = "checked";

		if($post['smilieoff'] == "yes")
{
$postoptionschecked['disablesmilies'] = "checked";

		}

		}

		$editdraftpid = "<input type=\"hidden\" name=\"pid\" value=\"$pid\" /><input type=\"hidden\" name=\"tid\" value=\"$tid\" />";
$icon = $post['icon'];
}

		$editdraftpid = "<input type=\"hidden\" name=\"pid\" value=\"$pid\" /><input type=\"hidden\" name=\"tid\" value=\"$tid\" />";
$icon = $post['icon'];
}

Zeile 216Zeile 217
		$post = $db->fetch_array($query);
if(!$mybb->user['uid'] || !$post['username'])
{

		$post = $db->fetch_array($query);
if(!$mybb->user['uid'] || !$post['username'])
{

			$post['username'] = $mybb->input['username'];

			$post['username'] = htmlspecialchars_uni($mybb->input['username']);

		}
else
{

		}
else
{

Zeile 225Zeile 226
		}
$previewmessage = $mybb->input['message'];
$post['message'] = $previewmessage;

		}
$previewmessage = $mybb->input['message'];
$post['message'] = $previewmessage;

		$post['subject'] = $subject;
$post['icon'] = $icon;

        $post['subject'] = $mybb->input['subject'];
$post['icon'] = $mybb->input['icon'];

		$post['smilieoff'] = $postoptions['disablesmilies'];
$post['dateline'] = time();


		$post['smilieoff'] = $postoptions['disablesmilies'];
$post['dateline'] = time();


Zeile 247Zeile 248

$postbit = makepostbit($post, 1);
eval("\$preview = \"".$templates->get("previewpost")."\";");


$postbit = makepostbit($post, 1);
eval("\$preview = \"".$templates->get("previewpost")."\";");

 
		$message = htmlspecialchars_uni($mybb->input['message']);
$subject = htmlspecialchars_uni($mybb->input['subject']);
}
if($mybb->input['newattachment'] || $mybb->input['removeattachment'])
{

		$message = htmlspecialchars_uni($mybb->input['message']);
$subject = htmlspecialchars_uni($mybb->input['subject']);
}

		$message = htmlspecialchars_uni($mybb->input['message']);
$subject = htmlspecialchars_uni($mybb->input['subject']);
}

Zeile 661Zeile 667
	{
$url = "polls.php?action=newpoll&tid=$tid&polloptions=".intval($mybb->input['numpolloptions']);
$lang->redirect_newthread .= $lang->redirect_newthread_poll;

	{
$url = "polls.php?action=newpoll&tid=$tid&polloptions=".intval($mybb->input['numpolloptions']);
$lang->redirect_newthread .= $lang->redirect_newthread_poll;

 
		$cache->updatestats();
updatethreadcount($tid);
updateforumcount($fid);

	}
elseif(!$visible)
{

	}
elseif(!$visible)
{