LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Kloxo Community Support » API and Integration » whmcs module status and questions
whmcs module status and questions [message #95656] Thu, 01 March 2012 06:55 Go to next message
com2 is currently offline com2  Spain
Messages: 1120
Registered: August 2007
Location: Spain
Senior Master
Developer
I have little clients and up to now I never set up whmcs module for kloxo. Before I go through the trouble of doing that I just wanted to make sure.

First of all are there any known bugs or problems in combination with the latest version of Kloxo?

Then secondly I would like to know if the module will allow clients to change their Kloxo password through WHMCS?

Lastly I would like to know if somebody has considered integrating the Kloxo log-in with WHMCS. This would mean that the client can log-in to WHMCS and from there a link or button would allow him to open Kloxo without log-in prompt. Anybody got this working?
Re: whmcs module status and questions [message #95657 is a reply to message #95656] Thu, 01 March 2012 07:34 Go to previous messageGo to next message
jutaz is currently offline jutaz  Lithuania
Messages: 44
Registered: December 2011
Member
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'] . "&amp;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

Re: whmcs module status and questions [message #95671 is a reply to message #95657] Thu, 01 March 2012 14:11 Go to previous message
com2 is currently offline com2  Spain
Messages: 1120
Registered: August 2007
Location: Spain
Senior Master
Developer
OK thanks, I did not see that. I'll give the module a try then in a developer invironment and we'll see how far we get.
Previous Topic:API Questions
Next Topic:Add parked domain by api. How?
Goto Forum:
  


Current Time: Wed Jun 19 10:58:05 EDT 2013

Total time taken to generate the page: 0.03898 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software