} if ($modop == "terminate") { check_token("WHMCS.admin.default"); $result = ServerTerminateAccount($id); wSetCookie("ModCmdResult", $result); redir("userid=" . $userid . "&id=" . $id . "&act=terminate&ajaxupdate=1"); } if ($modop == "changepackage") { check_token("WHMCS.admin.default"); $result = ServerChangePackage($id); wSetCookie("ModCmdResult", $result); redir("userid=" . $userid . "&id=" . $id . "&act=updown&ajaxupdate=1"); } if ($modop == "changepw") { check_token("WHMCS.admin.default"); $result = ServerChangePassword($id); wSetCookie("ModCmdResult", $result); redir("userid=" . $userid . "&id=" . $id . "&act=pwchange&ajaxupdate=1"); } if ($modop == "custom") { check_token("WHMCS.admin.default"); $result = ServerCustomFunction($id, $ac); if (substr($result, 0, 9) == "redirect|") { exit($result); } wSetCookie("ModCmdResult", $result); redir("userid=" . $userid . "&id=" . $id . "&act=custom&ajaxupdate=1"); } if (in_array($whmcs->get_req_var("act"), array("create", "suspend", "unsuspend", "terminate", "updown", "pwchange", "custom"))) { if ($result = wGetCookie("ModCmdResult")) { if ($result != "success") {
* @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ if (!defined("WHMCS")) { exit("This file cannot be accessed directly"); } if (!function_exists("ServerChangePassword")) { require ROOTDIR . "/includes/modulefunctions.php"; } $serviceid = isset($_POST['serviceid']) ? $_POST['serviceid'] : $_POST['accountid']; $result = select_query("tblhosting", "packageid", array("id" => $serviceid)); $data = mysql_fetch_array($result); $packageid = $data['packageid']; if (!$packageid) { $apiresults = array("result" => "error", "message" => "Service ID Not Found"); return false; } if ($servicepassword) { update_query("tblhosting", array("password" => encrypt($servicepassword)), array("id" => $serviceid)); } $result = ServerChangePassword($serviceid); if ($result == "success") { $apiresults = array("result" => "success"); return 1; } $apiresults = array("result" => "error", "message" => $result);