// Any Admin User in WHMCS
$admin_user = "admin";
// The Hask Key in WHMCS
$hash_key = "callback_hash_from_Virtualizor/Configuration/Master_Settings";
// The Virtualizor Master IP
$connection_ip = "VirtualizorMasterServerIPHere";
...
// Is the request from a valid server ?
if($_SERVER['REMOTE_ADDR'] != $connection_ip){
virt_callback_die('<error>
ERROR: Connection from an INVALID IP !</error>');
}
// Does the KEY MATCH ?
if($hash != $hash_key){
virt_callback_die('<error>
ERROR: Your security HASH does not match</error>');
}
// Is it a valid
if(empty($vpsid) && $vpsid < 1){
virt_callback_die('<error>
ERROR: Invalid VPSID</error>');
Bookmarks