function messageMgmt($action, $task, $message) { if (empty($message)) { if ($GLOBALS[ACA . 'news1'] == 1) { return acajoom::printM('warning', _ACA_UPGRADE1 . '<b>Anjel</b>' . _ACA_UPGRADE2); } if ($GLOBALS[ACA . 'news2'] == 1) { return acajoom::printM('warning', _ACA_UPGRADE1 . '<b>Letterman</b>' . _ACA_UPGRADE2); } if ($GLOBALS[ACA . 'news3'] == 1) { return acajoom::printM('warning', _ACA_UPGRADE1 . '<b>YaNC</b>' . _ACA_UPGRADE2); } if ($GLOBALS[ACA . 'mod_pub'] == 0) { $total = acajoom::getStats(); $link = ' <a href="index2.php?option=com_modules">' . _ACA_MOD_PUB_LINK . '</a>'; if ($total['mod_pub'] == 0 and $GLOBALS[ACA . 'act_totalmailing0'] < 3) { return acajoom::printM('warning', _ACA_MOD_PUB . $link); } } if ($GLOBALS[ACA . 'act_totalmailing2'] > 0 and $GLOBALS[ACA . 'cron_setup'] == 0) { return acajoom::printM('cron', _ACA_SCHEDULE_SETUP); } if ($GLOBALS[ACA . 'show_tips'] == 1) { $ou = false; $message = acajoom::chooseTips($action, $task); if (!empty($message)) { return $message; } } } return $message; }