Dalexhd

ch_channels.php

Oct 25th, 2017
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. include_once 'include/config.php';
  3. include_once 'include/ts3admin.class.php';
  4.  
  5. function ch_channels()
  6. {
  7.     global $query;
  8.     global $config;
  9.  
  10.     $serverinfo = $query->getElement('data', $query->serverInfo());
  11.  
  12.     $kanaly = array();
  13.     $kanaly['channel_name'] = str_replace('[channels]', $serverinfo['virtualserver_channelsonline'], $config['ch_channels']['name']);
  14.     $query->channelEdit($config['ch_channels']['cid'], $kanaly);
  15.  
  16.     unset($query);
  17.     unset($config);
  18. }
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment