Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once 'include/config.php';
- include_once 'include/ts3admin.class.php';
- function autoregister()
- {
- global $query;
- global $config;
- $users = $query->getElement('data',$query->clientList('-groups -voice -away -times -uid'));
- foreach($users as $client)
- {
- $to_time = time();
- $from_time = $client['client_created'];
- $time = round(abs($to_time - $from_time) / 60,2);
- if($time > $config['autoregister']['time'])
- {
- $query->serverGroupAddClient($config['autoregister']['group'], $client['client_database_id']);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment