Fixed logfile writing in installation phase, .revision is now ignored
authorRoland Häder <roland@mxchange.org>
Fri, 6 Mar 2009 21:09:38 +0000 (21:09 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 6 Mar 2009 21:09:38 +0000 (21:09 +0000)
36 files changed:
.gitattributes
admin.php
agb.php
beg.php
birthday_confirm.php
click.php
confirm.php
debug.php
doubler.php
img.php
inc/cache/.revision [new file with mode: 0644]
inc/config.php
inc/databases.php
inc/fatal_errors.php
inc/filters.php
inc/footer.php
inc/functions.php
inc/hooks.php
inc/install-inc.php
inc/modules/admin/what-logs.php
inc/modules/admin/what-usage.php
inc/mysql-connect.php
inc/security.php
index.php
install.php
js.php
lead-confirm.php
login.php
mailid.php
mailid_top.php
ref.php
show_bonus.php
sponsor_confirm.php
sponsor_ref.php
surfbar.php
view.php

index c46d5c5f5cc18cb18e9126125b19dac46e47246e..20fca9e54a5cea476a9df29367f6a458e5d2215a 100644 (file)
@@ -90,6 +90,7 @@ inc/autopurge/purge-mails.php -text
 inc/autopurge/purge-tsks.php -text
 inc/autopurge/purge-unconfirmed.php -text
 inc/cache/.htaccess -text
 inc/autopurge/purge-tsks.php -text
 inc/autopurge/purge-unconfirmed.php -text
 inc/cache/.htaccess -text
+inc/cache/.revision -text
 inc/check-reset.php -text
 inc/config-functions.php -text
 inc/config.php -text
 inc/check-reset.php -text
 inc/config-functions.php -text
 inc/config.php -text
index 631eebc65a94df8aecc32fb185659cfbd6977989..d075c1d2208570ba970455dffe2b95633c3d5ccc 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -60,4 +60,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
diff --git a/agb.php b/agb.php
index f564e7bd4d5c63c031ded0aff6026328ddc043f1..4cee173d8de73e5e98b76913d426ba74000cf62f 100644 (file)
--- a/agb.php
+++ b/agb.php
@@ -60,4 +60,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
diff --git a/beg.php b/beg.php
index 98b3e2d6c948e6f4366959ccbe594bf7ebadbc74..4446302f5190a711fd93fa163fc05c14c56f87ac 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -240,4 +240,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index 704d3bffd5caf5d923ee7ccb56b0262a61a03e00..8c6022fe7ed77bd9d23f71bb35282774e7da4752 100644 (file)
@@ -136,5 +136,9 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
        // You have to install first!
        LOAD_URL("install.php");
 }
        // You have to install first!
        LOAD_URL("install.php");
 }
