Vergleich moderation.php - 1.6.0 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: moderation.php 5138 2010-07-28 18:31:24Z RyanGordon $

 * $Id: moderation.php 5587 2011-09-13 14:48:33Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 126Zeile 126
		}
else
{

		}
else
{

			moderation_redirect("moderation.php?action=delayedmoderation&tid={$tid}&my_post_key={$mybb->post_code}", $lang->redirect_delayed_moderation_cancelled);

			moderation_redirect("moderation.php?action=delayedmoderation&tid={$tid}&my_post_key={$mybb->post_code}", $lang->redirect_delayed_moderation_cancelled);

		}
break;
case "do_delayedmoderation":

		}
break;
case "do_delayedmoderation":

Zeile 2257Zeile 2257
				{
error_no_permission();
}

				{
error_no_permission();
}

				








$thread_options = unserialize($tool['threadoptions']);
if($thread_options['movethread'] && $forum_cache[$thread_options['movethread']]['type'] != "f")
{
error($lang->error_movetocategory);
}


				$custommod->execute(intval($mybb->input['action']), $tids);
$lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']);
log_moderator_action($modlogdata, $lang->custom_tool);

				$custommod->execute(intval($mybb->input['action']), $tids);
$lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']);
log_moderator_action($modlogdata, $lang->custom_tool);

Zeile 2282Zeile 2288
				{
error_no_permission();
}

				{
error_no_permission();
}

 

$thread_options = unserialize($tool['threadoptions']);
if($thread_options['movethread'] && $forum_cache[$thread_options['movethread']]['type'] != "f")
{
error($lang->error_movetocategory);
}


				$ret = $custommod->execute(intval($mybb->input['action']), $tid);
$lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']);
log_moderator_action($modlogdata, $lang->custom_tool);

				$ret = $custommod->execute(intval($mybb->input['action']), $tid);
$lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']);
log_moderator_action($modlogdata, $lang->custom_tool);

Zeile 2294Zeile 2307
				{
$lang->redirect_customtool_thread = $lang->sprintf($lang->redirect_customtool_thread, $tool['name']);
moderation_redirect(get_thread_link($thread['tid']), $lang->redirect_customtool_thread);

				{
$lang->redirect_customtool_thread = $lang->sprintf($lang->redirect_customtool_thread, $tool['name']);
moderation_redirect(get_thread_link($thread['tid']), $lang->redirect_customtool_thread);

				}
break;
}

				}
break;
}

			elseif($tool['type'] == 'p' && $mybb->input['modtype'] == 'inlinepost')
{
if($mybb->input['inlinetype'] == 'search')

			elseif($tool['type'] == 'p' && $mybb->input['modtype'] == 'inlinepost')
{
if($mybb->input['inlinetype'] == 'search')

Zeile 2304Zeile 2317
					$pids = getids($mybb->input['searchid'], 'search');
}
else

					$pids = getids($mybb->input['searchid'], 'search');
}
else

				{

				{

					$pids = getids($tid, 'thread');

					$pids = getids($tid, 'thread');

				}

				}

				
if(count($pids) < 1)

				
if(count($pids) < 1)

				{

				{

					error($lang->error_inline_nopostsselected);
}
if(!is_moderator_by_pids($pids))
{
error_no_permission();

					error($lang->error_inline_nopostsselected);
}
if(!is_moderator_by_pids($pids))
{
error_no_permission();

				}


				}


				// Get threads which are associated with the posts
$tids = array();
$options = array(

				// Get threads which are associated with the posts
$tids = array();
$options = array(

Zeile 2355Zeile 2368
				}

break;

				}

break;

			}
}

			}
}

		error_no_permission();
break;
}

		error_no_permission();
break;
}

Zeile 2395Zeile 2408
	global $db, $mybb;

$ids = array();

	global $db, $mybb;

$ids = array();

	















// Get any removed threads (after our user hit 'all')
$removed_ids = array();
$cookie = "inlinemod_".$type.$id."_removed";
if($mybb->cookies[$cookie])
{
$removed_ids = explode("|", $mybb->cookies[$cookie]);

if(!is_array($removed_ids))
{
$removed_ids = array();
}
}


	// "Select all Threads in this forum" only supported by forumdisplay and search
if($type == 'forum')
{
$query = $db->simple_select("threads", "tid", "fid='".intval($id)."'");
while($tid = $db->fetch_field($query, "tid"))
{

	// "Select all Threads in this forum" only supported by forumdisplay and search
if($type == 'forum')
{
$query = $db->simple_select("threads", "tid", "fid='".intval($id)."'");
while($tid = $db->fetch_field($query, "tid"))
{

 
			if(in_array($tid, $removed_ids))
{
continue;
}


			$ids[] = $tid;

			$ids[] = $tid;

		}

		}

	}
else if($type == 'search')
{
$query = $db->simple_select("searchlog", "*", "sid='".$db->escape_string($id)."' AND uid='{$mybb->user['uid']}'", 1);
$searchlog = $db->fetch_array($query);
if($searchlog['resulttype'] == 'posts')

	}
else if($type == 'search')
{
$query = $db->simple_select("searchlog", "*", "sid='".$db->escape_string($id)."' AND uid='{$mybb->user['uid']}'", 1);
$searchlog = $db->fetch_array($query);
if($searchlog['resulttype'] == 'posts')

		{

		{

			$ids = explode(',', $searchlog['posts']);

			$ids = explode(',', $searchlog['posts']);

		}

		}

		else

		else

		{

		{

			$ids = explode(',', $searchlog['threads']);

			$ids = explode(',', $searchlog['threads']);

 
		}

if(is_array($ids))
{
foreach($ids as $key => $tid)
{
if(in_array($tid, $removed_ids))
{
unset($ids[$key]);
}
}

		}
}


		}
}


Zeile 2425Zeile 2467
function clearinline($id, $type)
{
my_unsetcookie("inlinemod_".$type.$id);

function clearinline($id, $type)
{
my_unsetcookie("inlinemod_".$type.$id);

 
	my_unsetcookie("inlinemod_".$type.$id."_removed");

}

function extendinline($id, $type)

}

function extendinline($id, $type)

Zeile 2432Zeile 2475
	global $mybb;

my_setcookie("inlinemod_$type$id", '', TIME_NOW+3600);

	global $mybb;

my_setcookie("inlinemod_$type$id", '', TIME_NOW+3600);

 
	my_setcookie("inlinemod_$type$id_removed", '', TIME_NOW+3600);

}

/**

}

/**