@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | <html lang="en"> |
5 | 5 | <head> |
6 | 6 | <meta charset="utf-8"> |
7 | - <title><?php if(isset($titlePreFix)) echo("$titlePreFix | ");?>Open Source Blacklist Monitoring</title> |
|
7 | + <title><?php if (isset($titlePreFix)) echo("$titlePreFix | "); ?>Open Source Blacklist Monitoring</title> |
|
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
9 | 9 | <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> |
10 | 10 | <script type="text/javascript" src="//www.google.com/jsapi"></script> |
@@ -22,16 +22,16 @@ discard block |
||
22 | 22 | <div class="container"> |
23 | 23 | <div class="header"> |
24 | 24 | <ul class="nav nav-pills pull-right"> |
25 | - <?php $pageName = basename($_SERVER['PHP_SELF']);?> |
|
25 | + <?php $pageName = basename($_SERVER['PHP_SELF']); ?> |
|
26 | 26 | <?php |
27 | - if(Utilities::isLoggedIn()!==false){ |
|
27 | + if (Utilities::isLoggedIn()!==false) { |
|
28 | 28 | ?> |
29 | - <li <?php if(in_array($pageName,array('account.php','hosts.php','blockLists.php','apiDocumentation.php','hostHistory.php'))) echo('class="active"');?>><a href="account.php">Profile</a></li> |
|
29 | + <li <?php if (in_array($pageName, array('account.php', 'hosts.php', 'blockLists.php', 'apiDocumentation.php', 'hostHistory.php'))) echo('class="active"'); ?>><a href="account.php">Profile</a></li> |
|
30 | 30 | <li><a href="login.php?logout=1">Logout</a></li> |
31 | 31 | <?php |
32 | - }else{ |
|
32 | + }else { |
|
33 | 33 | ?> |
34 | - <li <?php if($pageName=='login.php' || $pageName=='index.php' ) echo('class="active"');?>><a href="login.php">Login</a><li> |
|
34 | + <li <?php if ($pageName=='login.php' || $pageName=='index.php') echo('class="active"'); ?>><a href="login.php">Login</a><li> |
|
35 | 35 | <?php |
36 | 36 | } |
37 | 37 | ?> |
@@ -4,7 +4,10 @@ discard block |
||
4 | 4 | <html lang="en"> |
5 | 5 | <head> |
6 | 6 | <meta charset="utf-8"> |
7 | - <title><?php if(isset($titlePreFix)) echo("$titlePreFix | ");?>Open Source Blacklist Monitoring</title> |
|
7 | + <title><?php if(isset($titlePreFix)) { |
|
8 | + echo("$titlePreFix | "); |
|
9 | +} |
|
10 | +?>Open Source Blacklist Monitoring</title> |
|
8 | 11 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
9 | 12 | <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> |
10 | 13 | <script type="text/javascript" src="//www.google.com/jsapi"></script> |
@@ -26,12 +29,18 @@ discard block |
||
26 | 29 | <?php |
27 | 30 | if(Utilities::isLoggedIn()!==false){ |
28 | 31 | ?> |
29 | - <li <?php if(in_array($pageName,array('account.php','hosts.php','blockLists.php','apiDocumentation.php','hostHistory.php'))) echo('class="active"');?>><a href="account.php">Profile</a></li> |
|
32 | + <li <?php if(in_array($pageName,array('account.php','hosts.php','blockLists.php','apiDocumentation.php','hostHistory.php'))) { |
|
33 | + echo('class="active"'); |
|
34 | +} |
|
35 | +?>><a href="account.php">Profile</a></li> |
|
30 | 36 | <li><a href="login.php?logout=1">Logout</a></li> |
31 | 37 | <?php |
32 | - }else{ |
|
38 | + } else{ |
|
33 | 39 | ?> |
34 | - <li <?php if($pageName=='login.php' || $pageName=='index.php' ) echo('class="active"');?>><a href="login.php">Login</a><li> |
|
40 | + <li <?php if($pageName=='login.php' || $pageName=='index.php' ) { |
|
41 | + echo('class="active"'); |
|
42 | +} |
|
43 | +?>><a href="login.php">Login</a><li> |
|
35 | 44 | <?php |
36 | 45 | } |
37 | 46 | ?> |