Vergleich admin/modules/tools/modlog.php - 1.8.7 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 105Zeile 105
	");
while($user = $db->fetch_array($query))
{

	");
while($user = $db->fetch_array($query))
{

		$user_options[$user['uid']] = $user['username'];







		// Deleted Users
if(!$user['username'])
{
$user['username'] = htmlspecialchars_uni($lang->na_deleted);
}

$user_options[$user['uid']] = htmlspecialchars_uni($user['username']);

	}

$form = new Form("index.php?module=tools-modlog&action=prune", "post");

	}

$form = new Form("index.php?module=tools-modlog&action=prune", "post");

Zeile 121Zeile 127
	$buttons[] = $form->generate_submit_button($lang->prune_moderator_logs);
$form->output_submit_wrapper($buttons);
$form->end();

	$buttons[] = $form->generate_submit_button($lang->prune_moderator_logs);
$form->output_submit_wrapper($buttons);
$form->end();





	$page->output_footer();
}

	$page->output_footer();
}





if(!$mybb->input['action'])
{
$plugins->run_hooks("admin_tools_modlog_start");

$page->output_header($lang->mod_logs);


if(!$mybb->input['action'])
{
$plugins->run_hooks("admin_tools_modlog_start");

$page->output_header($lang->mod_logs);


	$page->output_nav_tabs($sub_tabs, 'mod_logs');


	$page->output_nav_tabs($sub_tabs, 'mod_logs');


	$perpage = $mybb->get_input('perpage', MyBB::INPUT_INT);
if(!$perpage)
{

	$perpage = $mybb->get_input('perpage', MyBB::INPUT_INT);
if(!$perpage)
{

Zeile 140Zeile 146
		{
$mybb->settings['threadsperpage'] = 20;
}

		{
$mybb->settings['threadsperpage'] = 20;
}

		



		$perpage = $mybb->settings['threadsperpage'];
}


		$perpage = $mybb->settings['threadsperpage'];
}


Zeile 202Zeile 208
	}

if($pagecnt > $pages)

	}

if($pagecnt > $pages)

	{
$pagecnt = 1;
}

	{
$pagecnt = 1;
}


if($pagecnt)
{


if($pagecnt)
{

Zeile 240Zeile 246
		$logitem['action'] = htmlspecialchars_uni($logitem['action']);
$logitem['dateline'] = my_date('relative', $logitem['dateline']);
$trow = alt_trow();

		$logitem['action'] = htmlspecialchars_uni($logitem['action']);
$logitem['dateline'] = my_date('relative', $logitem['dateline']);
$trow = alt_trow();

		$username = format_name($logitem['username'], $logitem['usergroup'], $logitem['displaygroup']);
$logitem['profilelink'] = build_profile_link($username, $logitem['uid'], "_blank");








		if($logitem['username'])
{
$username = format_name(htmlspecialchars_uni($logitem['username']), $logitem['usergroup'], $logitem['displaygroup']);
$logitem['profilelink'] = build_profile_link($username, $logitem['uid'], "_blank");
}
else
{
$username = $logitem['profilelink'] = $logitem['username'] = htmlspecialchars_uni($lang->na_deleted);
}

		if($logitem['tsubject'])
{
$information = "<strong>{$lang->thread}</strong> <a href=\"../".get_thread_link($logitem['tid'])."\" target=\"_blank\">".htmlspecialchars_uni($logitem['tsubject'])."</a><br />";

		if($logitem['tsubject'])
{
$information = "<strong>{$lang->thread}</strong> <a href=\"../".get_thread_link($logitem['tid'])."\" target=\"_blank\">".htmlspecialchars_uni($logitem['tsubject'])."</a><br />";

Zeile 267Zeile 280
				$information = "<strong>{$lang->announcement}</strong> <a href=\"../".get_announcement_link($data['aid'])."\" target=\"_blank\">".htmlspecialchars_uni($data['subject'])."</a>";
}
}

				$information = "<strong>{$lang->announcement}</strong> <a href=\"../".get_announcement_link($data['aid'])."\" target=\"_blank\">".htmlspecialchars_uni($data['subject'])."</a>";
}
}

 

$plugins->run_hooks("admin_tools_modlog_modlogs_result");


$table->construct_cell($logitem['profilelink']);
$table->construct_cell($logitem['dateline'], array("class" => "align_center"));


$table->construct_cell($logitem['profilelink']);
$table->construct_cell($logitem['dateline'], array("class" => "align_center"));

Zeile 280Zeile 295
	{
$table->construct_cell($lang->no_modlogs, array("colspan" => "5"));
$table->construct_row();

	{
$table->construct_cell($lang->no_modlogs, array("colspan" => "5"));
$table->construct_row();

	}

	}


$table->output($lang->mod_logs);


$table->output($lang->mod_logs);





	// Do we need to construct the pagination?
if($rescount > $perpage)

	// Do we need to construct the pagination?
if($rescount > $perpage)

	{

	{

		echo draw_admin_pagination($pagecnt, $perpage, $rescount, "index.php?module=tools-modlog&amp;perpage=$perpage&amp;uid={$mybb->input['uid']}&amp;fid={$mybb->input['fid']}&amp;sortby={$mybb->input['sortby']}&amp;order={$order}")."<br />";
}

		echo draw_admin_pagination($pagecnt, $perpage, $rescount, "index.php?module=tools-modlog&amp;perpage=$perpage&amp;uid={$mybb->input['uid']}&amp;fid={$mybb->input['fid']}&amp;sortby={$mybb->input['sortby']}&amp;order={$order}")."<br />";
}





	// Fetch filter options
$sortbysel[$mybb->input['sortby']] = "selected=\"selected\"";
$ordersel[$mybb->input['order']] = "selected=\"selected\"";

	// Fetch filter options
$sortbysel[$mybb->input['sortby']] = "selected=\"selected\"";
$ordersel[$mybb->input['order']] = "selected=\"selected\"";

Zeile 305Zeile 320
	");
while($user = $db->fetch_array($query))
{

	");
while($user = $db->fetch_array($query))
{

 
		// Deleted Users
if(!$user['username'])
{
$user['username'] = $lang->na_deleted;
}


		$selected = '';
if($mybb->input['uid'] == $user['uid'])
{
$selected = "selected=\"selected\"";
}

		$selected = '';
if($mybb->input['uid'] == $user['uid'])
{
$selected = "selected=\"selected\"";
}

		$user_options[$user['uid']] = $user['username'];

		$user_options[$user['uid']] = htmlspecialchars_uni($user['username']);

	}

$sort_by = array(

	}

$sort_by = array(