Lid |
|
ik ben nu bezig met de CMD_API_GET_SESSION als ik het volgende doe
$this -> data = array (
'username' => $username,
'password' => $password,
'referer' => '/',
);
$this -> domain = $domain;
$this -> params = array();
$this -> url = $url;
$this -> setCookiePath($cookiePath);
$this -> setCommand('CMD_LOGIN');
$this -> executeCommand();
'username' => $username, 'password' => $password, 'referer' => '/', ); $this -> domain = $domain; $this -> params = array(); $this -> url = $url; $this -> setCookiePath($cookiePath); $this -> setCommand('CMD_LOGIN'); $this -> executeCommand();
En daarna stuur ik de CMD_API_GET_SESSION
Als ik een bestaand login mee geef krijg ik terug error=1
Stuur ik een verkeerde login krijg ik de Login pagina van Direct Admin te zien hoe kan dit :S ? |