X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=6994276a42326fd1b68177fff21c297a58deee21;hp=34aa3fc9a02b0ee5d09138b3e37b25c0508b926c;hb=eeee0af1c4bb14b8438e2bfcb62dc14eb8f8fa5e;hpb=508228c85fba8448d00865b1639cb8cd7a69e457 diff --git a/inc/install-inc.php b/inc/install-inc.php index 34aa3fc9a0..6994276a42 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -10,7 +10,7 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Funktionen fuer die Installationsroutine * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * + * $Revision:: $ * * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * @@ -42,16 +42,16 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // Init variables -$mysql = ""; +$mysql = array(); if ((REQUEST_ISSET_POST(('mysql'))) && (is_array(REQUEST_POST('mysql')))) $mysql = REQUEST_POST('mysql'); // Check if both passwords from SMTP are matching -if ((REQUEST_ISSET_GET(('page')) && (REQUEST_GET('page') == 5))) { +if ((REQUEST_ISSET_GET('page') && (REQUEST_GET('page') == 5))) { // Okay, we have to check it if (REQUEST_ISSET_POST(('smtp_user')) && (!REQUEST_ISSET_POST(('smtp_host')))) { // Hostname not set @@ -101,7 +101,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) if (empty($mysql['dbase'])) $mysql['dbase'] = "your_database"; if (empty($mysql['login'])) $mysql['login'] = "your_login"; if (empty($mysql['host'])) $mysql['host'] = "localhost"; - if (empty($mysql['prefix'])) $mysql['prefix'] = "mxchange_"; + if (empty($mysql['prefix'])) $mysql['prefix'] = "mxchange"; if (empty($mysql['type'])) $mysql['type'] = "MyISAM"; if (getTotalFatalErrors() > 0) { OUTPUT_HTML(""); @@ -182,7 +182,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) define('__SMTP_USER' , REQUEST_POST('smtp_user')); define('__SMTP_PASS' , REQUEST_POST('smtp_pass1')); OUTPUT_HTML("
- +
- @@ -200,10 +200,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -214,10 +214,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -228,10 +228,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -242,10 +242,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -348,12 +348,12 @@ if ((!isInstalled()) || (!isAdminRegistered())) } // END - if if (getTotalFatalErrors() > 0) { - $OUT = ""; + $OUT = ''; foreach (getFatalArray() as $value) { $OUT .= "
  • ".$value."
  • \n"; } // END foreach define('__FATAL_ERROR_LI', $OUT); - $OUT = ""; + $OUT = ''; foreach ($mysql as $key => $value) { $OUT .= " \n"; } // END foreach @@ -366,18 +366,18 @@ if ((!isInstalled()) || (!isAdminRegistered())) define('__SMTP_PASS' , REQUEST_POST('smtp_pass1')); // Load template - LOAD_TEMPLATE("install_fatal_errors"); + LOAD_TEMPLATE('install_fatal_errors'); } else { // Installation is done! - LOAD_URL("install.php?page=finalize"); + LOAD_URL('install.php?page=finalize'); } } elseif (isInstalled()) { // Redirection after writing data... :-) - LOAD_TEMPLATE("install_finished"); + LOAD_TEMPLATE('install_finished'); } else { // Something goes wrong during installation! :-( addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_FINALIZER_FAILED')); - LOAD_INC("inc/fatal_errors.php"); + LOAD_INC('inc/fatal_errors.php'); } break;
    {--HEADER_TEXT_PAGE5--} @@ -190,7 +190,7 @@ if ((!isInstalled()) || (!isAdminRegistered()))
     
    + {--TEXT_PAGE_5--}