function ApplyConfigTasks() { $prod = "tasks_main_settings"; $tpl = new templates(); include_once dirname(__FILE__) . '/ressources/class.cron.inc'; $cron = new cron(); if ($cron->ApplyCronToServer()) { echo $tpl->_ENGINE_parse_body(Success($prod)); } else { echo $tpl->_ENGINE_parse_body(InfosError($prod, '{error}')); } }