Skip to content

Commit

Permalink
Getting ready for the Live Stream Multiple servers
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Jul 3, 2020
1 parent 1a8d730 commit 12b386c
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions plugin/Live/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,27 @@
<div class="panel-heading">
<ul class="nav nav-tabs">
<?php
$servers = Live::getAllServers();
$_REQUEST['live_servers_id'] = Live::getLiveServersIdRequest();
foreach ($servers as $key => $value) {
$active = "";
if ($_REQUEST['live_servers_id']) {
if ($_REQUEST['live_servers_id'] == $value['id']) {
if(!$obj->useLiveServers){
?>
<li class="active"><a href="<?php echo $global['webSiteRootURL']; ?>plugin/Live/?live_servers_id=0"><?php echo __("Local Server"); ?></a></li>
<?php
}else{
$servers = Live::getAllServers();
$_REQUEST['live_servers_id'] = Live::getLiveServersIdRequest();
foreach ($servers as $key => $value) {
$active = "";
if ($_REQUEST['live_servers_id']) {
if ($_REQUEST['live_servers_id'] == $value['id']) {
$active = "active";
}
} else if ($key == 0) {
$_REQUEST['live_servers_id'] = $value['id'];
$active = "active";
}
} else if ($key == 0) {
$_REQUEST['live_servers_id'] = $value['id'];
$active = "active";
?>
<li class="<?php echo $active; ?>"><a href="<?php echo $global['webSiteRootURL']; ?>plugin/Live/?live_servers_id=<?php echo $value['id']; ?>"><?php echo $value['name']; ?></a></li>
<?php
}
?>
<li class="<?php echo $active; ?>"><a href="<?php echo $global['webSiteRootURL']; ?>plugin/Live/?live_servers_id=<?php echo $value['id']; ?>"><?php echo $value['name']; ?></a></li>
<?php
}
?>
</ul>
Expand Down

0 comments on commit 12b386c

Please sign in to comment.