+
 // Really all done here... ;-)
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index 1393bc19f7bea9734f22292b81f73f66fd5913c5..a13bb7787ed017f7b77f3b5e83204b53f5b50e1a 100644 (file)
--- a/click.php
+++ b/click.php
@@ -65,5 +65,8 @@ if (((REQUEST_ISSET_GET(('user'))) || (REQUEST_ISSET_GET(('reseller')))) && (REQ
 // Load index page
 LOAD_URL("index.php");
 
 // Load index page
 LOAD_URL("index.php");
 
+// Shutdown
+shutdown();
+
 // [EOF]
 ?>
 // [EOF]
 ?>
index 86c4f1320565a449c3d8612b9626a05c1e7ddbbc..6f2d080373e48bb74e375e4635377d867db5a29e 100644 (file)
@@ -70,4 +70,7 @@ if ((isInstalled()) && (isAdminRegistered())) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index f1c2272fcc61fbf97e3b4ba88cdcec6beddcbd5e..bd5716bf4d64cb4d6821432cf42386011e40694b 100644 (file)
--- a/debug.php
+++ b/debug.php
@@ -55,7 +55,7 @@ if ((isInstalled()) && (getTotalFatalErrors() == 0)) {
        // Is the extension installed?
        if (!EXT_IS_ACTIVE("debug")) {
                // Then abort here
        // Is the extension installed?
        if (!EXT_IS_ACTIVE("debug")) {
                // Then abort here
-               exit;
+               shutdown();
        } // END - if
 
        // Is the request parameter set?
        } // END - if
 
        // Is the request parameter set?
@@ -90,4 +90,7 @@ if ((isInstalled()) && (getTotalFatalErrors() == 0)) {
 } // END - if
 
 // Really all done here... ;-)
 } // END - if
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index cf96c73ad51dec5701474b60b585c1923bb38203..82a71d6d857519d4d422f3489e6f1afd81a4115c 100644 (file)
@@ -279,4 +279,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
diff --git a/img.php b/img.php
index c150e17c15f40eaf835786e693a83b93a81c966a..e82c6a60c9959401fb99bbdf121527a07071b412 100644 (file)
--- a/img.php
+++ b/img.php
@@ -80,4 +80,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
diff --git a/inc/cache/.revision b/inc/cache/.revision
new file mode 100644 (file)
index 0000000..2458b50
--- /dev/null
@@ -0,0 +1,4 @@
+856
+1236367472
+0.2.1-FINAL-STELZI
+stelzi
\ No newline at end of file
index 5f54475e2f2412ff824a90cf323f4c47eca27b61..db220c2a3a18720af4269c3f16ddedebea8dc5a0 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Ihre Konfigurationsdaten (MySQL)                 *
  * -------------------------------------------------------------------- *
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Ihre Konfigurationsdaten (MySQL)                 *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009)              $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author:: stelzi                                                   $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -122,9 +127,6 @@ define('DEBUG_MODE', false);
 // CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test)
 //define('DEBUG_WEEKLY', true);
 
 // CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test)
 //define('DEBUG_WEEKLY', true);
 
-// When we are not installing
-if (!defined('mxchange_installing')) define('mxchange_installing', false);
-
 // Your MySQL data (we don't like M$ SQL ;-) )
 $MySQL = array(
        // CFG: MYSQL-HOST
 // Your MySQL data (we don't like M$ SQL ;-) )
 $MySQL = array(
        // CFG: MYSQL-HOST
index 7e3f7d06ae7b3b37353824166f503462fd0abca2..9e37689206cb2b984a2c4755fe89703b7dd61eb8 100644 (file)
@@ -11,7 +11,7 @@
  * Kurzbeschreibung  : Definitionen und Datenfelder (hart-codertiert)   *
  * -------------------------------------------------------------------- *
  * $Revision:: 856                                                    $ *
  * Kurzbeschreibung  : Definitionen und Datenfelder (hart-codertiert)   *
  * -------------------------------------------------------------------- *
  * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009)            $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009)              $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author:: stelzi                                                   $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author:: stelzi                                                   $ *
  * Needs to be in all Files and every File needs "svn propset           *
@@ -83,7 +83,8 @@ define('SERVER_URL', "http://www.mxchange.org");
 
 // Full version string: /([0-9]){1}\.([0-9]){1}\.([0-9]){1}(-(alpha|beta|pre|rc([1-3]))([0-9]+))?/
 // If you understand regular expressions ^^^ you may know how I versionize... ;-)
 
 // Full version string: /([0-9]){1}\.([0-9]){1}\.([0-9]){1}(-(alpha|beta|pre|rc([1-3]))([0-9]+))?/
 // If you understand regular expressions ^^^ you may know how I versionize... ;-)
-define('FULL_VERSION', getActualVersion('Tag'));
+//define('FULL_VERSION', getActualVersion('Tag'));
+define('FULL_VERSION', "0.2.1-FINAL");
 
 // Replacement strings
 $GLOBALS['replacer'] = array(
 
 // Replacement strings
 $GLOBALS['replacer'] = array(
@@ -101,8 +102,10 @@ setConfigEntry('one_day', (60*60*24));
 define('START_YDAY', MAKE_TIME(0, 0, 0, time() - getConfig('one_day')));
 define('START_TDAY', MAKE_TIME(0, 0, 0, time()));
 
 define('START_YDAY', MAKE_TIME(0, 0, 0, time() - getConfig('one_day')));
 define('START_TDAY', MAKE_TIME(0, 0, 0, time()));
 
-// Current SVN revision
-define('CURR_SVN_REVISION', getActualVersion('Revision'));define('CURR_SVN_DATE'    , getActualVersion('Date'));
+// Current SVN revision and date
+define('CURR_SVN_REVISION', getActualVersion('Revision'));
+define('CURR_SVN_DATE'    , getActualVersion('Date'));
+
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
 
index ea05cca12233e746fd95ab1003e30c0589a9ae21..d1b8a4fd90cc0ac724e56613366651a7cac6f556 100644 (file)
@@ -82,7 +82,7 @@ if (getTotalFatalErrors() > 0) {
                LOAD_TEMPLATE("runtime_fatal_table", false, $OUT);
 
                // Abort here
                LOAD_TEMPLATE("runtime_fatal_table", false, $OUT);
 
                // Abort here
-               exit;
+               shutdown();
        }
 
        // Message to regular users (non-admin)
        }
 
        // Message to regular users (non-admin)
index efc1b7ea8007523c160bc38d94ae6203d9c935c9..74d7c43e5df2d416a693964723b7291f9ffa0be3 100644 (file)
@@ -243,6 +243,12 @@ function FILTER_FLUSH_FILTERS () {
        // Clear all previous SQL queries
        INIT_SQLS();
 
        // Clear all previous SQL queries
        INIT_SQLS();
 
+       // Are we installing?
+       if (isInstalling()) {
+               // Then silently skip this filter
+               return true;
+       } // END - if
+
        // Is a database link here and not in installation mode?
        if ((!SQL_IS_LINK_UP()) && (!isInstalling())) {
                // Abort here
        // Is a database link here and not in installation mode?
        if ((!SQL_IS_LINK_UP()) && (!isInstalling())) {
                // Abort here
index f57c78481393e367b9486c4f3581cb4bfa8c3850..fcb2ec0c14b2374d7336713d1d8f338f808f58c9 100644 (file)
@@ -83,5 +83,8 @@ $GLOBALS['footer_sent'] = 1;
 // Output HTML code
 OUTPUT_HTML("");
 
 // Output HTML code
 OUTPUT_HTML("");
 
+// Shutdown
+shutdown();
+
 //
 ?>
 //
 ?>
index 77447fb99786f289545fa8c314c35798dbe116b1..05cf4378aca2cccaf13b748751c61d0420ec2f75 100644 (file)
@@ -950,7 +950,7 @@ function LOAD_URL ($URL, $addUrlData=true) {
                LOAD_TEMPLATE("redirect_url", false, str_replace("&amp;", "&", $URL));
                LOAD_INC("inc/footer.php");
        }
                LOAD_TEMPLATE("redirect_url", false, str_replace("&amp;", "&", $URL));
                LOAD_INC("inc/footer.php");
        }
-       exit;
+       shutdown();
 }
 
 // Wrapper for LOAD_URL but URL comes from a configuration entry
 }
 
 // Wrapper for LOAD_URL but URL comes from a configuration entry
@@ -1777,7 +1777,11 @@ function GET_URL ($script) {
        $request  = "GET /" . trim($script) . " HTTP/1.1\r\n";
        $request .= "Host: " . $host . "\r\n";
        $request .= "Referer: " . constant('URL') . "/admin.php\r\n";
        $request  = "GET /" . trim($script) . " HTTP/1.1\r\n";
        $request .= "Host: " . $host . "\r\n";
        $request .= "Referer: " . constant('URL') . "/admin.php\r\n";
-       $request .= "User-Agent: " . constant('TITLE') . "/" . constant('FULL_VERSION') . "\r\n";
+       if (defined('FULL_VERSION')) {
+               $request .= "User-Agent: " . constant('TITLE') . "/" . constant('FULL_VERSION') . "\r\n";
+       } else {
+               $request .= "User-Agent: " . constant('TITLE') . "/?.?.?\r\n";
+       }
        $request .= "Content-Type: text/plain\r\n";
        $request .= "Cache-Control: no-cache\r\n";
        $request .= "Connection: Close\r\n\r\n";
        $request .= "Content-Type: text/plain\r\n";
        $request .= "Cache-Control: no-cache\r\n";
        $request .= "Connection: Close\r\n\r\n";
@@ -2255,7 +2259,7 @@ function mxchange_die ($msg) {
        LOAD_INC_ONCE("inc/footer.php");
 
        // Exit explicitly
        LOAD_INC_ONCE("inc/footer.php");
 
        // Exit explicitly
-       exit;
+       shutdown();
 }
 
 // Display parsing time and number of SQL queries in footer
 }
 
 // Display parsing time and number of SQL queries in footer
@@ -2522,7 +2526,7 @@ function clearOutputBuffer () {
 }
 
 // Function to search for the last modifikated file
 }
 
 // Function to search for the last modifikated file
-function searchDirsRecoursive($dir, &$last_changed) {
+function searchDirsRecoursive ($dir, &$last_changed) {
        $ds = scandir($dir); // Needs adjustment for PHP < 5.0.0!!
        foreach ($ds as $d) {
                $f_name = $dir.'/'.$d; // makes a proper Filename
        $ds = scandir($dir); // Needs adjustment for PHP < 5.0.0!!
        foreach ($ds as $d) {
                $f_name = $dir.'/'.$d; // makes a proper Filename
@@ -2603,20 +2607,17 @@ function getActualVersion ($type = 'Revision') {
                }
        }
 }
                }
        }
 }
