<?php session_start(); $starttime = microtime(true); require_once '../other/config.php'; require_once '../ts3_lib/TeamSpeak3.php'; require_once '../lang.php'; require_once '../other/session.php'; if (!isset($_SESSION['tsuid'])) { $hpclientip = ip2long($_SERVER['REMOTE_ADDR']); set_session_ts3($hpclientip, $ts['voice'], $mysqlcon, $dbname); } require_once 'nav.php'; ?> <div id="page-wrapper"> <?php if (isset($err_msg)) { error_handling($err_msg, 3); } ?> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> Battle Area <div class="btn-group"> <a href="#myModal3" data-toggle="modal" class="btn btn-primary"> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> </a>
$ts3->selfUpdate(array('client_nickname' => $queryname)); } catch (Exception $e) { if ($slowmode == 1) { sleep(1); } try { $ts3->selfUpdate(array('client_nickname' => $queryname2)); } catch (Exception $e) { echo $lang['error'], $e->getCode(), ': ', $e->getMessage(); } } $hpclientip = ip2long($_SERVER['REMOTE_ADDR']); if ($slowmode == 1) { sleep(1); } set_session_ts3($hpclientip, $ts3); } catch (Exception $e) { echo $lang['error'], $e->getCode(), ': ', $e->getMessage(); $offline_status = array(110, 257, 258, 1024, 1026, 1031, 1032, 1033, 1034, 1280, 1793); if (in_array($e->getCode(), $offline_status)) { $_SESSION['tserror'] = "offline"; } } } require_once 'nav.php'; ?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading -->
$ts3->selfUpdate(array('client_nickname' => $queryname)); } catch (Exception $e) { if ($slowmode == 1) { sleep(1); } try { $ts3->selfUpdate(array('client_nickname' => $queryname2)); } catch (Exception $e) { echo $lang['error'], $e->getCode(), ': ', $e->getMessage(); } } if ($slowmode == 1) { sleep(1); } $hpclientip = ip2long($_SERVER['REMOTE_ADDR']); set_session_ts3($hpclientip, $ts3, $ts['voice']); } catch (Exception $e) { echo $lang['error'], $e->getCode(), ': ', $e->getMessage(); $offline_status = array(110, 257, 258, 1024, 1026, 1031, 1032, 1033, 1034, 1280, 1793); if (in_array($e->getCode(), $offline_status)) { $_SESSION['tserror'] = "offline"; } } } function human_readable_size($bytes) { $size = array(' B', ' KiB', ' MiB', ' GiB', ' TiB', ' PiB', ' EiB', ' ZiB', ' YiB'); $factor = floor((strlen($bytes) - 1) / 3); return sprintf("%.2f", $bytes / pow(1024, $factor)) . @$size[$factor]; } $sql = $mysqlcon->query("SELECT * FROM {$dbname}.stats_server");