Hi.
I would like to know if the user copied/pasted the correct whm access key.
I am trying with this function:
I made this, because I found that in case of wrong whm key, it returns a big html data.Code:function hashOK() { $result = whmreq("/scripts2/showversion",CPANEL_HOST,CPANEL_USER,$this->getAccessHash(),0); if ((strlen($result)>0)&&(strlen($result)<25)) return true; else return false; }
The problem is that this request sometimes returns 0 even if the key is correct or even if it is wrong key.
Please tell me a sure way how can I verify the WHM key.
Thanks.
Paul



LinkBack URL
About LinkBacks
Reply With Quote