-function getSearchFor()
-{
+
+function getSearchFor () {
        $searchFor[] = 'Revision';
        $searchFor[] = 'Date';
        $searchFor[] = 'Tag';
        $searchFor[] = 'Author';
 
        return $searchFor;
        $searchFor[] = 'Revision';
        $searchFor[] = 'Date';
        $searchFor[] = 'Tag';
        $searchFor[] = 'Author';
 
        return $searchFor;
-
 }
 
 }
 
-
-function getAkt_vers()
-{
+function getAkt_vers () {
        $next_dir = '.';
        $last_changed['path_name'] = '';
        $last_changed['time'] = 0;
        $next_dir = '.';
        $last_changed['path_name'] = '';
        $last_changed['time'] = 0;
@@ -3461,7 +3462,9 @@ function DETERMINE_REFID () {
 
 // Check wether we are installing
 function isInstalling () {
 
 // Check wether we are installing
 function isInstalling () {
-       return (isset($GLOBALS['mxchange_installing']));
+       $installing = ((isset($GLOBALS['mxchange_installing'])) || (REQUEST_ISSET_GET('installing')));
+       //* DEBUG: */ var_dump($installing);
+       return $installing;
 }
 
 // Check wether this script is installed
 }
 
 // Check wether this script is installed
@@ -3501,6 +3504,23 @@ function isCacheInstanceValid () {
        return ((isset($GLOBALS['cache_instance'])) && (is_object($GLOBALS['cache_instance'])));
 }
 
        return ((isset($GLOBALS['cache_instance'])) && (is_object($GLOBALS['cache_instance'])));
 }
 
+// Our shutdown-function
+function shutdown () {
+       // Call the filter chain 'shutdown'
+       runFilterChain('shutdown', null, false);
+
+       if (SQL_IS_LINK_UP()) {
+               // Close link
+               SQL_CLOSE(__FILE__, __LINE__);
+       } elseif (!isInstalling()) {
+               // No database link
+               addFatalMessage(__FILE__, __LINE__, getMessage('NO_DB_LINK_SHUTDOWN'));
+       }
+
+       // Stop executing here
+       exit;
+}
+
 //////////////////////////////////////////////////
 // AUTOMATICALLY RE-GENERATED MISSING FUNCTIONS //
 //////////////////////////////////////////////////
 //////////////////////////////////////////////////
 // AUTOMATICALLY RE-GENERATED MISSING FUNCTIONS //
 //////////////////////////////////////////////////
index 03e3aa0aa09629ec336b2137931519243d283761..ccc0927a3bc10d4f17cc42a080a9fda97cbca7aa 100644 (file)
@@ -42,19 +42,5 @@ if (!defined('__SECURITY')) {
        require($INC);
 }
 
        require($INC);
 }
 
-// Call-back function for running shutdown functions and close database connection
-function __SHUTDOWN_HOOK () {
-       // Call the filter chain 'shutdown'
-       runFilterChain('shutdown', null, false);
-
-       if (SQL_IS_LINK_UP()) {
-               // Close link
-               SQL_CLOSE(__FILE__, __LINE__);
-       } elseif (!isInstalling()) {
-               // No database link
-               addFatalMessage(__FILE__, __LINE__, getMessage('NO_DB_LINK_SHUTDOWN'));
-       }
-}
-
 // [EOF]
 ?>
 // [EOF]
 ?>
index 26d21d89e91963eb5beb46bccd5feaef8db46677..bb7ea7bd1ff7dcf4253cec8f789af798566ed50e 100644 (file)
@@ -46,9 +46,6 @@ if (!defined('__SECURITY')) {
        require($INC);
 }
 
        require($INC);
 }
 
