(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * */ function getCronjobsLastRun() { global $lng; $query = "SELECT `lastrun`, `desc_lng_key` FROM `".TABLE_PANEL_CRONRUNS."` WHERE `isactive` = '1' ORDER BY `cronfile` ASC"; $result = Database::query($query); $cronjobs_last_run = ''; while ($row = $result->fetch(PDO::FETCH_ASSOC)) { $lastrun = $lng['cronjobs']['notyetrun']; if ($row['lastrun'] > 0) { $lastrun = date('d.m.Y H:i:s', $row['lastrun']); } $text = $lng['crondesc'][$row['desc_lng_key']]; $value = $lastrun; eval("\$cronjobs_last_run .= \"" . getTemplate("index/overview_item") . "\";"); } return $cronjobs_last_run; } function toggleCronStatus($module = null, $isactive = 0) { if($isactive != 1) { $isactive = 0; } $upd_stmt = Database::prepare(" UPDATE `".TABLE_PANEL_CRONRUNS."` SET `isactive` = :active WHERE `module` = :module" ); Database::pexecute($upd_stmt, array('active' => $isactive, 'module' => $module)); } function getOutstandingTasks() { global $lng; $query = "SELECT * FROM `".TABLE_PANEL_TASKS."` ORDER BY `type` ASC"; $result = Database::query($query); $value = ''; $text = $lng['tasks']['outstanding_tasks']; eval("\$outstanding_tasks = \"" . getTemplate("index/overview_item") . "\";"); return $outstanding_tasks; }