Hi.
we have a script to create cpanel accounts. It uses communication via socket, with php.
Example:
private function alterPasswordCpanel() {
$dadosAccountAdd = "POST /scripts/passwd?domain={$this->getUserClient()}&password={$this->getPassClient()} \r\n HTTP/1.0\r\n";
$dataAccountAdd .= "Host: Example \r\n";
$dataAccountAdd .= "Authorization: Basic " . $this->authorizationBasicString () . "\r\n\r\n";
$result = '';
$this->fPut ( $dataAccountAdd );
while ( ! feof ( $this->socket ) ) {
$result .= htmlspecialchars ( $this->fGets () );
}
echo '<hr>???'.$result.'???<hr>';
$this->fClose ();
}
I formatted the server. Before it worked perfectly, now displays the following message:
"Direct access denied. Please use the WHM interface to change the password."
Can anyone help me?



LinkBack URL
About LinkBacks
Reply With Quote









