$actions_msg[] = _DEFAULT_OWN_EMAIL_ALERT; } if ($objLogin->IsLoggedInAs('owner', 'mainadmin') && Modules::IsModuleInstalled('contact_us')) { $admin_email_to = ModulesSettings::Get('contact_us', 'email'); if ($admin_email_to == '' || preg_match('/yourdomain/i', $admin_email_to)) { $actions_msg[] = _CONTACTUS_DEFAULT_EMAIL_ALERT; } } if (Modules::IsModuleInstalled('comments')) { $comments_count = Comments::AwaitingModerationCount(); if (ModulesSettings::Get('comments', 'comments_allow') == 'yes' && $comments_count > 0) { $actions_msg[] = str_replace('_COUNT_', $comments_count, _COMMENTS_AWAITING_MODERATION_ALERT); } } if (Modules::IsModuleInstalled('listings')) { $awaiting_listings = Listings::AwaitingModerationCount(); if (ModulesSettings::Get('listings', 'pre_moderation_allow') == 'yes' && $awaiting_listings > 0) { $actions_msg[] = str_replace('_COUNT_', $awaiting_listings, _LISTINGS_AWAITING_MODERATION_ALERT); } } if (count($actions_msg) > 0) { if ($alert_state == '') { $msg = '<div id="divAlertRequired"> <img src="images/close.png" alt="" style="cursor:pointer;float:' . Application::Get('defined_right') . ';margin-right:-3px;" title="' . _HIDE . '" onclick="javascript:appGoTo(\'admin=home\',\'&task=close_alert\')" /> <img src="images/action_required.png" alt="" style="margin-bottom:-3px;" /> <b>' . _ACTION_REQUIRED . '</b>: <ul style="margin-top:7px;margin-bottom:7px;">'; foreach ($actions_msg as $single_msg) { $msg .= '<li>' . $single_msg . '</li>'; } $msg .= '</ul></div>'; draw_important_message($msg, true, false);