|
| Re: whmcs module status and questions [message #95657 is a reply to message #95656] |
Thu, 01 March 2012 07:34   |
|
use my decoded module, to search for those features. I know that last methos of lxadmin class file is for logging in to kloxo without login window. and yes, clients can change their password...
EDIT: here you are. Logi link
<?php function lxadmin_LoginLink($params)
{
if ($params['serversecure']) {
$protocol = "https";
$port = 7777;
} else {
$protocol = "http";
$port = 7778;
}
echo "<a href=\"" . $protocol . "://" . $params['serverip'] . ":" . $port . "/htmllib/phplib/?frm_clientname=" . $params['username'] . "&frm_password=" . $params['password'] . "\" target=\"_blank\" style=\"color:#cc0000\">login to LxAdmin </a>";
} ?>
Change password.
<?php function lxadmin_ChangePassword($params)
{
$serverip = $params['serverip'];
$serverusername = $params['serverusername'];
$serverpassword = $params['serverpassword'];
$secure = $params['serversecure'];
$username = $params['username'];
$password = $params['password'];
$lxHelper = new LxHelper($serverip, $serverusername, $serverpassword, $secure);
$json = $lxHelper->callLxApi("action=update" . "&subaction=password" . "&class=client" . "&name=" . $username . "&v-password=" . $password);
if ($json->return === "error") {
$result = $json->message;
} else {
$result = "success";
}
return $result;
} ?>
Hope this helps!
[Updated on: Thu, 01 March 2012 07:54] Report message to a moderator
|
|
|
|