1 | <?php
|
---|
2 | echo "<center><h3>TeamSpeak Server Heroes of Fantasy :</h3></center>";
|
---|
3 | echo "<table align=\"center\" border=\"0\"><td>";
|
---|
4 |
|
---|
5 | // The code between the 2 lines below turns on PHPs error handlers.
|
---|
6 | // Uncomment it for debugging purposes, but leave commented in live
|
---|
7 | // environments. Having your script running in a live environment with the
|
---|
8 | // error handlers turned on, decreases your sites security as a warning may
|
---|
9 | // reveal information used to exploit security holes in your site.
|
---|
10 | //================== BEGIN OF ERROR REPORTING CODE ====================
|
---|
11 | //echo("<span style=\"color: #dd0000; font-weight: bold\">Error reporting ");
|
---|
12 | //echo("is currently on. Turn it off in live environments !</span><br><br>\n");
|
---|
13 | //error_reporting(E_ALL);
|
---|
14 | //ini_set("display_errors", "1");
|
---|
15 | //ini_set("display_startup_errors", "1");
|
---|
16 | //ini_set("ignore_repeated_errors", "0");
|
---|
17 | //ini_set("ignore_repeated_source", "0");
|
---|
18 | //ini_set("report_memleaks", "1");
|
---|
19 | //ini_set("track_errors", "1");
|
---|
20 | //ini_set("html_errors", "1");
|
---|
21 | //ini_set("warn_plus_overloading", "1");
|
---|
22 | //================== END OF ERROR REPORTING CODE ======================
|
---|
23 |
|
---|
24 | // Load the Teamspeak Display:
|
---|
25 | require("inc/teamspeakdisplay/teamspeakdisplay.php");
|
---|
26 |
|
---|
27 | // Get the default settings
|
---|
28 | $settings = $teamspeakDisplay->getDefaultSettings();
|
---|
29 |
|
---|
30 | //================== BEGIN OF CONFIGURATION CODE ======================
|
---|
31 |
|
---|
32 | // Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE
|
---|
33 | // PORT NUMBER):
|
---|
34 | $settings["serveraddress"] = "game.zdechov.net";
|
---|
35 |
|
---|
36 | // If your you use another port than 8767 to connect to your teamspeak
|
---|
37 | // server using a teamspeak client, then uncomment the line below and
|
---|
38 | // set the correct teamspeak port:
|
---|
39 | //$settings["serverudpport"] = 8767;
|
---|
40 |
|
---|
41 | // If your teamspeak server uses another query port than 51234, then
|
---|
42 | // uncomment the line below and set the teamspeak query port of your
|
---|
43 | // server (look in the server.ini of your teamspeak server for this
|
---|
44 | // portnumber):
|
---|
45 | //$settings["serverqueryport"] = 51234;
|
---|
46 |
|
---|
47 | // If you want to limit the display to only one channel including it's
|
---|
48 | // players and subchannels, uncomment the following line and set the
|
---|
49 | // exact name of the channel. This feature is case-sensitive!
|
---|
50 | //$settings["limitchannel"] = "";
|
---|
51 |
|
---|
52 | // If your teamspeak server uses another set of forbidden nickname
|
---|
53 | // characters than "()[]{}" (look in your server.ini for this setting),
|
---|
54 | // then uncomment the following line and set the correct set of
|
---|
55 | // forbidden nickname characters:
|
---|
56 | //$settings["forbiddennicknamechars"] = "()[]{}";
|
---|
57 |
|
---|
58 | //================== END OF CONFIGURATION CODE ========================
|
---|
59 |
|
---|
60 | // Is the script improperly configured?
|
---|
61 | if ($settings["serveraddress"] == "") { die("You need to configure this script as described inside the CONFIGURATION CODE block in " . $_SERVER["PHP_SELF"] . "<br>\n"); }
|
---|
62 | // Display the Teamspeak server
|
---|
63 | $teamspeakDisplay->displayTeamspeakEx($settings);
|
---|
64 |
|
---|
65 | echo "</td></table>";
|
---|
66 | ?>
|
---|