* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
************************************************************************/
// Some security stuff...
-if ((!defined('__SECURITY')) || (!isInstallationPhase())) {
+if ((!defined('__SECURITY')) || (!isInstaller())) {
die();
} // END - if
// Prepare emissing elements
-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'] = 'mailer';
-if (empty($GLOBALS['install_mysql']['type'])) $GLOBALS['install_mysql']['type'] = 'MyISAM';
+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'] = 'mailer';
+if (empty($GLOBALS['install_mysql']['type'])) $GLOBALS['install_mysql']['type'] = 'MyISAM';
+if (empty($GLOBALS['install_mysql']['extension'])) $GLOBALS['install_mysql']['extension'] = 'mysqli';
// Are there errors?
if (ifFatalErrorsDetected()) {
// Prepare content array
$content = array(
- 'mysql_host' => $GLOBALS['install_mysql']['host'],
-
-// [EOF]
-?>
- 'mysql_dbase' => $GLOBALS['install_mysql'['dbase',
- 'mysql_prefix' => $GLOBALS['install_mysql'['prefix',
- 'mysql_login' => $GLOBALS['install_mysql'['login',
- 'table_type' => $GLOBALS['install_mysql'['type',
- 'spath' => postRequestElement('spath'),
- 'burl' => postRequestElement('burl'),
- 'title' => postRequestElement('title'),
- 'slogan' => postRequestElement('slogan'),
- 'email' => postRequestElement('email')
+ 'mysql_host' => $GLOBALS['install_mysql']['host'],
+ 'mysql_dbase' => $GLOBALS['install_mysql']['dbase'],
+ 'mysql_prefix' => $GLOBALS['install_mysql']['prefix'],
+ 'mysql_login' => $GLOBALS['install_mysql']['login'],
+ 'table_type' => $GLOBALS['install_mysql']['type'],
+ 'database_extension' => $GLOBALS['install_mysql']['extension'],
+ 'spath' => postRequestElement('spath'),
+ 'burl' => postRequestElement('burl'),
+ 'title' => postRequestElement('title'),
+ 'slogan' => postRequestElement('slogan'),
+ 'email' => postRequestElement('email')
);
// Load template
addTemplateToInstallContent('install_page2', $content);
+
+// [EOF]
+?>