whmcs sinusbot

bcyber

VIP
Joined
Mar 27, 2018
Messages
32
Points
20
Age
22
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
378
Points
168
Age
29
Location
Germany
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
 

EisLeis

New Member
Joined
Aug 4, 2018
Messages
1
Points
6
Age
23
There is something better than SinusBot and Free
 

Pyton

Member
Joined
Aug 18, 2016
Messages
2
Points
33
Age
28
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