X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finstall-inc.php;h=6994276a42326fd1b68177fff21c297a58deee21;hb=1cac7c65692001f226f4f2211c9de62f10953381;hp=26d21d89e91963eb5beb46bccd5feaef8db46677;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 26d21d89e9..6994276a42 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Funktionen fuer die Installationsroutine * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -42,19 +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); } -// Load sql_patches here -LOAD_EXTENSION("sql_patches"); - // 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 @@ -104,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(""); @@ -185,7 +182,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) define('__SMTP_USER' , REQUEST_POST('smtp_user')); define('__SMTP_PASS' , REQUEST_POST('smtp_pass1')); OUTPUT_HTML("
- +
- @@ -203,10 +200,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -217,10 +214,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -231,10 +228,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -245,10 +242,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) @@ -351,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 @@ -369,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--} @@ -193,7 +190,7 @@ if ((!isInstalled()) || (!isAdminRegistered()))
     
    + {--TEXT_PAGE_5--}