]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-inc.php
Surfbar URL status translation added, member template name fixed
[mailer.git] / inc / install-inc.php
index 850d6fae7e6b0390cd862f7983989ce4f7ccd64f..5f9fede1c27f7ed416f8fda48a8aad31897120b3 100644 (file)
@@ -45,7 +45,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
 function install_WriteData ($file, $comment, $prefix, $suffix, $DATA, $sneak=0) {
        // Initialize all and count up the "seak" value
        $done = false;
-       $next = 0;
+       $next = -1;
        $sneak++;
 
        if ((file_exists($file)) && (is_readable($file))) {
@@ -60,7 +60,7 @@ function install_WriteData ($file, $comment, $prefix, $suffix, $DATA, $sneak=0)
                                        //* DEBUG: */ echo $search."/<font color=\"red\">".htmlentities($line)."</font><br />\n";
                                        $found = strpos($line, $search);
                                        //* DEBUG: */ echo "FOUND: <font color=\"brown\">";
-                                       var_dump($found);
+                                       //* DEBUG: */ var_dump($found);
                                        //* DEBUG: */ echo "</font><br />\n";
                                        if ($found !== false) $next = 0;
                                        if ($next > -1) {
@@ -398,7 +398,6 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT
                                                install_WriteData($_POST['spath']."inc/config.php", "SMTP-USER", "define('SMTP_USER', \"", "\");", $_POST['smtp_user'], 0);
                                                install_WriteData($_POST['spath']."inc/config.php", "SMTP-PASSWORD", "define('SMTP_PASSWORD', \"", "\");", $_POST['smtp_pass'], 0);
                                                install_WriteData($_POST['spath']."inc/config.php", "INSTALLED", "define('mxchange_installed', ", ");", "true", 0);
-                                               die();
 
                                                // Close the link
                                                SQL_CLOSE($link, __FILE__, __LINE__);