@@ -11,8 +11,8 @@ |
||
| 11 | 11 | <?php $__db_h = new db_helper(); ?> |
| 12 | 12 | <?php $__time_h = new time_helper(); ?> |
| 13 | 13 | <?php |
| 14 | - if(!isset($_SESSION['siteusername'])) { die(); } |
|
| 15 | - if(!$__user_h->if_admin($_SESSION['siteusername'])) { die(); } |
|
| 14 | + if (!isset($_SESSION['siteusername'])) { die(); } |
|
| 15 | + if (!$__user_h->if_admin($_SESSION['siteusername'])) { die(); } |
|
| 16 | 16 | |
| 17 | 17 | $request = (object) [ |
| 18 | 18 | "video" => $_GET['v'], |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | </a> |
| 36 | 36 | </div> |
| 37 | 37 | <ol class="navigation-menu"> |
| 38 | - <?php foreach($__tabs as $_tab) { |
|
| 39 | - if($_SERVER['REQUEST_URI'] != $_tab->url) |
|
| 38 | + <?php foreach ($__tabs as $_tab) { |
|
| 39 | + if ($_SERVER['REQUEST_URI'] != $_tab->url) |
|
| 40 | 40 | $_tab->selected = true; |
| 41 | 41 | ?> |
| 42 | 42 | <li class="menu-item"> |
@@ -36,8 +36,9 @@ |
||
| 36 | 36 | </div> |
| 37 | 37 | <ol class="navigation-menu"> |
| 38 | 38 | <?php foreach($__tabs as $_tab) { |
| 39 | - if($_SERVER['REQUEST_URI'] != $_tab->url) |
|
| 40 | - $_tab->selected = true; |
|
| 39 | + if($_SERVER['REQUEST_URI'] != $_tab->url) { |
|
| 40 | + $_tab->selected = true; |
|
| 41 | + } |
|
| 41 | 42 | ?> |
| 42 | 43 | <li class="menu-item"> |
| 43 | 44 | <a class="<?php echo $_tab->selected ? true : "selected"; ?>" href="<?php echo $_tab->url; ?>"> |