Hello
I have the auto sinusbot module.
So, what do you do for direct login without the user?
How can I?
on tpl
Tanks
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'] );
}
}
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>