pacage change API

mrtz

New member
Joined
Sep 27, 2009
Messages
1
Hi,

anything can help me with pacage change from my site.
I want make, what my user can change package anytime.

Please corent my code.

public function changePlan ( $username, $package )
{
$this -> socket -> query ( '/CMD_MODIFY_USER',
array (
'package' => '$package',
'user' => '$username',
'save' => 'Save'

)
);

$result = $this -> socket -> fetch_parsed_body ( );

if ( $this -> socket -> get_status_code ( ) != 200 || !empty ( $result [ 'error' ] ) )
return false;
else
return true;
}


all connections ok, other functions user creat, suspend unsuspend work. :)
 
Back
Top