* $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 *
setConfigEntry('timezone', 'Europe/Berlin');
// And init timezone
-FILTER_INIT_TIMEZONE();
+FILTER_INIT_TIMEZONE(array());
// Init variables
$GLOBALS['install_mysql'] = array();
addTemplateToInstallContent('install_page1');
break;
- case '2': // MySQL data (alone!)
+ case '2': // Database login data
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>');
$smtpPass2 = postRequestParameter('smtp_pass');
} // END - if
- // MySQL settings
+ // Database login data
$content['mysql_host'] = $GLOBALS['install_mysql']['host'];
$content['mysql_dbase'] = $GLOBALS['install_mysql']['dbase'];
$content['mysql_prefix'] = $GLOBALS['install_mysql']['prefix'];
$content['smtp_user'] = postRequestParameter('smtp_user');
$content['smtp_pass'] = postRequestParameter('smtp_pass1');
- // MySQL data
+ // Database login data
$OUT = '';
foreach ($GLOBALS['install_mysql'] as $key => $value) {
$OUT .= ' <input type="hidden" name="mysql[' . $key . ']" value="' . $value . '" />';
// our own.
restore_error_handler();
- // Connect to MySQL server
+ // Connect to database server
SQL_CONNECT($GLOBALS['install_mysql']['host'], $GLOBALS['install_mysql']['login'], $GLOBALS['install_mysql']['pass1'], __FILE__, __LINE__);
// Is the link up?
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!
+ // Installation area not found
addFatalMessage(__FILE__, __LINE__, '{--INSTALL_MISSING_DUMPS--}');
return;
} // END - if