<?php /** * 删除主机记录 */ if (!defined("PMX_ENTRANCE")) { header("HTTP/1.0 404 Not Found"); exit; } header('Content-Type: text/html; charset=utf-8'); if (!pmx_validate_token()) { die("Error: Token is incorrect."); } $sid = isset($_GET["sid"]) ? $_GET["sid"] : ""; $pmxHostLog = new pmxHostLog(); if ($pmxHostLog->delLogBySID($sid)) { echo esc_html("Success: You have deleted session successful."); }
if (in_array($mid, $mid_deny)) { json_out(0, "The module you have selected is only for project."); } /** * 模块是否存在 */ if (!(new pmxModule())->isExistID($mid)) { json_out(0, "The module id is non-existent."); } $mconfig_sys = (new pmxModule())->getConfig($mid); // 模块的参数 /** * 校验用户提交的模块参数是否完整 */ if (validate_addcommand_mod_config($mconfig, $mconfig_sys)) { $pmxHostLog = new pmxHostLog(); $hostLogSaltID = $pmxHostLog->newSaltID(); /** * 命令的名字 */ $modDetail = (new pmxModule())->getDetail($mid); $cname = "( " . $modDetail["name"] . " )"; if (count($mconfig) > 0) { $cname = "( " . $modDetail["name"] . " ) " . addcommand_cname_config($mconfig); } /** * 校正参数数据信息 */ $mconfig = correct_addcommand_mod_config($sid, $mconfig, $hostLogSaltID); // var_dump($mconfig); /**