]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-inc.php
... instead display reload lock and minimum stay
[mailer.git] / inc / install-inc.php
index 062ed05871e79b64836b515c34f1a1fd5100f878..18af33b97dc2d136af0e86564ce398ec2efe379f 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -51,7 +51,7 @@ loadExtension('timezone', 'test');
 setConfigEntry('timezone', 'Europe/Berlin');
 
 // And init timezone
-FILTER_INIT_TIMEZONE();
+FILTER_INIT_TIMEZONE(array());
 
 // Init variables
 $GLOBALS['install_mysql'] = array();
@@ -105,7 +105,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        if (empty($GLOBALS['install_mysql']['dbase']))  $GLOBALS['install_mysql']['dbase']  = 'your_database';
                        if (empty($GLOBALS['install_mysql']['login']))  $GLOBALS['install_mysql']['login']  = 'your_login';
                        if (empty($GLOBALS['install_mysql']['host']))   $GLOBALS['install_mysql']['host']   = 'localhost';
-                       if (empty($GLOBALS['install_mysql']['prefix'])) $GLOBALS['install_mysql']['prefix'] = 'mxchange';
+                       if (empty($GLOBALS['install_mysql']['prefix'])) $GLOBALS['install_mysql']['prefix'] = 'mailer';
                        if (empty($GLOBALS['install_mysql']['type']))   $GLOBALS['install_mysql']['type']   = 'MyISAM';
                        if (ifFatalErrorsDetected()) {
                                addToInstallContent('<div class="install_fatal"><ul>');
@@ -200,9 +200,11 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                // You have submitted data then we have to reset the SQLs
                                initSqls();
 
-                               // Restore PHPs error handler to prevent ours to handle errors,
-                               // e.g. failed connection attempts. We want to handle them on
-                               // our own.
+                               /*
+                                * Restore PHPs error handler to prevent ours to handle errors,
+                                * e.g. failed connection attempts. We want to handle them on
+                                * our own.
+                                */
                                restore_error_handler();
 
                                // Connect to database server
@@ -214,8 +216,8 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                        if (SQL_SELECT_DB($GLOBALS['install_mysql']['dbase'], __FILE__, __LINE__) === true) {
                                                // Check for dumps
                                                if ((!isFileReadable(postRequestParameter('spath') . 'install/tables.sql')) || (!isFileReadable(postRequestParameter('spath') . 'install/menu-'.getLanguage().'.sql'))) {
-                                                       // Installation area not found!
-                                                       addFatalMessage(__FILE__, __LINE__, '{--INSTALL_MISSING_DUMPS--}');
+                                                       // Installation area not found
+                                                       debug_report_bug(__FILE__, __LINE__, 'SQL dumps not found. Please extract ALL files from the archive or checkout all files out from SVN.');
                                                        return;
                                                } // END - if