$aInt->gracefulExit("Invalid File to Delete"); } $title = $data['title']; $filename = $data['filename']; deleteFile($attachments_dir, $filename); delete_query("tblclientsfiles", array("id" => $id)); logActivity("Deleted Client File - Title: " . $title . " - User ID: " . $userid, $userid); redir("userid=" . $userid); } if ($action == "closeclient") { check_token("WHMCS.admin.default"); checkPermission("Edit Clients Details"); checkPermission("Edit Clients Products/Services"); checkPermission("Edit Clients Domains"); checkPermission("Manage Invoice"); closeClient($userid); redir("userid=" . $userid); exit; } if ($action == "deleteclient") { check_token("WHMCS.admin.default"); checkPermission("Delete Client"); run_hook("ClientDelete", array("userid" => $userid)); deleteClient($userid); redir("", "clients.php"); } if ($action == "savenotes") { check_token("WHMCS.admin.default"); checkPermission("Edit Clients Details"); update_query("tblclients", array("notes" => $adminnotes), array("id" => $userid)); logActivity("Client Summary Notes Updated - User ID: " . $userid, $userid);
} else { if (testIP($n) == FALSE) { // print something on the server, then echo the incoming // data to all of the clients in the $client array. if (DEBUG) { print "From {$remote_host[$i]}:{$remote_port[$i]}, client[{$i}]: {$n}\n"; } //socket_write($client[$i], "From client[$i]: $n\r\n"); $res = searchIP($n); socket_write($client[$i], "{$res}\r\n"); closeClient($i); } else { $res = help(); $res .= "Invalid query\n"; socket_write($client[$i], "{$res}\r\n"); closeClient($i); } } } } if (--$nready <= 0) { break; } } } } function help() { $help = "Enter a query in the following formats:\n\n"; $help .= "Query\t\tResult\n"; $help .= "-----\t\t------\n";
<?php /** * * @ 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("closeClient")) { require ROOTDIR . "/includes/clientfunctions.php"; } $result = select_query("tblclients", "id", array("id" => $clientid)); $data = mysql_fetch_array($result); if (!$data['id']) { $apiresults = array("result" => "error", "message" => "Client ID Not Found"); return 1; } closeClient($_REQUEST['clientid']); $apiresults = array("result" => "success", "clientid" => $_REQUEST['clientid']);