Vergleich editpost.php - 1.4.2 - 1.4.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: editpost.php 4143 2008-08-22 02:47:25Z Tikitiki $

 * $Id: editpost.php 4280 2008-11-27 07:27:58Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 20Zeile 20

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


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

 

$plugins->run_hooks("editpost_start");


// No permission for guests
if(!$mybb->user['uid'])


// No permission for guests
if(!$mybb->user['uid'])

Zeile 219Zeile 221
		$modlogdata['tid'] = $tid;
if($firstpost)
{

		$modlogdata['tid'] = $tid;
if($firstpost)
{

			if($forumpermissions['candeletethreads'] == 1)

			if($forumpermissions['candeletethreads'] == 1 || is_moderator($fid, "candeleteposts"))

			{
delete_thread($tid);
mark_reports($tid, "thread");

			{
delete_thread($tid);
mark_reports($tid, "thread");

Zeile 233Zeile 235
		}
else
{

		}
else
{

			if($forumpermissions['candeleteposts'] == 1)

			if($forumpermissions['candeleteposts'] == 1 || is_moderator($fid, "candeleteposts"))

			{
// Select the first post before this
delete_post($pid, $tid);

			{
// Select the first post before this
delete_post($pid, $tid);

Zeile 315Zeile 317
		// Did the user choose to post a poll? Redirect them to the poll posting page.
if($mybb->input['postpoll'] && $forumpermissions['canpostpolls'])
{

		// Did the user choose to post a poll? Redirect them to the poll posting page.
if($mybb->input['postpoll'] && $forumpermissions['canpostpolls'])
{

			$url = "polls.php?action=newpoll&tid=$tid&polloptions=".$mybb->input['numpolloptions'];

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

			$lang->redirect_postedited = $lang->redirect_postedited_poll;
}
else if($visible == 0 && $first_post && !is_moderator($fid, "", $mybb->user['uid']))

			$lang->redirect_postedited = $lang->redirect_postedited_poll;
}
else if($visible == 0 && $first_post && !is_moderator($fid, "", $mybb->user['uid']))