File manager - Edit - /usr/local/cpanel/base/frontend/jupiter/cpguard/settings/actions.php
Back
<?php include_once dirname(__DIR__) . "/includes/init.php"; include_once $base_dir . '/classes/language.class.php'; include_once $base_dir . '/classes/api.class.php'; $lang = new Language('settings'); $name = isset($_POST['name']) ? htmlspecialchars(trim($_POST['name']), ENT_QUOTES, 'UTF-8') : ''; if (isset($_POST['value'])) { if (is_array($_POST['value'])) { $value = array_map(function($v) { return htmlspecialchars(trim($v), ENT_QUOTES, 'UTF-8'); }, $_POST['value']); } else { $value = htmlspecialchars(trim($_POST['value']), ENT_QUOTES, 'UTF-8'); } } else { $value = ''; } //$return = array('reponse' => 1); $api = new Api($current_user); $return = $api->request('updateSettings', [$name => $value]); echo json_encode($return);
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings