indenting fix (whitespace)
This commit is contained in:
parent
8478ee430f
commit
6021d41d39
|
@ -157,30 +157,31 @@ class Filter {
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset ($this->action)) switch($this->action) {
|
if (isset ($this->action))
|
||||||
case 'reject':
|
switch($this->action) {
|
||||||
error(isset($this->message) ? $this->message : 'Posting blocked by filter.');
|
case 'reject':
|
||||||
case 'ban':
|
error(isset($this->message) ? $this->message : 'Posting blocked by filter.');
|
||||||
if (!isset($this->reason))
|
case 'ban':
|
||||||
error('The ban action requires a reason.');
|
if (!isset($this->reason))
|
||||||
|
error('The ban action requires a reason.');
|
||||||
$this->expires = isset($this->expires) ? $this->expires : false;
|
|
||||||
$this->reject = isset($this->reject) ? $this->reject : true;
|
|
||||||
$this->all_boards = isset($this->all_boards) ? $this->all_boards : false;
|
|
||||||
|
|
||||||
Bans::new_ban($_SERVER['REMOTE_ADDR'], $this->reason, $this->expires, $this->all_boards ? false : $board['uri'], -1);
|
|
||||||
|
|
||||||
if ($this->reject) {
|
$this->expires = isset($this->expires) ? $this->expires : false;
|
||||||
if (isset($this->message))
|
$this->reject = isset($this->reject) ? $this->reject : true;
|
||||||
error($message);
|
$this->all_boards = isset($this->all_boards) ? $this->all_boards : false;
|
||||||
|
|
||||||
checkBan($board['uri']);
|
Bans::new_ban($_SERVER['REMOTE_ADDR'], $this->reason, $this->expires, $this->all_boards ? false : $board['uri'], -1);
|
||||||
exit;
|
|
||||||
}
|
if ($this->reject) {
|
||||||
|
if (isset($this->message))
|
||||||
break;
|
error($message);
|
||||||
default:
|
|
||||||
error('Unknown filter action: ' . $this->action);
|
checkBan($board['uri']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
error('Unknown filter action: ' . $this->action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue