* GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with sysMonDash. If not, see <http://www.gnu.org/licenses/>. * */ use SMD\Core\Config; use SMD\Core\Init; use SMD\Core\Language; use SMD\Core\sysMonDash; use SMD\Http\Request; use SMD\Util\Util; define('APP_ROOT', '..'); require APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php'; Init::start(); Request::checkCORS(); $type = Request::analyze('t', VIEW_FRONTLINE); $timeout = Request::analyze('to', Config::getConfig()->getRefreshValue()); $SMD = new sysMonDash(); $SMD->setViewType($type); ob_start(); // Array con los avisos filtrados $res = $SMD->getItems(); if ($type !== 1) { $showAll = '<a href="index.php?t=' . VIEW_ALL . '" title="' . Language::t('Mostrar los avisos ocultos') . '">' . Language::t('Mostrar Todos') . '</a>'; } else { $showAll = '<a href="index.php?t=' . VIEW_FRONTLINE . '" title="' . Language::t('Mostrar sólo avisos importantes') . '">' . Language::t('Mostrar Menos') . '</a>'; } ?> <table id="tblBoard" width="90%" border="0" class="boldtable" align="center"> <thead class="head">