]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-beg.php
Mahor rewrite:
[mailer.git] / inc / extensions / ext-beg.php
index fd553900a12be556081eeca34089ce146d5694c9..2a8013daf2b8089729defc1c43b41e65c82c9259 100644 (file)
@@ -259,14 +259,17 @@ case "update": // Update an extension
        }
        break;
 
+case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+       break;
+
 default: // Do stuff when extension is loaded
        // Remove old entries
-       $OLD = $_CONFIG['beg_timeout'];
-       if ($_CONFIG['beg_uid_timeout'] > $OLD) $OLD = $_CONFIG['beg_uid_timeout'];
+       $OLD = getConfig('beg_timeout');
+       if (getConfig('beg_uid_timeout') > $OLD) $OLD = getConfig('beg_uid_timeout');
        $result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM `"._MYSQL_PREFIX."_beg_ips` WHERE timeout < (UNIX_TIMESTAMP() -".($OLD + 60*60).")", __FILE__, __LINE__);
 
        // Check for beg rallye is active and send mails out
-       if (($_CONFIG['beg_rallye'] == "Y") && ($_CONFIG['beg_new_mem_notify'] == "Y")) {
+       if ((getConfig('beg_rallye') == "Y") && (getConfig('beg_new_mem_notify') == "Y")) {
                // Include file for sending out mails
                $INC_POOL[] = sprintf("%sinc/mails/beg_mails.php", PATH);
        } // END - if