Skip to content

Commit

Permalink
Limit logs & Support group sync from modules (#3426)
Browse files Browse the repository at this point in the history
* Limit logs

* Support group sync from modules
  • Loading branch information
partydragen authored Sep 2, 2023
1 parent 4008dcd commit 055acb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/Core/pages/panel/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Made by Samerton
* https://github.com/NamelessMC/Nameless/
* NamelessMC version 2.0.0-pr9
* NamelessMC version 2.1.2
*
* License: MIT
*
Expand Down Expand Up @@ -74,7 +74,7 @@
}

$log_title = $language->get('admin', 'acp_logins');
$logs = DB::getInstance()->orderWhere('logs', 'action = \'acp_login\'', 'time', 'DESC')->results();
$logs = DB::getInstance()->orderWhere('logs', 'action = \'acp_login\'', 'time', 'DESC LIMIT 500')->results();

$cols = 3;
$col_titles = [
Expand Down Expand Up @@ -111,7 +111,7 @@
}

$log_title = $language->get('admin', 'template_changes');
$logs = DB::getInstance()->orderWhere('logs', 'action = \'acp_template_update\'', 'time', 'DESC')->results();
$logs = DB::getInstance()->orderWhere('logs', 'action = \'acp_template_update\'', 'time', 'DESC LIMIT 500')->results();

$cols = 4;
$col_titles = [
Expand Down Expand Up @@ -152,7 +152,7 @@
}

$log_title = $language->get('admin', 'email_logs');
$logs = DB::getInstance()->orderWhere('logs', 'action = \'acp_email_mass_message\'', 'time', 'DESC')->results();
$logs = DB::getInstance()->orderWhere('logs', 'action = \'acp_email_mass_message\'', 'time', 'DESC LIMIT 500')->results();

$cols = 3;
$col_titles = [
Expand Down Expand Up @@ -188,7 +188,7 @@
}

$log_title = $language->get('admin', 'group_sync_logs');
$logs_set = DB::getInstance()->orderWhere('logs', 'action = \'discord_role_set\' OR action = \'mc_group_sync_set\' ', 'time', 'DESC')->results();
$logs_set = DB::getInstance()->orderWhere('logs', 'action LIKE \'%_role_set\' OR action LIKE \'%_group_set\'OR action = \'mc_group_sync_set\' ', 'time', 'DESC LIMIT 500')->results();

$cols = 5;
$col_titles = [
Expand Down Expand Up @@ -246,7 +246,7 @@
}

$log_title = $language->get('admin', 'all_logs');
$logs = DB::getInstance()->orderWhere('logs', 'id <> 0', 'time', 'DESC')->results();
$logs = DB::getInstance()->orderWhere('logs', 'id <> 0', 'time', 'DESC LIMIT 500')->results();

$cols = 5;
$col_titles = [
Expand Down

0 comments on commit 055acb3

Please sign in to comment.