see if user in group

MohNzer

New Member
Jan 2, 2017
9
0
13
Hello.. i want this script
Name of the script: check if user in group
Functions of the script: when user go to website it check if he in group id 12 do thing else do another thing
Why do you want it: i want it to use in panel
 

XARON

get over here!
Restricted
Nov 24, 2016
162
161
118
<?php
/**
* Author: XARON
* For a script requests :)
*/
require_once('libraries/TeamSpeak3/TeamSpeak3.php');
try {
$config = array(
'host' => '127.0.0.1',
'queryName' => 'serveradmin',
'queryPassword' => '9v9o+Rmk',
'queryPort' => '10011',
'serverPort' => '9987',
'botName' => urlencode('BirUcIkiYedi'),
'serverGroups' => '6');
$connect = TeamSpeak3::factory('serverquery://'.$config['queryName'].':'.$config['queryPassword'].'@'.$config['host'].':'.$config['queryPort'].'/?server_port='.$config['serverPort'].'&nickname='.$config['botName']);

foreach($clients = $connect->clientList(array('client_servergroups' => $config['serverGroups'])) as $client){
array($client);
$expClients = explode(',', $client);

if(in_array('XAROИN', $expClients)) {
echo 'XARON have serveradmin permission';
}
}
}catch(Exception $e) {
echo '<span><b>Error '.$e->getCode().': </b>'.$e->getMessage().'</span></br>';
}

c75d19674e.png

cfe2693fcc.png

92dc8301f7.png
 
Top