Ignore:
Timestamp:
Mar 21, 2010, 5:15:32 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizovány informace o teamspeaku.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/teamspeak.php

    r625 r698  
    22
    33echo('<table class="SimpleTable"><tr><td>');
    4 echo('<h4>TeamSpeak server</h4>');
     4echo('<h4>TeamSpeak3 server</h4>');
    55echo('Adresa pro připojení: '.$Config['Web']['WoWServerAddr'].'<br /><br />');
     6echo('Klienta stahujte z <a href="http://www.teamspeak.com/?page=downloads">oficiálních stránek</a><br/>');
    67
    7   // The code between the 2 lines below turns on PHPs error handlers.
    8   // Uncomment it for debugging purposes, but leave commented in live
    9   // environments. Having your script running in a live environment with the
    10   // error handlers turned on, decreases your sites security as a warning may
    11   // reveal information used to exploit security holes in your site.
    12   //================== BEGIN OF ERROR REPORTING CODE ====================
    13   //echo("<span style=\"color: #dd0000; font-weight: bold\">Error reporting ");
    14   //echo("is currently on. Turn it off in live environments !</span><br><br>\n");
    15   //error_reporting(E_ALL);
    16   //ini_set("display_errors", "1");
    17   //ini_set("display_startup_errors", "1");
    18   //ini_set("ignore_repeated_errors", "0");
    19   //ini_set("ignore_repeated_source", "0");
    20   //ini_set("report_memleaks", "1");
    21   //ini_set("track_errors", "1");
    22   //ini_set("html_errors", "1");
    23   //ini_set("warn_plus_overloading", "1");
    24   //================== END OF ERROR REPORTING CODE ======================
    25  
    26   // Load the Teamspeak Display:
    27   require('inc/teamspeakdisplay/teamspeakdisplay.php');
    28   require('inc/code.php');
    29  
    30   // Get the default settings
    31   $settings = $teamspeakDisplay->getDefaultSettings();
    32  
    33   //================== BEGIN OF CONFIGURATION CODE ======================
    34  
    35   // Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE
    36   // PORT NUMBER):
    37   $settings['serveraddress'] = $Config['Web']['WoWServerAddr'];
    38  
    39   // If your you use another port than 8767 to connect to your teamspeak
    40   // server using a teamspeak client, then uncomment the line below and
    41   // set the correct teamspeak port:
    42   //$settings["serverudpport"] = 8767;
    43  
    44   // If your teamspeak server uses another query port than 51234, then
    45   // uncomment the line below and set the teamspeak query port of your
    46   // server (look in the server.ini of your teamspeak server for this
    47   // portnumber):
    48   //$settings["serverqueryport"] = 51234;
    49  
    50   // If you want to limit the display to only one channel including it's
    51   // players and subchannels, uncomment the following line and set the
    52   // exact name of the channel. This feature is case-sensitive!
    53   //$settings["limitchannel"] = "";
    54  
    55   // If your teamspeak server uses another set of forbidden nickname
    56   // characters than "()[]{}" (look in your server.ini for this setting),
    57   // then uncomment the following line and set the correct set of
    58   // forbidden nickname characters:
    59   //$settings["forbiddennicknamechars"] = "()[]{}";
    60  
    61   //================== END OF CONFIGURATION CODE ========================
    62  
    63   // Is the script improperly configured?
    64   if($settings['serveraddress'] == '')
    65   {
    66     die('You need to configure this script as described inside the CONFIGURATION CODE block in '.$_SERVER['PHP_SELF'].'<br>'."\n");
    67   }
    68   // Display the Teamspeak server
    69   $teamspeakDisplay->displayTeamspeakEx($settings);
     8/*require_once("/home/chronos/www/dev/wow/trunk/tsstatus/tsstatus.php");
     9$tsstatus = new TSStatus('heroesoffantasy.cz', 10011, 1);
     10$tsstatus->imagePath = '/dev/wow/trunk/tsstatus/img/';
     11$tsstatus->showNicknameBox = true;
     12$tsstatus->showPasswrodBox = false;
     13$tsstatus->decodeUTF8 = false;
     14$tsstatus->timeout = 2;
     15$tsstatus->setLoginPassword('sss', '');
     16echo($tsstatus->render());
     17*/
    7018
    7119echo('</td></tr></table>');
Note: See TracChangeset for help on using the changeset viewer.