Vergleich admin/modules/tools/adminlog.php - 1.8.6 - 1.8.20

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 42Zeile 42
	if($mybb->request_method == 'post')
{
$is_today = false;

	if($mybb->request_method == 'post')
{
$is_today = false;

 
		$mybb->input['older_than'] = $mybb->get_input('older_than', MyBB::INPUT_INT);

		if($mybb->input['older_than'] <= 0)
{
$is_today = true;
$mybb->input['older_than'] = 1;
}

		if($mybb->input['older_than'] <= 0)
{
$is_today = true;
$mybb->input['older_than'] = 1;
}

		$where = 'dateline < '.(TIME_NOW-($mybb->get_input('older_than', MyBB::INPUT_INT)*86400));

		$where = 'dateline < '.(TIME_NOW-($mybb->input['older_than']*86400));


// Searching for entries by a particular user
if($mybb->input['uid'])


// Searching for entries by a particular user
if($mybb->input['uid'])

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

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

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

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

	}

$module_options = array();

	}

$module_options = array();

Zeile 237Zeile 238
	{
$information = '';
$trow = alt_trow();

	{
$information = '';
$trow = alt_trow();

 
		$logitem['username'] = htmlspecialchars_uni($logitem['username']);

		$username = format_name($logitem['username'], $logitem['usergroup'], $logitem['displaygroup']);

$logitem['data'] = my_unserialize($logitem['data']);

		$username = format_name($logitem['username'], $logitem['usergroup'], $logitem['displaygroup']);

$logitem['data'] = my_unserialize($logitem['data']);

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

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

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

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

	}

$module_options = array();

	}

$module_options = array();

Zeile 486Zeile 488
			if(isset($lang->$detail_lang_string))
{
$lang_string = $detail_lang_string;

			if(isset($lang->$detail_lang_string))
{
$lang_string = $detail_lang_string;

 
			}
break;
case 'admin_log_tools_spamlog_prune': // Spam Log Pruning
if($logitem['data'][1] && !$logitem['data'][2])
{
$lang_string = 'admin_log_tools_spamlog_prune_user';
}
elseif($logitem['data'][2] && !$logitem['data'][1])
{
$lang_string = 'admin_log_tools_spamlog_prune_email';
}
elseif($logitem['data'][1] && $logitem['data'][2])
{
$lang_string = 'admin_log_tools_spamlog_prune_user_email';

			}
break;
// == USERS ==

			}
break;
// == USERS ==

Zeile 501Zeile 517
				$logitem['data'][0] = abs($logitem['data'][0]);
$lang_string .= '_group';
}

				$logitem['data'][0] = abs($logitem['data'][0]);
$lang_string .= '_group';
}

			break;
case 'admin_log_user_admin_permissions_delete': // deleting group/user admin permissions
if($logitem['data'][0] > 0)
{
// User
$lang_string .= '_user';
}
elseif($logitem['data'][0] < 0)
{
// Group
$logitem['data'][0] = abs($logitem['data'][0]);
$lang_string .= '_group';
}











			break;
case 'admin_log_user_admin_permissions_delete': // deleting group/user admin permissions
if($logitem['data'][0] > 0)
{
// User
$lang_string .= '_user';
}
elseif($logitem['data'][0] < 0)
{
// Group
$logitem['data'][0] = abs($logitem['data'][0]);
$lang_string .= '_group';
}
break;
case 'admin_log_user_awaiting_activation_activate':
if($logitem['data'][0] == 'deleted')
{
$lang_string .= '_deleted';
}
else
{
$lang_string .= '_activated';
}

			break;
case 'admin_log_user_banning_': // banning
if($logitem['data'][2] == 0)
{
$lang_string = 'admin_log_user_banning_add_permanent';

			break;
case 'admin_log_user_banning_': // banning
if($logitem['data'][2] == 0)
{
$lang_string = 'admin_log_user_banning_add_permanent';

			}

			}

			else
{
$logitem['data'][2] = my_date($mybb->settings['dateformat'], $logitem['data'][2]);

			else
{
$logitem['data'][2] = my_date($mybb->settings['dateformat'], $logitem['data'][2]);

Zeile 534Zeile 560
			else
{
$lang_string = 'admin_log_user_groups_join_requests_deny';

			else
{
$lang_string = 'admin_log_user_groups_join_requests_deny';

			}
break;

			}
break;

		case 'admin_log_user_users_inline_banned':
if($logitem['data'][1] == 0)
{

		case 'admin_log_user_users_inline_banned':
if($logitem['data'][1] == 0)
{

Zeile 551Zeile 577

$plugin_array = array('logitem' => &$logitem, 'lang_string' => &$lang_string);
$plugins->run_hooks("admin_tools_get_admin_log_action", $plugin_array);


$plugin_array = array('logitem' => &$logitem, 'lang_string' => &$lang_string);
$plugins->run_hooks("admin_tools_get_admin_log_action", $plugin_array);

 

foreach($logitem['data'] as $key => $value)
{
$logitem['data'][$key] = htmlspecialchars_uni($value);
}


if(isset($lang->$lang_string))
{


if(isset($lang->$lang_string))
{