whmcs sinusbot

ts3panel

New Member
Joined
Mar 27, 2018
Messages
30
Likes
1
Points
10
Age
22
#1
Hello

I have the auto sinusbot module.

So, what do you do for direct login without the user?

How can I?
Code:
$SinusbotAPI = new Sinusbot( 'http://' . $params['serverip'] . ':' . $ContainerPort);
        $SinusbotAPI->login( 'admin', 'foobar' );
        foreach ( $SinusbotAPI->getUsers() as $item ) {
            if ( $item['username'] == 'admin' ) {
                $passwordAdmin  = bin2hex( openssl_random_pseudo_bytes( 20 ) );
                $passwordClient = bin2hex( openssl_random_pseudo_bytes( 20 ) );
                $SinusbotAPI->addUser( 's-v', $passwordClient, 2147483647 );
                $SinusbotAPI->setUserPassword( $passwordAdmin, $item['id'] );
            }
        }
on tpl

Code:
<div class="row">
    <div class="col-sm-5">
     Domain
    </div>
    <div class="col-sm-7">
       <a href="http://{$domain}" target="_blank">{$domain}</a>
    
 
    </div>
</div>
Tanks
 

BIOS

Knowledge Seeker
VIP
Joined
Oct 10, 2015
Messages
353
Likes
564
Points
168
Age
29
Location
Germany
#3
i think the first code need to create an new php file and put in modules/servers

the secound one i dont know which tpl file he means
 

Top