-// Load sql_patches here
-LOAD_EXTENSION("sql_patches");
-
 // Init variables
 $mysql = "";
 if ((REQUEST_ISSET_POST(('mysql'))) && (is_array(REQUEST_POST('mysql')))) $mysql = REQUEST_POST('mysql');
 // Init variables
 $mysql = "";
 if ((REQUEST_ISSET_POST(('mysql'))) && (is_array(REQUEST_POST('mysql')))) $mysql = REQUEST_POST('mysql');
index ddc6a6b48e4a615da884a1543de982af8ab7fdf5..711ad3edc1e7b87435f1aa07d72db220f89eb89f 100644 (file)
@@ -82,7 +82,7 @@ if (REQUEST_ISSET_GET(('access'))) {
 
                // Output the logfile's content and exit
                print($content);
 
                // Output the logfile's content and exit
                print($content);
-               exit;
+               shutdown();
        } else {
                // Not readable!
                LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('LOGFILE_NOT_READABLE'), $access));
        } else {
                // Not readable!
                LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('LOGFILE_NOT_READABLE'), $access));
index 334b7915d0b026bfa4c602228b62f20af223ee07..e347f4d00542efa269983a688b211a3dc2db9bdd 100644 (file)
@@ -70,7 +70,7 @@ if (REQUEST_ISSET_GET(('image'))) {
                imagepng($image);
                imagedestroy($image);
        }
                imagepng($image);
                imagedestroy($image);
        }
