PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...

This commit is contained in:
Shish
2019-05-28 17:59:38 +01:00
parent 5ec3e89884
commit 34b05cca7c
295 changed files with 27094 additions and 24632 deletions

View File

@@ -3,23 +3,22 @@
* Name: [Beta] Hellban
*/
class HellBan extends Extension {
public function onPageRequest(PageRequestEvent $event) {
global $page, $user;
class HellBan extends Extension
{
public function onPageRequest(PageRequestEvent $event)
{
global $page, $user;
if($user->can("hellbanned")) {
$s = "";
}
else if($user->can("view_hellbanned")) {
$s = "DIV.hb, TR.hb TD {border: 1px solid red !important;}";
}
else {
$s = ".hb {display: none !important;}";
}
if ($user->can("hellbanned")) {
$s = "";
} elseif ($user->can("view_hellbanned")) {
$s = "DIV.hb, TR.hb TD {border: 1px solid red !important;}";
} else {
$s = ".hb {display: none !important;}";
}
if($s) {
$page->add_html_header("<style>$s</style>");
}
}
if ($s) {
$page->add_html_header("<style>$s</style>");
}
}
}