]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-connect.php
Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / mysql-connect.php
index 59921655d456eb81294f022e6db0667f7e444fe2..1f2fefc671e73cfa5b11c68aaa3dca6228c5f419 100644 (file)
@@ -124,23 +124,7 @@ LIMIT 1", __FILE__, __LINE__);
                                        require_once(PATH."inc/theme-manager.php");
 
                                        // Run daily reset
-                                       // 01    2                            2        2         3321    1                         2                     21    1                        2                    21    1                        2                  21    1      2                 21    1         10
-                                       if ((date("d", $_CONFIG['last_update']) != date("d", time())) && (!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (!isset($_GET['register'])) && ($CSS != 1)) {
-                                               // Do daily things in external PHP file but only when script is completely setup
-                                               $INC_POOL = array();
-                                               $INC_POOL[] = sprintf("%sinc/reset/reset_daily.php", PATH);
-
-                                               // Daily reset was run!
-                                               define('__DAILY_RESET', true);
-
-                                               // Add more includes
-                                               RESET_ADD_INCLUDES();
-
-                                               // Run the full reset scripts
-                                               foreach ($INC_POOL as $incFile) {
-                                                       require_once($incFile);
-                                               } // END - foreach
-                                       } // END - if
+                                       require_once(PATH."inc/check-reset.php");
 
                                        // Load admin include file if he is admin
                                        if (IS_ADMIN()) {
@@ -163,7 +147,7 @@ LIMIT 1", __FILE__, __LINE__);
                                        UPDATE_LOGIN_DATA();
 
                                        // Update online list
-                                       UPDATE_ONLINE_LIST(get_session('PHPSESSID'), $GLOBALS['module'], $GLOBALS['action'], $GLOBALS['what']);
+                                       UPDATE_ONLINE_LIST($PHPSESSID, $GLOBALS['module'], $GLOBALS['action'], $GLOBALS['what']);
 
                                        // Load theme name
                                        $currTheme = GET_CURR_THEME();
@@ -182,7 +166,7 @@ LIMIT 1", __FILE__, __LINE__);
                                                        // Anything else like begging link
                                                        $GLOBALS['what'] = "";
                                                }
-                                       }
+                                       } // END - if
 
                                        // Update sending pool
                                        if (($CSS != "1") && ($CSS != "-1")) require_once(PATH."inc/pool-update.php"); // Sends out mails in configureable steps