-       exit;
+       shutdown();
 } elseif (!REQUEST_ISSET_GET(('usage'))) {
        $FQFN = sprintf("%s%s/index.html",
                constant('PATH'),
 } elseif (!REQUEST_ISSET_GET(('usage'))) {
        $FQFN = sprintf("%s%s/index.html",
                constant('PATH'),
index c932435b45991ba329f72494c5c7c20fef0479c7..2a442bf48170a7589aa01404d595f9a88928a096 100644 (file)
@@ -57,11 +57,8 @@ foreach (array('request-functions', 'session-functions', 'config-functions', 'fi
 // Set error handler
 set_error_handler('__errorHandler');
 
 // Set error handler
 set_error_handler('__errorHandler');
 
-// Register shutdown hook
-register_shutdown_function('__SHUTDOWN_HOOK');
-
 // Check if the user setups his MySQL stuff...
 // Check if the user setups his MySQL stuff...
-if ((empty($MySQL['login'])) && (!defined('mxchange_installing')) && (!REQUEST_ISSET_GET(('installing'))) && (isInstalled())) {
+if ((empty($MySQL['login'])) && (!isInstalling()) && (!REQUEST_ISSET_GET('installing')) && (isInstalled())) {
        // No login entered and outside installation mode
        OUTPUT_HTML("<strong>{--LANG_WARNING--}:</strong> ");
        if (isInstalled()) {
        // No login entered and outside installation mode
        OUTPUT_HTML("<strong>{--LANG_WARNING--}:</strong> ");
        if (isInstalled()) {
@@ -238,7 +235,7 @@ if ((!isInstalling()) && (isInstalled())) {
        LOAD_EXTENSION("sql_patches");
 }
 
        LOAD_EXTENSION("sql_patches");
 }
 
-if ((getTotalFatalErrors() > 0) && (isInstalled()) && (!defined('mxchange_installing')) && ($GLOBALS['output_mode'] != "1")) {
+if ((getTotalFatalErrors() > 0) && (isInstalled()) && (!isInstalling()) && ($GLOBALS['output_mode'] != "1")) {
        // One or more fatal error(s) occur during connect...
        LOAD_INC_ONCE("inc/header.php");
        LOAD_INC_ONCE("inc/fatal_errors.php");
        // One or more fatal error(s) occur during connect...
        LOAD_INC_ONCE("inc/header.php");
        LOAD_INC_ONCE("inc/fatal_errors.php");
index ee26d4a30ee9e9daf158a4af2c456af9fe363f61..cc180638972edd2cc63f4be43d6973ee0ec92c5a 100644 (file)
@@ -66,6 +66,6 @@ echo "<html>
 </div>
 </body>
 </html>\n";
 </div>
 </body>
 </html>\n";
-exit;
+shutdown();
 //
 ?>
 //
 ?>
index d0acfbc3f021b00657cb2ea6e332e3ed1d3deda9..885a5f15321fcda85113670a33ba08c456e4e97b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -96,4 +96,7 @@ if (isInstalled()) {
 }
 
 // All done here...
 }
 
 // All done here...
+shutdown();
+
+//
 ?>
 ?>
index 78eeeef99925335c10d2b631a06c7e423c9c248f..89b6e33c96bffc4c2b0e5752a93b068cee47fdd4 100644 (file)
  * MA  02110-1301  USA                                                  *
  ************************************************************************/
 
  * MA  02110-1301  USA                                                  *
  ************************************************************************/
 
-// Tell every module / include file we are installing
-$GLOBALS['mxchange_installing'] = true;
-
 // Load security system
 require("inc/libs/security_functions.php");
 
 // Load security system
 require("inc/libs/security_functions.php");
 
+// Tell every module / include file we are installing
+$GLOBALS['mxchange_installing'] = true;
+
 // Init "action" and "what"
 $GLOBALS['what']   = "";
 $GLOBALS['action'] = "";
 // Init "action" and "what"
 $GLOBALS['what']   = "";
 $GLOBALS['action'] = "";
diff --git a/js.php b/js.php
index 64254221283d4264dd708c5339ea686ecd11eb41..2a94a011bb67ae8b3a2930bae1ae1a533dba8a65 100644 (file)
--- a/js.php
+++ b/js.php
@@ -82,5 +82,8 @@ if ((isInstalled()) && (REQUEST_ISSET_GET(('tag')))) {
        LOAD_INC_ONCE("inc/footer.php");
 } // END - if
 
        LOAD_INC_ONCE("inc/footer.php");
 } // END - if
 
+// Shutdown
+shutdown();
+
 //
 ?>
 //
 ?>
index 4a87812940b8f4242f1f75ff62cdfbf8f23d23fc..9c3c9810a7067951546cf18655710acb1f904f65 100644 (file)
@@ -98,4 +98,7 @@ if (isInstalled()) {
 }
 
 // All done here...
 }
 
 // All done here...
+shutdown();
+
+//
 ?>
 ?>
index f51eff956c9fac552442e8f7b0d490097bbef6cd..3fa280d270b0714c6cf33612366cea0d80b4042c 100644 (file)
--- a/login.php
+++ b/login.php
@@ -68,4 +68,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index 95b63187f6e9ede3cf57ecabbaacf7f615aac8bf..561d51b9eabf035d71474e41332f021a4542cf8e 100644 (file)
@@ -221,5 +221,8 @@ if (isInstalled()) {
        LOAD_URL("install.php");
 }
 
        LOAD_URL("install.php");
 }
 
+// Shutdown
+shutdown();
+
 //
 ?>
 //
 ?>
index fefa5fa4eda620db4ab1c2acb82dd69545e4a0b3..f51f2ce1fab411029d2fa08097e1a44cdc591827 100644 (file)
@@ -363,4 +363,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
diff --git a/ref.php b/ref.php
index 119078820bb3e5850f5bf53b772b9b7a2b6069e2..b82e4f83e37de32638c2d5f5d897a11b24013a73 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -115,4 +115,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index 2216280646ac64571179fd7257c340a423a0fad1..36eaec702b57297c010f27f839c9d47f992861ac 100644 (file)
@@ -142,4 +142,7 @@ LIMIT 1",
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index db8bd87df8a8d52241e5ccfb2078a2991d5d38ce..86f976ad0fc0e45a504b74da6b8c3a6ee3f83012 100644 (file)
@@ -71,4 +71,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index 4a462804402cf8fa6aa13ce6397e61f079db5d08..da8905c8bbc0c811eca8550d0b4bdb81ccf19318 100644 (file)
@@ -76,4 +76,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index 4441627df8ef49d60f4b9fbc43dccd00f0133f48..119453ad9dd38b80e5ca324e72c324317df2e111 100644 (file)
@@ -204,4 +204,7 @@ if (isInstalled()) {
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)
+shutdown();
+
+//
 ?>
 ?>
index aa210ce3cff2938b01dfb25128cea566b8667a8e..797f6fe85b61ccaa5959613ba670aa5805ed51c5 100644 (file)
--- a/view.php
+++ b/view.php
@@ -75,5 +75,8 @@ if (((REQUEST_ISSET_GET(('user'))) || (REQUEST_ISSET_GET(('reseller')))) && (REQ
        LOAD_URL (URL."/index.php");
 }
 
        LOAD_URL (URL."/index.php");
 }
 
-// END - if
+// Shutdown
+shutdown();
+
+//
 ?>
 ?>