teamspeak monitorig

Автор bredik~~~, 14 марта 2010, 20:58:44

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

bredik~~~

Привет всем, возник вопрос можно ли поставить мониторинг Teamspeak на портал
Powered by SMF 2.0 RC2 | SMF © 2006–2009, Simple Machines LLC
SimplePortal 2.3.1 © 2008-2009, SimplePortal

Drakonsa

Есть сервисы, отображающие статстику сервера ТС. При этом выдают небольшой html блок, обычно это картинка сама по себе. Ее можно запихнуть в блок портала с произвольным кодом.

bredik~~~

Цитата: Drakonsa от 14 марта 2010, 21:01:12
Есть сервисы, отображающие статстику сервера ТС. При этом выдают небольшой html блок, обычно это картинка сама по себе. Ее можно запихнуть в блок портала с произвольным кодом.
Спасибо за инфооо...)) а что за код?

Drakonsa

Можешь получить его тут: http://www.tsviewer.com/

bredik~~~

Цитата: Drakonsa от 14 марта 2010, 21:20:21
Можешь получить его тут: http://www.tsviewer.com/
<link href="TSStyle.css" rel="stylesheet" type="text/css">
<?php// SLAED 2.0 Lite Teamspeak Display Block v1.0// Copyright (C) 10th June 2006 hu'NT'er.nCode (aka HUNTERxp)// http://netsky.perm.ru//// Based on Teamspeak Display Preview Release 3// Copyright (C) 2005  Guido van Biemen (aka MrGuide@NL)//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA// or check http://www.gnu.org     if (isset($_GET['autorefresh'])) {          $autorefresh = $_GET['autorefresh'];     } else {          $autorefresh = 0;     }     if ($autorefresh == 1) {          echo("          <meta http-equiv=\"refresh\" content=\"10; URL=" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">\n");     }?>

<b> Всего On-Line:
<?php$ip= "";$port = "8767";$tPort = "51222";$out = "";function indexOf($str,$strChar) {if(strlen(strchr($str,$strChar))>0) {$position_num = strpos($str,$strChar) + strlen($strChar);return $position_num;} else {return -1;}}$out = "";$fp = fsockopen($ip, $tPort, $errno, $errstr, 30);if($fp) { fputs($fp, "sel ".$port."\n");fputs($fp, "si\n");fputs($fp, "quit\n");while(!feof($fp)) {$out .= fgets($fp, 1024);}$out = str_replace("[TS]", "", $out);$out = str_replace("OK", "", $out);$out = trim($out);$user = substr($out,indexOf($out,"server_currentusers="),strlen($out));$user = substr($user,0,indexOf($user,"server_currentchannels=")-strlen("server_currentchannels="));echo $user . "online";fclose($fp);} else {echo "offline";}?>

</b>
<?php// Load the Teamspeak Displayrequire("TSDisplay.php");// Obtain the default settings$settings = $teamspeakDisplay->getDefaultSettings();// Set you Teamspeak server details$settings["serveraddress"] = "";$settings["serverudpport"] = "8767";$settings["serverqueryport"] = "51222";// Display the Teamspeak server$teamspeakDisplay->displayTeamspeakEx($settings);     // Display autorefresh status and control link:     echo("<br><b>\n  ");     if ($autorefresh == 0) {          echo("Autorefresh: Off (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">Turn on</a>)<br>\n");     } else if ($autorefresh == 1) {          echo("Autorefresh: On (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=0\">Turn off</a>)<br>\n");     }?>

нашел поставил) вот тока не отображается сервак((( ип все вел )) добавил в БЛок с моим PHP говорит исправьте код!

bredik~~~

и мониторинги игровых серверов! cs, UT3 и т.д

Drakonsa

ip сервера укажи и там есть человеескийи js код.