[+] базовая реализация функционала API
This commit is contained in:
1 parent
30d612e52b
commit
7b183b6c32
14 files changed
+342
-11
No files matched your search
@@ -24,6 +24,10 @@
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
|
||||
global $USER;
|
||||
if ($USER->isAdmin() === false) {
|
||||
header('Location: ./');
|
||||
die();
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['execute']) && $_REQUEST['execute'] == 'Y') {
|
||||
$_SESSION['phpcmd_query'] = $_REQUEST['query'];
|
||||
|
||||
Reference in new issue
Block a user