Can someone PLEASE tell me how i can call whmreq via a php script to return whether or not an account is suspended?
Thank You
Can someone PLEASE tell me how i can call whmreq via a php script to return whether or not an account is suspended?
Thank You
Jeremi C Bergman
You can check the .htaccess of the account.
FastServerManagement
24x7x365 CPanel Server Management & Monitoring only $29.00/month
http://www.FastServerManagement.com
sales@FastServerManagement.com 1-877-898-1423
Thank you very much! That seemed to work perfectly for me!!Originally posted by coastinc
You can check the .htaccess of the account.
PHP Code:function do_check_suspended($cp_username){
$handle = @fopen("/home2/".$cp_username."/public_html/.htaccess", "r");
$contents = '';
if($handle){
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}
if (strpos($contents,'suspended.page')===false)
return 0;
else
return 1;
}
Jeremi C Bergman