i am just trying to run a check to make sure that the credentials used for cpanel work, however, my code is not working at all. it seems that i get the message "connected to cpanel" even if i am using credentials that i know are not working.
heres the code
like i said, no matter what i enter in the form, i get the same result - "connected to cpanel"Code:$cpCfg = array( 'cpanel'=>array( 'service'=>array( 'cpanel' => array( 'host' => $_POST['cpanel_host'], 'user' => $_POST['cpanel_username'], 'password' => $_POST['cpanel_password'], ) ) ) ); if ($cp = Cpanel_PublicAPI::getInstance($cpCfg)) { echo 'connected to cpanel'; } else { echo 'failed to connect to cpanel'; }



LinkBack URL
About LinkBacks
Reply With Quote




