]> git.mxchange.org Git - mailer.git/commitdiff
Double-quotes to single-quotes converted, tabs rewritten to spaces (not all)
authorRoland Häder <roland@mxchange.org>
Thu, 2 Apr 2009 18:21:50 +0000 (18:21 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 2 Apr 2009 18:21:50 +0000 (18:21 +0000)
inc/install-inc.php

index 91eab08c8bcb1b4d4e1a97b9d5c1d066a9967000..cf051fd03384f6a6329f25f7bb45882ab73bd72a 100644 (file)
@@ -127,11 +127,11 @@ if ((!isInstalled()) || (!isAdminRegistered()))
 
        case "3":
                // Set more values
-               define('__SPATH_VALUE'  , REQUEST_POST('spath'));
-               define('__BURL_VALUE'   , REQUEST_POST('burl'));
-               define('__TITLE_VALUE'  , REQUEST_POST('title'));
-               define('__SLOGAN_VALUE' , REQUEST_POST('slogan'));
-               define('__EMAIL_VALUE'  , REQUEST_POST('email'));
+               define('__SPATH_VALUE' , REQUEST_POST('spath'));
+               define('__BURL_VALUE'  , REQUEST_POST('burl'));
+               define('__TITLE_VALUE' , REQUEST_POST('title'));
+               define('__SLOGAN_VALUE', REQUEST_POST('slogan'));
+               define('__EMAIL_VALUE' , REQUEST_POST('email'));
 
                // Use default SMTP data
                $smtpHost  = constant('SMTP_HOSTNAME');
@@ -144,19 +144,19 @@ if ((!isInstalled()) || (!isAdminRegistered()))
                if (REQUEST_ISSET_POST(('smtp_user'))) $smtpUser = REQUEST_POST('smtp_user');
 
                // MySQL settings
-               define('__MYSQL_HOST'   , $mysql['host']);
-               define('__MYSQL_DBASE'  , $mysql['dbase']);
-               define('__MYSQL_PREFIX' , $mysql['prefix']);
-               define('__TABLE_TYPE'   , $mysql['type']);
-               define('__MYSQL_LOGIN'  , $mysql['login']);
-               define('__MYSQL_PASS1'  , $mysql['pass1']);
-               define('__MYSQL_PASS2'  , $mysql['pass2']);
+               define('__MYSQL_HOST'  , $mysql['host']);
+               define('__MYSQL_DBASE' , $mysql['dbase']);
+               define('__MYSQL_PREFIX', $mysql['prefix']);
+               define('__TABLE_TYPE'  , $mysql['type']);
+               define('__MYSQL_LOGIN' , $mysql['login']);
+               define('__MYSQL_PASS1' , $mysql['pass1']);
+               define('__MYSQL_PASS2' , $mysql['pass2']);
 
                // Set constants for SMTP data
-               define('__SMTP_HOST'    , $smtpHost);
-               define('__SMTP_USER'    , $smtpUser);
-               define('__SMTP_PASS1'   , $smtpPass1);
-               define('__SMTP_PASS2'   , $smtpPass2);
+               define('__SMTP_HOST' , $smtpHost);
+               define('__SMTP_USER' , $smtpUser);
+               define('__SMTP_PASS1', $smtpPass1);
+               define('__SMTP_PASS2', $smtpPass2);
 
                // Load template
                LOAD_TEMPLATE("install_page3");
@@ -164,23 +164,23 @@ if ((!isInstalled()) || (!isAdminRegistered()))
 
        case "5": // Misc settings
                // General settings
-               define('__SPATH_VALUE'  , REQUEST_POST('spath'));
-               define('__BURL_VALUE'   , REQUEST_POST('burl'));
-               define('__TITLE_VALUE'  , REQUEST_POST('title'));
-               define('__SLOGAN_VALUE' , REQUEST_POST('slogan'));
-               define('__EMAIL_VALUE'  , REQUEST_POST('email'));
+               define('__SPATH_VALUE' , REQUEST_POST('spath'));
+               define('__BURL_VALUE'  , REQUEST_POST('burl'));
+               define('__TITLE_VALUE' , REQUEST_POST('title'));
+               define('__SLOGAN_VALUE', REQUEST_POST('slogan'));
+               define('__EMAIL_VALUE' , REQUEST_POST('email'));
 
                // MySQL settings
-               define('__MYSQL_HOST'   , $mysql['host']);
-               define('__MYSQL_DBASE'  , $mysql['dbase']);
-               define('__MYSQL_PREFIX' , $mysql['prefix']);
-               define('__TABLE_TYPE'   , $mysql['type']);
-               define('__MYSQL_LOGIN'  , $mysql['login']);
+               define('__MYSQL_HOST'  , $mysql['host']);
+               define('__MYSQL_DBASE' , $mysql['dbase']);
+               define('__MYSQL_PREFIX', $mysql['prefix']);
+               define('__TABLE_TYPE'  , $mysql['type']);
+               define('__MYSQL_LOGIN' , $mysql['login']);
 
                // SMTP settings
-               define('__SMTP_HOST'    , REQUEST_POST('smtp_host'));
-               define('__SMTP_USER'    , REQUEST_POST('smtp_user'));
-               define('__SMTP_PASS'    , REQUEST_POST('smtp_pass1'));
+               define('__SMTP_HOST', REQUEST_POST('smtp_host'));
+               define('__SMTP_USER', REQUEST_POST('smtp_user'));
+               define('__SMTP_PASS', REQUEST_POST('smtp_pass1'));
                OUTPUT_HTML("<form action=\"{!__BURL_ACTION!}/install.php?page=finalize\" method=\"POST\" target=\"_self\">
 <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"install_main\">
 <tr>
@@ -200,10 +200,10 @@ if ((!isInstalled()) || (!isAdminRegistered()))
   <td>
     <select name=\"omode\" size=\"1\" class=\"install_select\">
       <option value=\"render\"");
-               if (constant('OUTPUT_MODE') == "render") OUTPUT_HTML(' selected="selected"');
+               if (constant('OUTPUT_MODE') == 'render') OUTPUT_HTML(' selected="selected"');
                OUTPUT_HTML(">{--MODE_RENDER--}</option>
       <option value=\"direct\"");
-               if (constant('OUTPUT_MODE') == "direct") OUTPUT_HTML(' selected="selected"');
+               if (constant('OUTPUT_MODE') == 'direct') OUTPUT_HTML(' selected="selected"');
                OUTPUT_HTML(">{--MODE_DIRECT--}</option>
     </select>
   </td>