]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_profile.php
Naming convention applied, wrapper functions may use __FUNCTION__ as first index
[mailer.git] / inc / reset / reset_profile.php
index 42d95ce89b233677645fcee2ca067600df960937..dd31930b0ed36cc77cc638f0f188428153aca833 100644 (file)
@@ -41,7 +41,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) {
        // Do not execute when script is in CSS mode or no daily reset
        return;
 } elseif (!isExtensionActive('profile')) {
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
        return;
 }
 
-if ((getConfig('send_prof_update') == 'Y') && (getConfig('profile_update') > 0) && (getConfig('resend_profile_update'))) {
+if ((isSendProfileUpdateEnabled()) && (getProfileUpdate() > 0) && (getResendProfileUpdate() > 0)) {
        // Load personal data
        $result = SQL_QUERY('SELECT `userid`, `email`, `last_update`, `joined`
 FROM
@@ -90,7 +90,7 @@ ORDER BY
 
        // Free result
        SQL_FREERESULT($result);
-}
+} // END - if
 
 // [EOF]
 ?>