Vergleich modcp.php - 1.6.2 - 1.6.6

  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: modcp.php 5120 2010-07-26 20:10:05Z RyanGordon $

 * $Id: modcp.php 5585 2011-09-13 13:14:41Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 46Zeile 46
$moderated_forums = array();
if($mybb->usergroup['issupermod'] != 1)
{

$moderated_forums = array();
if($mybb->usergroup['issupermod'] != 1)
{

	$query = $db->simple_select("moderators", "*", "id='{$mybb->user['uid']}' AND isgroup = '0'");

	$query = $db->simple_select("moderators", "*", "(id='{$mybb->user['uid']}' AND isgroup = '0') OR (id='{$mybb->user['usergroup']}' AND isgroup = '1')");

	while($forum = $db->fetch_array($query))
{
$flist .= ",'{$forum['fid']}'";

	while($forum = $db->fetch_array($query))
{
$flist .= ",'{$forum['fid']}'";

Zeile 393Zeile 393
		FROM ".TABLE_PREFIX."moderatorlog l
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=l.uid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid)

		FROM ".TABLE_PREFIX."moderatorlog l
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=l.uid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid)

		WHERE 1=1 {$where}

		WHERE 1=1 {$where}{$tflist}

	");
$rescount = $db->fetch_field($query, "count");


	");
$rescount = $db->fetch_field($query, "count");


Zeile 439Zeile 439
		LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid)
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=l.fid)
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=l.pid)

		LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid)
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=l.fid)
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=l.pid)

		WHERE 1=1 {$where}

		WHERE 1=1 {$where}{$tflist}

		ORDER BY {$sortby} {$order}
LIMIT {$start}, {$perpage}
");

		ORDER BY {$sortby} {$order}
LIMIT {$start}, {$perpage}
");

Zeile 536Zeile 536
	$plugins->run_hooks("modcp_do_delete_announcement");

$db->delete_query("announcements", "aid='{$aid}'");

	$plugins->run_hooks("modcp_do_delete_announcement");

$db->delete_query("announcements", "aid='{$aid}'");

 
	$cache->update_forumsdisplay();


redirect("modcp.php?action=announcements", $lang->redirect_delete_announcement);
}


redirect("modcp.php?action=announcements", $lang->redirect_delete_announcement);
}

Zeile 544Zeile 545
{
$aid = intval($mybb->input['aid']);
$query = $db->simple_select("announcements", "aid, subject, fid", "aid='{$aid}'");

{
$aid = intval($mybb->input['aid']);
$query = $db->simple_select("announcements", "aid, subject, fid", "aid='{$aid}'");

 


	$announcement = $db->fetch_array($query);

	$announcement = $db->fetch_array($query);

 
	$announcement['subject'] = htmlspecialchars_uni($announcement['subject']);


if(!$announcement['aid'])
{


if(!$announcement['aid'])
{

Zeile 663Zeile 666
		
$plugins->run_hooks("modcp_do_new_announcement_end");


		
$plugins->run_hooks("modcp_do_new_announcement_end");


 
		$cache->update_forumsdisplay();

		redirect("modcp.php?action=announcements", $lang->redirect_add_announcement);
}
else

		redirect("modcp.php?action=announcements", $lang->redirect_add_announcement);
}
else

Zeile 941Zeile 945
		
$plugins->run_hooks("modcp_do_edit_announcement_end");


		
$plugins->run_hooks("modcp_do_edit_announcement_end");


 
		$cache->update_forumsdisplay();

		redirect("modcp.php?action=announcements", $lang->redirect_edit_announcement);
}
else

		redirect("modcp.php?action=announcements", $lang->redirect_edit_announcement);
}
else

Zeile 1222Zeile 1227
		{
foreach($threads_to_delete as $tid)
{

		{
foreach($threads_to_delete as $tid)
{

				$moderation->delete_thread($thread['tid']);

				$moderation->delete_thread($tid);

			}
log_moderator_action(array('tids' => $threads_to_delete), $lang->multi_delete_threads);
}

			}
log_moderator_action(array('tids' => $threads_to_delete), $lang->multi_delete_threads);
}

Zeile 1623Zeile 1628
	$errors = '';

// Validate the user and get any errors that might have occurred.

	$errors = '';

// Validate the user and get any errors that might have occurred.

	$userhandler->admin_override = true;

 
	if(!$userhandler->validate_user())
{
$errors = $userhandler->get_friendly_errors();

	if(!$userhandler->validate_user())
{
$errors = $userhandler->get_friendly_errors();