whmcs sinusbot

bcyber

Member
Mar 27, 2018
37
1
40
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
Oct 10, 2015
447
848
208
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
 

Pyton

Member
Aug 18, 2016
2
0
33
Thx @Alligatoras,
To mutch dudes that are thinking they are smart because they used a script some one else made.
That are crying every where after stuff but chaire anything back when they find some thing or when it's them turn to do it.
I feel like at school when they cry every where after help and when they have/know some thing they ceep it for them self and are acting like bosses.
LMFAO
 
Last edited by a moderator:
Top