feat: mass account tool, mass teleport tool (#209)

* feat: mass account coins, premdays, points. mass teleport town, position

* fix: tab
This commit is contained in:
Gabriel Pedro
2022-12-01 03:34:30 -04:00
committed by GitHub
parent 20638f430a
commit 269ca501f1
6 changed files with 463 additions and 6 deletions

View File

@@ -10,18 +10,24 @@
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Tools';
$tool = $_GET['tool'];
if (!isset($tool)) {
if (!isset($_GET['tool'])) {
echo 'Tool not set.';
return;
}
$tool = $_GET['tool'];
if (preg_match("/[^A-z0-9_\-]/", $tool)) {
echo 'Invalid tool.';
return;
}
$file = BASE . 'admin/pages/tools/' . $tool . '.php';
if (!@file_exists($file))
$file = SYSTEM . 'pages/admin/tools/' . $tool . '.php';
if (@file_exists($file)) {
require $file;
return;
}
echo 'Tool <strong>' . $tool . '</strong> not found.';
?>