From 9fadba7d07513ca47439ca3ca78c94cbaef81d1b Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 3 Feb 2023 12:14:36 +0100 Subject: [PATCH] Move mass_* pages to correct folder --- .../admin/tools/account.php => admin/pages/mass_account.php | 0 .../admin/tools/teleport.php => admin/pages/mass_teleport.php | 0 admin/pages/tools.php | 2 +- admin/template/menus.php | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename system/pages/admin/tools/account.php => admin/pages/mass_account.php (100%) rename system/pages/admin/tools/teleport.php => admin/pages/mass_teleport.php (100%) diff --git a/system/pages/admin/tools/account.php b/admin/pages/mass_account.php similarity index 100% rename from system/pages/admin/tools/account.php rename to admin/pages/mass_account.php diff --git a/system/pages/admin/tools/teleport.php b/admin/pages/mass_teleport.php similarity index 100% rename from system/pages/admin/tools/teleport.php rename to admin/pages/mass_teleport.php diff --git a/admin/pages/tools.php b/admin/pages/tools.php index 4992b7f9..fa75d750 100644 --- a/admin/pages/tools.php +++ b/admin/pages/tools.php @@ -21,7 +21,7 @@ if (preg_match("/[^A-z0-9_\-]/", $tool)) { return; } -$file = SYSTEM . 'pages/admin/tools/' . $tool . '.php'; +$file = ADMIN . 'tools/' . $tool . '.php'; if (@file_exists($file)) { require $file; diff --git a/admin/template/menus.php b/admin/template/menus.php index 5f8c1f10..460c03dd 100644 --- a/admin/template/menus.php +++ b/admin/template/menus.php @@ -34,8 +34,8 @@ $menus = [ ], ['name' => 'Tools', 'icon' => 'tools', 'order' => 100, 'link' => [ - ['name' => 'Mass Account Actions', 'link' => 'tools&tool=account', 'order' => 10], - ['name' => 'Mass Teleport Actions', 'link' => 'tools&tool=teleport', 'order' => 20], + ['name' => 'Mass Account Actions', 'link' => 'mass_account', 'icon' => 'globe', 'order' => 10], + ['name' => 'Mass Teleport Actions', 'link' => 'mass_teleport', 'icon' => 'globe', 'order' => 20], ['name' => 'Notepad', 'link' => 'notepad', 'icon' => 'marker', 'order' => 30], ['name' => 'phpinfo', 'link' => 'phpinfo', 'icon' => 'server', 'order' => 40], ],