Permalink
Browse files

Using Bootstrap pull right class + code format

  • Loading branch information...
1 parent 3f3baab commit f68c29cc04b3064dc70365c966829073d84fc20a @Wruczek committed Oct 31, 2016
Showing with 129 additions and 138 deletions.
  1. +1 −1 api/status.php
  2. +6 −9 bans.php
  3. +2 −2 css/navbar.css
  4. +4 −12 css/style.css
  5. +83 −80 css/theme.css
  6. +13 −14 include/adminlist.php
  7. +1 −1 include/footer.php
  8. +2 −2 include/header.php
  9. +3 −3 include/language.php
  10. +2 −2 include/modulecheck.php
  11. +2 −2 include/tsutils.php
  12. +4 −4 index.php
  13. +4 −4 rules.php
  14. +2 −2 viewer.php
View
@@ -55,7 +55,7 @@ function scriptFail($error) {
)));
}
-function exception_error_handler($errno, $errstr, $errfile, $errline ) {
+function exception_error_handler($errno, $errstr, $errfile, $errline) {
scriptFail("[$errfile @ $errline] " . $errstr);
}
View
@@ -5,7 +5,6 @@
require_once __DIR__ . "/lib/phpfastcache/autoload.php";
-
use phpFastCache\Util;
use phpFastCache\CacheManager;
@@ -20,8 +19,6 @@
$banlist = array(getBanlist(), date('d-m-Y H:i:s'));
$cache->set('banlist', $banlist, 600);
}
-
-
?>
<div class="panel panel-default">
@@ -65,15 +62,15 @@ function getBanlist() {
global $lang;
try {
- $tsAdmin = TeamSpeak3::factory(getTeamspeakURI(). "#no_query_clients");
+ $tsAdmin = TeamSpeak3::factory(getTeamspeakURI() . "#no_query_clients");
$bany = $tsAdmin->banList();
$output = "";
foreach ($bany as $ban) {
- if(!isset($ban['lastnickname']))
+ if (!isset($ban['lastnickname']))
continue;
$lastnickname = $ban['lastnickname']->toString();
@@ -82,10 +79,10 @@ function getBanlist() {
$created = date('d-m-Y H:i:s', $ban['created']);
$duration = $ban['duration'];
- if(empty($reason))
+ if (empty($reason))
$reason = "<b>" . translate($lang["banlist"]["table"]["emptyreason"]) . "</b>";
- if($duration == 0)
+ if ($duration == 0)
$expires = translate($lang["banlist"]["table"]["permaban"]);
else
$expires = date('d-m-Y H:i:s', $ban['created'] + $duration);
@@ -94,8 +91,8 @@ function getBanlist() {
}
return $output;
- } catch(TeamSpeak3_Exception $e) {
- if($e->getCode() == 1281) {
+ } catch (TeamSpeak3_Exception $e) {
+ if ($e->getCode() == 1281) {
return '';
} else {
return '<div class="alert alert-danger"><p class="text-center">' . translate($lang["general"]["scripterror"], [$e->getCode(), $e->getMessage()]) . '</p></div>';
View
@@ -30,7 +30,7 @@
}
@media (min-width: 768px) {
- .navbar-nav> li> a {
+ .navbar-nav > li > a {
padding-top: 14.5px;
padding-bottom: 14.5px;
}
@@ -61,6 +61,6 @@
margin-bottom: 14.5px;
}
-.navbar .dropdown-menu>li>a {
+.navbar .dropdown-menu > li > a {
font-size: 14px;
}
View
@@ -23,11 +23,7 @@ a {
text-align: right;
}
-.pullright {
- float: right !important;
-}
-
-.pullright .fa {
+.pull-right .fa {
margin-right: 0px
}
@@ -44,7 +40,6 @@ p, a {
hyphens: auto;
}
-
/* ****** */
/* STATUS */
/* ****** */
@@ -61,12 +56,11 @@ p, a {
float: right
}
-
/* ********* */
/* ADMINLIST */
/* ********* */
-.adminlist> .groupname~ .groupname {
+.adminlist > .groupname ~ .groupname {
margin-top: 15px;
}
@@ -93,7 +87,6 @@ p, a {
margin-left: 19px
}
-
/* ****** */
/* NAVBAR */
/* ****** */
@@ -106,7 +99,7 @@ body {
font-size: 14px
}
-.nav> li> a {
+.nav > li > a {
padding-left: 10px;
padding-right: 10px;
}
@@ -117,13 +110,12 @@ body {
align-items: center;
}
-.navbar-brand> img {
+.navbar-brand > img {
height: 100%;
padding: 5px 5px 5px 15px;
width: auto;
}
-
/* ****** */
/* FOOTER */
/* ****** */
Oops, something went wrong.

0 comments on commit f68c29c

Please sign in to comment.