X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finstall-inc.php;h=c65b742c04378a3789eef21f64e64437497b073e;hb=8722c9768bade6b7717c0a79345618090fe43454;hp=94dfbb38a5bf592b30de5a515216b4d1792494f2;hpb=5ef6ed7373ae85e5635e39e2a0adf9496a8add05;p=mailer.git
diff --git a/inc/install-inc.php b/inc/install-inc.php
index 94dfbb38a5..c65b742c04 100644
--- a/inc/install-inc.php
+++ b/inc/install-inc.php
@@ -1,7 +1,7 @@
READ: ".$file."
");
- if (is_resource($fp)) {
- $fp_tmp = @fopen($tmp, 'w') or OUTPUT_HTML("WRITE: ".$tmp."
");
- if (is_resource($fp_tmp)) {
- while (!feof($fp)) {
- $line = fgets ($fp, 10240);
- if (strpos($line, $search) > -1) $next = 0;
- if ($next > -1) {
- if ($next == $SNEAK) {
- $next = -1;
- $line = $prefix.$DATA.$suffix."\n";
- } else {
- $next++;
- }
- }
- fputs($fp_tmp, $line);
- }
- fclose($fp_tmp);
- // Finished writing tmp file
- $done = true;
- }
+// Init variables
+$GLOBALS['install_mysql'] = array();
+if ((isPostRequestParameterSet('mysql')) && (is_array(postRequestParameter('mysql')))) {
+ // Transfer 'mysql' array
+ $GLOBALS['install_mysql'] = postRequestParameter('mysql');
+} // END - if
- // Close source directory
- fclose($fp);
+// Check if both passwords from SMTP are matching
+if ((isGetRequestParameterSet('page') && (getRequestParameter('page') == 5))) {
+ // Okay, we have to check it
+ if (isPostRequestParameterSet('smtp_user') && (!isPostRequestParameterSet('smtp_host'))) {
+ // Hostname not set
+ addToInstallContent('
'.print_r(getSqls(), true).''); + + // Are some SQLs found? + if (countSqls() == 0) { + // Abort here + addFatalMessage(__FILE__, __LINE__, '{--INSTALL_SQL_IMPORT_FAILED--}'); + return; + } // END - if + + // Now run all queries through and try to keep out empty or comment queries + runFilterChain('run_sqls'); + + // Copy the config template and verify it + doInstallWriteLocalConfig(); + } // END - if + } // END - if + } // END - if + + if (ifFatalErrorsDetected()) { + $OUT = ''; + foreach (getFatalArray() as $value) { + $OUT .= '