From 358770c7e488b8b1b598c807ec0e45ed7c950298 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Fri, 1 Jul 2016 22:34:55 +0200 Subject: [PATCH] Stripped trailing spaces --- api/status.php | 10 +++++----- bans.php | 22 +++++++++++----------- config/config.template.php | 2 +- config/news/README.txt | 2 +- include/adminlist.php | 32 ++++++++++++++++---------------- include/footer.php | 2 +- include/header.php | 16 ++++++++-------- include/modulecheck.php | 24 ++++++++++++------------ include/tsutils.php | 4 ++-- js/status.js | 4 ++-- rules.php | 2 +- 11 files changed, 60 insertions(+), 60 deletions(-) diff --git a/api/status.php b/api/status.php index 2d4ffb6..52328ca 100644 --- a/api/status.php +++ b/api/status.php @@ -30,11 +30,11 @@ die ($serverstatus); function getResult() { try { $start = microtime(true); - + $tsstatus = getTeamspeakServerStatus(); - + $stop = microtime(true); - + return json_encode(array( "tsstatus" => $tsstatus, "generated" => date('d-m-Y H:i:s') @@ -58,9 +58,9 @@ function exception_error_handler($errno, $errstr, $errfile, $errline ) { } function getTeamspeakServerStatus() { - + $response = pingTeamspeakServerFromConfig(); - + if ($response) { return array( "success" => $response["virtualserver_status"]->toString() == "online", diff --git a/bans.php b/bans.php index 2bc3119..5a81d20 100644 --- a/bans.php +++ b/bans.php @@ -62,36 +62,36 @@ if (is_null($banlist)) { banList(); - + $output = ""; - + foreach ($bany as $ban) { - + if(!isset($ban['lastnickname'])) continue; - + $lastnickname = $ban['lastnickname']->toString(); $reason = $ban['reason']; $invokername = $ban['invokername']->toString(); $created = date('d-m-Y H:i:s', $ban['created']); $duration = $ban['duration']; - + if(empty($reason)) $reason = "(brak powodu)"; - + if($duration == 0) $expires = "Ban permanentny"; else $expires = date('d-m-Y H:i:s', $ban['created'] + $duration); - + $output .= "$lastnickname$reason$invokername$created$expires"; } - + return $output; } catch(TeamSpeak3_Exception $e) { if($e->getCode() == 1281) { @@ -100,7 +100,7 @@ function getBanlist() { return '

Wystąpił błąd ' . $e->getCode() . ': ' . $e->getMessage() . '

'; } } - + } diff --git a/config/config.template.php b/config/config.template.php index 5e32aca..bca6308 100644 --- a/config/config.template.php +++ b/config/config.template.php @@ -19,7 +19,7 @@ $config["general"]["newsDir"] = "config/news"; $config["general"]["contactEmail"] = "email@strona.pl"; // Twój email kontaktowy -$config["general"]["enablehta"] = false; // Właczenie / wyłączenie dodatkowych usprawnień strony w htaccess (zalecane, +$config["general"]["enablehta"] = false; // Właczenie / wyłączenie dodatkowych usprawnień strony w htaccess (zalecane, // wymaga jednak aktualnej wersji Apache oraz włączenia htaccess oraz mod_rewrite) diff --git a/config/news/README.txt b/config/news/README.txt index 7723afb..309c2eb 100644 --- a/config/news/README.txt +++ b/config/news/README.txt @@ -1,4 +1,4 @@ -Informacje na temat systemu newsów: +Informacje na temat systemu newsów: Jeśli chcesz, możesz dodawać, zmieniać oraz usuwać newsy w domyślnym podfolderze news ulokowanym w folderze config. Folder ten jest do zmiany w pliku config.php Aktualnie newsy są tworzone przy użyciu Markdown mieszanego z HTMLem. Może potem dodam jakiś panel jak mi się zachcę Xd diff --git a/include/adminlist.php b/include/adminlist.php index 047fb87..5aa1cd7 100644 --- a/include/adminlist.php +++ b/include/adminlist.php @@ -25,24 +25,24 @@ if (is_null($adminlist)) { function getAdminList() { global $config; - + $admingroups = $config["adminlist"]; $localIcons = array(100, 200, 300, 400, 500, 600); - + try { $tsAdmin = TeamSpeak3::factory(getTeamspeakURI(). "#no_query_clients"); - + $output = ""; - + foreach ($admingroups as $group) { - + if(!array_key_exists((string) $group, $tsAdmin->serverGroupList())) continue; - + $group = $tsAdmin->serverGroupGetById($group); - + $icon = ''; - + if($group["iconid"]) { if(!$group->iconIsLocal("iconid")) { $groupicon = getGroupIcon($tsAdmin, $group); @@ -54,33 +54,33 @@ function getAdminList() { $icon = ' '; } } - + $output .= "

$icon$group

"; - + $clients = $group->clientList(); - + if(empty($clients)) { $output .= '

Ta grupa jest pusta

'; continue; } - + foreach ($clients as $userInfo) { $user = getClientByDbid($tsAdmin, $userInfo['cldbid']); - + if(!$user) { $output .= '

' . $userInfo['client_nickname'] . 'Offline

'; continue; } - + $output .= '

' . '' . $user . '' . ($user['client_away'] ? 'Away' : 'Online') . '

'; } } - + return $output; } catch(TeamSpeak3_Exception $e) { return '

Wystąpił błąd ' . $e->getCode() . ': ' . $e->getMessage() . '

'; } - + } function getClientByDbid($tsAdmin, $cldbid) { diff --git a/include/footer.php b/include/footer.php index 35529db..07c84ad 100644 --- a/include/footer.php +++ b/include/footer.php @@ -1,6 +1,6 @@ - +