<?php
/************************************************************************
- * MXChange v0.2.1 Start: 08/29/2003 *
- * =============== Last change: 11/11/2004 *
+ * Mailer v0.2.1-FINAL Start: 08/29/2003 *
+ * =================== Last change: 11/11/2004 *
* *
* -------------------------------------------------------------------- *
* File : install-inc.php *
} // END - if
} // END - if
-// Is MXChange installed or no admin registered so far?
+// Is the mailer installed or no admin registered so far?
if ((!isInstalled()) || (!isAdminRegistered())) {
// Output page for entered value
switch (getRequestElement('page')) {
addTemplateToInstallContent('install_welcome');
break;
- case 1: // Server path, base URL
+ case '1': // Server path, base URL
// Load template
addTemplateToInstallContent('install_page1');
break;
- case 2: // MySQL data (alone!)
+ case '2': // MySQL data (alone!)
if (empty($mysql['dbase'])) $mysql['dbase'] = 'your_database';
if (empty($mysql['login'])) $mysql['login'] = 'your_login';
if (empty($mysql['host'])) $mysql['host'] = 'localhost';
addTemplateToInstallContent('install_page2', $content);
break;
- case 3:
+ case '3':
// Set more values
$content['spath'] = postRequestElement('spath');
$content['burl'] = postRequestElement('burl');
addTemplateToInstallContent('install_page3', $content);
break;
- case 5: // Misc settings
+ case '5': // Misc settings
// General settings
$content['spath'] = postRequestElement('spath');
$content['burl'] = postRequestElement('burl');
addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_MISSING_DUMPS'));
} // END - if
- if (getTotalFatalErrors() == 0) {
+ if (getTotalFatalErrors() == '0') {
// Set type and prefix from POST data
setConfigEntry('_TABLE_TYPE' , postRequestElement('mysql', 'type'));
setConfigEntry('_MYSQL_PREFIX', postRequestElement('mysql', 'prefix'));
//* DEBUG: */ die('<pre>'.print_r(getSqls(), true).'</pre>');
// Are some SQLs found?
- if (countSqls() == 0) {
+ if (countSqls() == '0') {
// Abort here
addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_SQL_IMPORT_FAILED'));
return;