@@ -40,8 +40,7 @@ discard block |
||
| 40 | 40 | ] |
| 41 | 41 | ); |
| 42 | 42 | $__server->db_properties->db_connected = true; |
| 43 | - } |
|
| 44 | - catch(PDOException $e) |
|
| 43 | + } catch(PDOException $e) |
|
| 45 | 44 | { |
| 46 | 45 | die("An error occured connecting to the database: ".$e->getMessage()); |
| 47 | 46 | } |
@@ -55,8 +54,9 @@ discard block |
||
| 55 | 54 | |
| 56 | 55 | while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
| 57 | 56 | $ban_info = $ban; |
| 58 | - if($_SERVER['REQUEST_URI'] != "/ban") |
|
| 59 | - header("Location: /ban"); |
|
| 57 | + if($_SERVER['REQUEST_URI'] != "/ban") { |
|
| 58 | + header("Location: /ban"); |
|
| 59 | + } |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /* IP BANS */ |
@@ -66,8 +66,9 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
| 68 | 68 | $ban_info = $ban; |
| 69 | - if($_SERVER['REQUEST_URI'] != "/ip_ban") |
|
| 70 | - header("Location: /ip_ban"); |
|
| 69 | + if($_SERVER['REQUEST_URI'] != "/ip_ban") { |
|
| 70 | + header("Location: /ip_ban"); |
|
| 71 | + } |
|
| 71 | 72 | } |
| 72 | 73 | |
| 73 | 74 | /* NOT RUNNING UNDER CF CHECK */ |