<?php
/* Smarty version 3.1.33-p1, created on 2020-04-22 22:18:03
  from '/home/unikom/public_html/new/my/templates/cloudhostwp/serverstatus.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33-p1',
  'unifunc' => 'content_5ea0c29b380e77_74796093',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e81a11d47a7c7d7ea2e57760c8f46acf1a2849ff' => 
    array (
      0 => '/home/unikom/public_html/new/my/templates/cloudhostwp/serverstatus.tpl',
      1 => 1585171092,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5ea0c29b380e77_74796093 (Smarty_Internal_Template $_smarty_tpl) {
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['issues']->value, 'issue');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['issue']->value) {
?>

    <div class="panel <?php if ($_smarty_tpl->tpl_vars['issue']->value['clientaffected']) {?>panel-warning<?php } else { ?>panel-info<?php }?>">
        <div class="panel-heading">
            <?php echo $_smarty_tpl->tpl_vars['issue']->value['title'];?>
 (<?php echo $_smarty_tpl->tpl_vars['issue']->value['status'];?>
)
        </div>
        <ul class="list-group">
            <li class="list-group-item <?php if ($_smarty_tpl->tpl_vars['issue']->value['rawPriority'] == 'Critical') {?>list-group-item-danger<?php } elseif ($_smarty_tpl->tpl_vars['issue']->value['rawPriority'] == 'High') {?>list-group-item-warning<?php } elseif ($_smarty_tpl->tpl_vars['issue']->value['rawPriority'] == 'Low') {?>list-group-item-success<?php } else { ?>list-group-item-info<?php }?>"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['networkissuespriority'];?>
</strong> - <?php echo $_smarty_tpl->tpl_vars['issue']->value['priority'];?>
</li>
            <?php if ($_smarty_tpl->tpl_vars['issue']->value['server'] || $_smarty_tpl->tpl_vars['issue']->value['affecting']) {?><li class="list-group-item"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['networkissuesaffecting'];?>
 <?php echo $_smarty_tpl->tpl_vars['issue']->value['type'];?>
</strong> - <?php if ($_smarty_tpl->tpl_vars['issue']->value['type'] == $_smarty_tpl->tpl_vars['LANG']->value['networkissuestypeserver']) {
echo $_smarty_tpl->tpl_vars['issue']->value['server'];
} else {
echo $_smarty_tpl->tpl_vars['issue']->value['affecting'];
}?></li><?php }?>
            <li class="list-group-item">
                <p>
                    <?php echo $_smarty_tpl->tpl_vars['issue']->value['description'];?>

                </p>
            </li>
            <li class="list-group-item"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['networkissuesdate'];?>
</strong> - <?php echo $_smarty_tpl->tpl_vars['issue']->value['startdate'];
if ($_smarty_tpl->tpl_vars['issue']->value['enddate']) {?> - <?php echo $_smarty_tpl->tpl_vars['issue']->value['enddate'];
}?></li>
            <li class="list-group-item"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['networkissueslastupdated'];?>
</strong> - <?php echo $_smarty_tpl->tpl_vars['issue']->value['lastupdate'];?>
</li>
        </ul>
    </div>

<?php
}
} else {
?>
    <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"success",'msg'=>$_smarty_tpl->tpl_vars['noissuesmsg']->value,'textcenter'=>true), 0, true);
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

<div class="btn-group">
    <a href="<?php if ($_smarty_tpl->tpl_vars['prevpage']->value) {
echo $_SERVER['PHP_SELF'];?>
?<?php if ($_smarty_tpl->tpl_vars['view']->value) {?>view=<?php echo $_smarty_tpl->tpl_vars['view']->value;?>
&amp;<?php }?>page=<?php echo $_smarty_tpl->tpl_vars['prevpage']->value;
} else { ?>#<?php }?>" class="btn btn-default <?php if (!$_smarty_tpl->tpl_vars['prevpage']->value) {?>disabled<?php }?>">&lt; <?php echo $_smarty_tpl->tpl_vars['LANG']->value['previouspage'];?>
</a>
    <a href="<?php if ($_smarty_tpl->tpl_vars['nextpage']->value) {
echo $_SERVER['PHP_SELF'];?>
?<?php if ($_smarty_tpl->tpl_vars['view']->value) {?>view=<?php echo $_smarty_tpl->tpl_vars['view']->value;?>
&amp;<?php }?>page=<?php echo $_smarty_tpl->tpl_vars['nextpage']->value;
} else { ?>#<?php }?>" class="btn btn-default <?php if (!$_smarty_tpl->tpl_vars['nextpage']->value) {?>disabled<?php }?>"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['nextpage'];?>
 &gt;</a>
</div>

<?php if ($_smarty_tpl->tpl_vars['servers']->value) {?>

    <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('title'=>$_smarty_tpl->tpl_vars['LANG']->value['serverstatustitle']), 0, true);
?>

    <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['serverstatusheadingtext'];?>
</p>

    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['servername'];?>
</th>
                    <th class="text-center">HTTP</th>
                    <th class="text-center">FTP</th>
                    <th class="text-center">POP3</th>
                    <th class="text-center"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['serverstatusphpinfo'];?>
</th>
                    <th class="text-center"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['serverstatusserverload'];?>
</th>
                    <th class="text-center"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['serverstatusuptime'];?>
</th>
                </tr>
            </thead>
            <tbody>
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['servers']->value, 'server', false, 'num');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['num']->value => $_smarty_tpl->tpl_vars['server']->value) {
?>
                    <tr>
                        <td><?php echo $_smarty_tpl->tpl_vars['server']->value['name'];?>
</td>
                        <td class="text-center" id="port80_<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
">
                            <span class="fas fa-spinner fa-spin"></span>
                        </td>
                        <td class="text-center" id="port21_<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
">
                            <span class="fas fa-spinner fa-spin"></span>
                        </td>
                        <td class="text-center" id="port110_<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
">
                            <span class="fas fa-spinner fa-spin"></span>
                        </td>
                        <td class="text-center"><a href="<?php echo $_smarty_tpl->tpl_vars['server']->value['phpinfourl'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['serverstatusphpinfo'];?>
</a></td>
                        <td class="text-center" id="load<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
">
                            <span class="fas fa-spinner fa-spin"></span>
                        </td>
                        <td class="text-center" id="uptime<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
">
                            <span class="fas fa-spinner fa-spin"></span>
                            <?php echo '<script'; ?>
>
                            jQuery(document).ready(function() {
                                checkPort(<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
, 80);
                                checkPort(<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
, 21);
                                checkPort(<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
, 110);
                                getStats(<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
);
                            });
                            <?php echo '</script'; ?>
>
                        </td>
                    </tr>
                <?php
}
} else {
?>
                    <tr>
                        <td colspan="7"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['serverstatusnoservers'];?>
</td>
                    </tr>
                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
            </tbody>
        </table>
    </div>

<?php }
}
}
