Move admin pages part 2

This commit is contained in:
slawkens
2021-07-05 03:11:42 +02:00
parent a2a773d714
commit 7ab6b026fb
29 changed files with 1 additions and 1 deletions

27
admin/pages/tools.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
/**
* Tools
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2019 MyAAC
* @link https://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Tools';
$tool = $_GET['tool'];
if (!isset($tool)) {
echo 'Tool not set.';
return;
}
if (preg_match("/[^A-z0-9_\-]/", $tool)) {
echo 'Invalid tool.';
return;
}
$file = BASE . 'admin/pages/tools/' . $tool . '.php';
if (!@file_exists($file))
require $file;
?>