Vergleich admin/modules/tools/adminlog.php - 1.6.13 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 128Zeile 128
	$perpage = intval($mybb->input['perpage']);
if(!$perpage)
{

	$perpage = intval($mybb->input['perpage']);
if(!$perpage)
{

 
		if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)
{
$mybb->settings['threadsperpage'] = 20;
}


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


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


Zeile 211Zeile 216
		WHERE 1=1 {$where}
ORDER BY {$sortby} {$order}
LIMIT {$start}, {$perpage}

		WHERE 1=1 {$where}
ORDER BY {$sortby} {$order}
LIMIT {$start}, {$perpage}

	");

	");

	while($logitem = $db->fetch_array($query))
{
$information = '';

	while($logitem = $db->fetch_array($query))
{
$information = '';

Zeile 379Zeile 384
			break;
case 'admin_log_forum_management_copy': // Forum copy
if($logitem['data'][4])

			break;
case 'admin_log_forum_management_copy': // Forum copy
if($logitem['data'][4])

			{

			{

				$lang_string .= '_with_permissions';
}
break;
case 'admin_log_forum_management_': // add mod, permissions, forum orders

				$lang_string .= '_with_permissions';
}
break;
case 'admin_log_forum_management_': // add mod, permissions, forum orders

			// first parameter already set with action

			// first parameter already set with action

			$lang_string .= $logitem['data'][0];
if($logitem['data'][0] == 'orders' && $logitem['data'][1])
{
$lang_string .= '_sub'; // updating forum orders in a subforum

			$lang_string .= $logitem['data'][0];
if($logitem['data'][0] == 'orders' && $logitem['data'][1])
{
$lang_string .= '_sub'; // updating forum orders in a subforum

			}
break;

			}
break;

		case 'admin_log_forum_moderation_queue_': //moderation queue
// first parameter already set with action
$lang_string .= $logitem['data'][0];

		case 'admin_log_forum_moderation_queue_': //moderation queue
// first parameter already set with action
$lang_string .= $logitem['data'][0];

			break;

			break;

		// == HOME ==
// == STYLE ==
case 'admin_log_style_templates_delete_template': // deleting templates

		// == HOME ==
// == STYLE ==
case 'admin_log_style_templates_delete_template': // deleting templates

			// global template set
if($logitem['data'][2] == -1)

			// global template set
if($logitem['data'][2] == -1)

			{
$lang_string .= '_global';
}

			{
$lang_string .= '_global';
}

Zeile 409Zeile 414
			if($logitem['data'][2] == -1)
{
$lang_string .= '_global';

			if($logitem['data'][2] == -1)
{
$lang_string .= '_global';

			}

			}

			break;
// == TOOLS ==
case 'admin_log_tools_adminlog_prune': // Admin Log Pruning
if($logitem['data'][1] && !$logitem['data'][2])

			break;
// == TOOLS ==
case 'admin_log_tools_adminlog_prune': // Admin Log Pruning
if($logitem['data'][1] && !$logitem['data'][2])

			{

			{

				$lang_string = 'admin_log_tools_adminlog_prune_user';

				$lang_string = 'admin_log_tools_adminlog_prune_user';

			}

			}

			elseif($logitem['data'][2] && !$logitem['data'][1])
{
$lang_string = 'admin_log_tools_adminlog_prune_module';

			elseif($logitem['data'][2] && !$logitem['data'][1])
{
$lang_string = 'admin_log_tools_adminlog_prune_module';

			}
elseif($logitem['data'][1] && $logitem['data'][2])

			}
elseif($logitem['data'][1] && $logitem['data'][2])

			{
$lang_string = 'admin_log_tools_adminlog_prune_user_module';
}

			{
$lang_string = 'admin_log_tools_adminlog_prune_user_module';
}

Zeile 432Zeile 437
				$lang_string = 'admin_log_tools_modlog_prune_user';
}
elseif($logitem['data'][2] && !$logitem['data'][1])

				$lang_string = 'admin_log_tools_modlog_prune_user';
}
elseif($logitem['data'][2] && !$logitem['data'][1])

			{

			{

				$lang_string = 'admin_log_tools_modlog_prune_forum';
}
elseif($logitem['data'][1] && $logitem['data'][2])

				$lang_string = 'admin_log_tools_modlog_prune_forum';
}
elseif($logitem['data'][1] && $logitem['data'][2])

Zeile 442Zeile 447
			break;
case 'admin_log_tools_backupdb_backup': // Create backup
if($logitem['data'][0] == 'download')

			break;
case 'admin_log_tools_backupdb_backup': // Create backup
if($logitem['data'][0] == 'download')

			{

			{

				$lang_string = 'admin_log_tools_backupdb_backup_download';
}
$logitem['data'][1] = '...'.substr($logitem['data'][1], -20);
break;
case 'admin_log_tools_backupdb_dlbackup': // Download backup

				$lang_string = 'admin_log_tools_backupdb_backup_download';
}
$logitem['data'][1] = '...'.substr($logitem['data'][1], -20);
break;
case 'admin_log_tools_backupdb_dlbackup': // Download backup

			$logitem['data'][0] = '...'.substr($logitem['data'][0], -20);

			$logitem['data'][0] = '...'.substr($logitem['data'][0], -20);

			break;
case 'admin_log_tools_backupdb_delete': // Delete backup
$logitem['data'][0] = '...'.substr($logitem['data'][0], -20);

			break;
case 'admin_log_tools_backupdb_delete': // Delete backup
$logitem['data'][0] = '...'.substr($logitem['data'][0], -20);

Zeile 464Zeile 469
			}
break;
// == USERS ==

			}
break;
// == USERS ==

		case 'admin_log_user_admin_permissions_edit': // default/group/user admin permissions














		case 'admin_log_user_admin_permissions_edit': // editing default/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

			if($logitem['data'][0] > 0)
{
// User