parent
d084b8a1e2
commit
b2aaff63a2
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
header('Content-Type:application/javascript');
|
||||||
|
require_once __DIR__ . "/../include/language.php";
|
||||||
|
?>
|
||||||
|
var textShowMore = "<?php json_encode(tl($lang["index"]["showmore"])); ?>", textShowLess = "<?php json_encode(tl($lang["index"]["showless"])); ?>", statusOnline = "<?php json_encode(tl($lang["serverstatus"]["online"])); ?>", statusOffline = "<?php json_encode(tl($lang["serverstatus"]["offline"])); ?>", statusUptime = "<?php json_encode(tl($lang["serverstatus"]["uptime"])); ?>", statusVersion = "<?php json_encode(tl($lang["serverstatus"]["version"])); ?>", statusAvgping = "<?php json_encode(tl($lang["serverstatus"]["avgping"])); ?>", statusAvgpl = "<?php json_encode(tl($lang["serverstatus"]["avgpl"])); ?>";
|
@ -1,65 +1,65 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
Autor: Wruczek
|
Author: Wruczek
|
||||||
Kontakt:
|
Contact me:
|
||||||
TeamSpeak: ts.wruczek.top
|
TeamSpeak: ts.wruczek.top
|
||||||
E-mail: wruczekk@gmail.com
|
Email: wruczekk@gmail.com
|
||||||
Prześlij dotację: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9PL5J7ULZQYJQ
|
Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9PL5J7ULZQYJQ
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************* Konfiguracja generalna strony *************/
|
/************* General configuration *************/
|
||||||
|
|
||||||
$config["general"]["title"] = "TwojTS.PL"; // Tytuł strony - wyświetlany np. w menu i na pasku nawigacji
|
$config["general"]["title"] = "BestTS.NET"; // Website title - displayed in the menu
|
||||||
$config["general"]["theme"] = "superhero"; // Motyw strony - http://bootswatch.com/ (ALPHA)
|
$config["general"]["icon"] = "img/icon/icon-32.png"; // Website icon
|
||||||
$config["general"]["icon"] = "img/icon/icon-32.png"; // Ikona używana na pasku nawigacji
|
$config["general"]["subtitle"] = " - Best TeamSpeak server!"; // Website subtitle
|
||||||
$config["general"]["subtitle"] = " - Najlepszy serwer Teamspeak!"; // Dodatkowy tekst dodawany do tytułu na pasku przeglądarki
|
$config["general"]["desc"] = "Polski serwer TeamSpeak! Zapraszamy :)"; // Website description - displayed in Google search engine
|
||||||
$config["general"]["desc"] = "Polski serwer TeamSpeak! Zapraszamy :)"; // Opis strony - wyświetlany np. w wynikach wyszukiwarki Google
|
$config["general"]["newsDir"] = "config/news"; // News folder (relative to project folder)
|
||||||
$config["general"]["newsDir"] = "config/news"; // Folder z newsami (relatywnie do głównego folderu)
|
|
||||||
|
|
||||||
$config["general"]["enablehta"] = false; // Właczenie / wyłączenie dodatkowych usprawnień strony w htaccess (zalecane,
|
$config["general"]["enablehta"] = false; // Enable / Disable additional website features (recommended, but
|
||||||
// wymaga jednak aktualnej wersji Apache oraz włączenia htaccess oraz mod_rewrite)
|
// you need to have up-to-date version of Apache and install mod_rewrite)
|
||||||
|
// After setting to true, go into .htaccess file and uncomment 19 line
|
||||||
|
|
||||||
|
|
||||||
/********* Konfiguracja serwera TeamSpeak *********/
|
/********* TeamSpeak configuration *********/
|
||||||
|
|
||||||
$config['teamspeak']['host'] = '127.0.0.1'; // Adres serwera TeamSpeak
|
$config['teamspeak']['host'] = '127.0.0.1'; // TeamSpeak host address
|
||||||
$config['teamspeak']['login'] = 'serveradmin'; // Login konta Query
|
$config['teamspeak']['login'] = 'serveradmin'; // Login
|
||||||
$config['teamspeak']['password'] = 'pa$$word'; // Hasło konta Query
|
$config['teamspeak']['password'] = 'pa$$word'; // Password
|
||||||
$config['teamspeak']['server_port'] = 9987; // Port serwera TeamSpeak
|
$config['teamspeak']['server_port'] = 9987; // TeamSpeak server port
|
||||||
$config['teamspeak']['query_port'] = 10011; // Port Query
|
$config['teamspeak']['query_port'] = 10011; // Query port
|
||||||
$config['teamspeak']['displayip'] = 'ts.serwer.pl'; // IP wyświetlane na stronie i używane do połączeń
|
$config['teamspeak']['displayip'] = 'ts.server.net'; // IP shown to users and used for connections
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************* Dodatkowe linki na pasku nawigacji *************/
|
/************* Additional navigation links - you can link to your stuff *************/
|
||||||
|
|
||||||
$config["navlinks"] = array(
|
$config["navlinks"] = array(
|
||||||
// WZÓR: array("ikona", "tekst", "link") GDZIE ikona to nazwa ikony ze strony: http://fontawesome.io/icons/
|
// TEMPLATE: array("icon", "displayed text", "link"), ICON is an icon name from: http://fontawesome.io/icons/
|
||||||
array("fa-facebook-official", "Facebook", "https://facebook.com/najlepszytsXd"),
|
array("fa-facebook-official", "Facebook", "https://facebook.com/bestteamspeakXd"),
|
||||||
array("fa-comments", "Forum", "forum"),
|
array("fa-comments", "Forum", "forum"),
|
||||||
array("fa-shopping-cart", "Sklep", "sklep")
|
array("fa-shopping-cart", "Shop", "shop")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************* Konfiguracja listy administratorow *************/
|
/************* Adminlist configuration *************/
|
||||||
|
|
||||||
// ID grup wyświetlanych na liście administracji. Kolejność grup decyduje o kolejności wyświetlania na stronie
|
// ID of servergroups displayed as admins in Adminlist. Put it in the same way you want it to be displayed.
|
||||||
$config["adminlist"] = array(6, 17, 19);
|
$config["adminlist"] = array(6, 17, 19);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************* Konfiguracja panelu "kontakt" *************/
|
/************* Contact panel configuration *************/
|
||||||
|
|
||||||
// Ustaw $config['contact']['text'] = ''; by kompletnie wyłączyć wyświetlanie panelu
|
// Set $config['contact']['text'] = ''; to hide this panel
|
||||||
$config['contact']['title'] = 'Kontakt z właścicielem';
|
$config['contact']['title'] = 'Contact the staff';
|
||||||
$config['contact']['text'] = '
|
$config['contact']['text'] = '
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li>TeamSpeak: <span class="pullright">kanał <a href="ts3server://ts.wruczek.top?channel=Kana%C5%82y%20publiczne%2FPogaduchy%2FPogaduchy%205">Pomoc</a></span></li>
|
<li>TeamSpeak: <span class="pullright">channel <a href="ts3server://ts.wruczek.top?channel=Kana%C5%82y%20publiczne%2FPogaduchy%2FPogaduchy%205">Pomoc</a></span></li>
|
||||||
<li>Email: <span class="pullright"><a href="mailto:kontakt@email.com">konakt@email.com</a></span></li>
|
<li>Email: <span class="pullright"><a href="mailto:kontakt@email.com">konakt@email.com</a></span></li>
|
||||||
<li>GaduGadu: <span class="pullright"><a href="gg:49568758">49568758 <img src="https://status.gadu-gadu.pl/users/status.asp?id=49568758&styl=1"></a></span></li>
|
<li>GaduGadu: <span class="pullright"><a href="gg:123456789">123456789 <img src="https://status.gadu-gadu.pl/users/status.asp?id=49568758&styl=1"></a></span></li>
|
||||||
<li>Steam: <span class="pullright"><a href="http://steamcommunity.com/id/wruczek">Wruczek</a></span></li>
|
<li>Steam: <span class="pullright"><a href="http://steamcommunity.com/id/wruczek">Wruczek</a></span></li>
|
||||||
</ul>
|
</ul>
|
||||||
';
|
';
|
||||||
|
@ -0,0 +1,104 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* The english language for ts-website
|
||||||
|
* @copy Wruczek <wruczekk@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
$lang = array();
|
||||||
|
|
||||||
|
/************* General *************/
|
||||||
|
|
||||||
|
$lang["general"]["langcode"] = "en_GB";
|
||||||
|
$lang["general"]["scripterror"] = "An error occured! {0}: {1}";
|
||||||
|
|
||||||
|
/************* Navbar *************/
|
||||||
|
|
||||||
|
$lang["navbar"]["navigation"] = "Navigation";
|
||||||
|
|
||||||
|
$lang["navbar"]["viewer"] = "Server Viewer";
|
||||||
|
$lang["navbar"]["bans"] = "Ban List";
|
||||||
|
$lang["navbar"]["rules"] = "Server Rules";
|
||||||
|
|
||||||
|
$lang["navbar"]["connect"] = "Connect to server";
|
||||||
|
$lang["navbar"]["connecttooltip"] = "Click to connect to {0}";
|
||||||
|
|
||||||
|
|
||||||
|
/************* Footer *************/
|
||||||
|
|
||||||
|
$lang["footer"]["website"] = "Website";
|
||||||
|
$lang["footer"]["css"] = "CSS thanks to courtesy of";
|
||||||
|
$lang["footer"]["background"] = "background";
|
||||||
|
|
||||||
|
|
||||||
|
/************* Server status *************/
|
||||||
|
|
||||||
|
$lang["serverstatus"]["title"] = "Server status";
|
||||||
|
$lang["serverstatus"]["address"] = "Address";
|
||||||
|
$lang["serverstatus"]["loading"] = "Loading...";
|
||||||
|
|
||||||
|
$lang["serverstatus"]["online"] = "Online";
|
||||||
|
$lang["serverstatus"]["offline"] = "Offline";
|
||||||
|
$lang["serverstatus"]["uptime"] = "Uptime";
|
||||||
|
$lang["serverstatus"]["version"] = "Version";
|
||||||
|
$lang["serverstatus"]["avgping"] = "Average ping";
|
||||||
|
$lang["serverstatus"]["avgpl"] = "Average packet loss";
|
||||||
|
|
||||||
|
|
||||||
|
/************* Admin list *************/
|
||||||
|
|
||||||
|
$lang["adminlist"]["title"] = "Adminlist";
|
||||||
|
$lang["adminlist"]["emptygroup"] = "This group is empty";
|
||||||
|
$lang["adminlist"]["status"]["online"] = "Online";
|
||||||
|
$lang["adminlist"]["status"]["away"] = "Away";
|
||||||
|
$lang["adminlist"]["status"]["offline"] = "Offline";
|
||||||
|
$lang["adminlist"]["lastupdate"] = "Last update: {0}";
|
||||||
|
|
||||||
|
|
||||||
|
/************* Server viewer promo box (under adminlist and contact) *************/
|
||||||
|
|
||||||
|
$lang["svpb"]["title"] = "Server Viewer";
|
||||||
|
$lang["svpb"]["takealook"] = "Take a look »";
|
||||||
|
|
||||||
|
|
||||||
|
/************************************/
|
||||||
|
/************* SUBPAGES *************/
|
||||||
|
/************************************/
|
||||||
|
|
||||||
|
|
||||||
|
/************* News - index.php *************/
|
||||||
|
|
||||||
|
$lang["index"]["title"] = "News";
|
||||||
|
$lang["index"]["showmore"] = "Read more";
|
||||||
|
$lang["index"]["showless"] = "Show less";
|
||||||
|
|
||||||
|
$lang["index"]["errortitle"] = "Error: news directory has not been found!";
|
||||||
|
$lang["index"]["errorsubtitle"] = "Please make sure that directory location set in <code>config/config.php</code> is valid.";
|
||||||
|
|
||||||
|
|
||||||
|
/************* Server viewer - viewer.php *************/
|
||||||
|
|
||||||
|
$lang["viewer"]["title"] = "Server Viewer";
|
||||||
|
$lang["viewer"]["lastupdate"] = "Last update: {0}";
|
||||||
|
|
||||||
|
|
||||||
|
/************* Ban List - bans.php *************/
|
||||||
|
|
||||||
|
$lang["banlist"]["title"] = "Ban List";
|
||||||
|
$lang["banlist"]["datatablesurl"] = "//cdn.datatables.net/plug-ins/1.10.12/i18n/English.json";
|
||||||
|
$lang["banlist"]["emptylist"] = "BAN LIST IS EMPTY";
|
||||||
|
$lang["banlist"]["lastupdate"] = "Last update: {0}";
|
||||||
|
|
||||||
|
$lang["banlist"]["table"]["emptyreason"] = "(no reason set)";
|
||||||
|
$lang["banlist"]["table"]["permaban"] = "Never";
|
||||||
|
|
||||||
|
$lang["banlist"]["table"]["nickname"] = "Nick";
|
||||||
|
$lang["banlist"]["table"]["reason"] = "Reason";
|
||||||
|
$lang["banlist"]["table"]["bannedby"] = "Banned by";
|
||||||
|
$lang["banlist"]["table"]["bandate"] = "Ban date";
|
||||||
|
$lang["banlist"]["table"]["expires"] = "Expires";
|
||||||
|
|
||||||
|
/************* Rules - rules.php *************/
|
||||||
|
|
||||||
|
$lang["rules"]["title"] = "Server Rules";
|
||||||
|
$lang["rules"]["filenotfound"] = "Error: file <code>config/rules.md</code> has not been found!";
|
||||||
|
$lang["rules"]["readerror"] = "Error: cannot access the file <code>config/rules.md</code>!";
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 77 KiB |
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
header('Cache-control: private');
|
||||||
|
|
||||||
|
if (isset($_GET['lang'])) {
|
||||||
|
$langcode = $_GET['lang'];
|
||||||
|
|
||||||
|
$_SESSION['lang'] = $langcode;
|
||||||
|
|
||||||
|
setcookie('lang', $langcode, time() + (3600 * 24 * 60));
|
||||||
|
} else if (isset($_SESSION['lang'])) {
|
||||||
|
$langcode = $_SESSION['lang'];
|
||||||
|
} else if (isset($_COOKIE['lang'])) {
|
||||||
|
$langcode = $_COOKIE['lang'];
|
||||||
|
} else if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||||
|
$langcode = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
|
||||||
|
} else {
|
||||||
|
$langcode = "en";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!file_exists(getLanguagePath($langcode)))
|
||||||
|
$langcode = "en";
|
||||||
|
|
||||||
|
require_once getLanguagePath($langcode);
|
||||||
|
|
||||||
|
function getLanguagePath($langcode) {
|
||||||
|
return __DIR__ . '/../config/languages/lang.' . $langcode . '.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
function tl($pattern, $args = null) {
|
||||||
|
echo translate($pattern, $args);
|
||||||
|
}
|
||||||
|
|
||||||
|
function translate($pattern, $args = null) {
|
||||||
|
|
||||||
|
if(!$args) {
|
||||||
|
return $pattern;
|
||||||
|
}
|
||||||
|
|
||||||
|
$size = count($args);
|
||||||
|
|
||||||
|
for ($i = 0; $i < $size; $i++) {
|
||||||
|
$pattern = str_ireplace('{' . $i . '}', $args[$i], $pattern);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $pattern;
|
||||||
|
}
|
Loading…
Reference in new issue