]> git.mxchange.org Git - mailer.git/blobdiff - inc/ajax/ajax_installer.php
Code style changed, ext-user continued:
[mailer.git] / inc / ajax / ajax_installer.php
index f9c50322d0119c20a4853349607cd17a7843d056..d6041f458c1aae399de680d296ecc30352c5ef8e 100644 (file)
@@ -77,7 +77,7 @@ function doAjaxProcessInstall () {
 // Processes installer request for testing
 function doAjaxInstallerTest () {
        // Load the "test passed" template
-       setAjaxReplyContent(loadTemplate('ajax_test_passed', true));
+       setAjaxReplyContent(loadTemplate('ajax_test_passed', TRUE));
 
        // All okay if we reach this point
        setHttpStatus('200 OK');
@@ -147,7 +147,7 @@ function doAjaxInstallerRequestContent () {
        // Is the HTTP status still the same? (204 No Content)
        if (getHttpStatus() == '204 No Content') {
                // We use the current access level 'install' as prefix and construct a template name
-               setAjaxReplyContent(loadTemplate('install_page_' . trim(postRequestElement('tab')), true));
+               setAjaxReplyContent(loadTemplate('install_page_' . trim(postRequestElement('tab')), TRUE));
 
                // Has the template been loaded?
                if (isset($GLOBALS['template_content']['html']['install_page_' . trim(postRequestElement('tab'))])) {
@@ -185,10 +185,10 @@ function doAjaxInstallerChangeWarning () {
 
        if (in_array(postRequestElement('button'), array('previous', 'next'))) {
                // Load 'prefixed' template
-               setAjaxReplyContent(loadTemplate('install_warning_' . postRequestElement('button'), true, $content));
+               setAjaxReplyContent(loadTemplate('install_warning_' . postRequestElement('button'), TRUE, $content));
        } else {
                // Load 'tab' template
-               setAjaxReplyContent(loadTemplate('install_warning_tab', true, $content));
+               setAjaxReplyContent(loadTemplate('install_warning_tab', TRUE, $content));
        }
 
        // All okay if we reach this point
@@ -217,12 +217,12 @@ function doAjaxInstallerSaveChanges () {
                'status'        => 'failed',
                'message'       => '{--INSTALLER_SAVE_CHANGES_FAILED--}',
                // Don't set this to false, or else it will be returned as 'failed' but is saved
-               'is_saved'      => true,
+               'is_saved'      => TRUE,
                'failed_fields' => array()
        );
 
        // Init overall status
-       $isAllSaved = true;
+       $isAllSaved = TRUE;
 
        // Now set all remaining data in session
        foreach (postRequestArray() as $key => $value) {
@@ -236,12 +236,12 @@ function doAjaxInstallerSaveChanges () {
                );
 
                // Save the overall status for below final check
-               $isAllSaved = (($isAllSaved === true) && ($saveStatus['is_saved'] === true));
+               $isAllSaved = (($isAllSaved === TRUE) && ($saveStatus['is_saved'] === TRUE));
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value=' . $value . ',is_saved=' . intval($saveStatus['is_saved']) . ',isAllSaved=' . intval($isAllSaved));
        } // END - foreach
 
        // 'is_saved' is still true?
-       if ($isAllSaved === true) {
+       if ($isAllSaved === TRUE) {
                // Set 'done' and message
                $saveStatus['status']  = 'done';
                $saveStatus['message'] = '{--INSTALLER_SAVE_CHANGES_DONE--}';
@@ -390,13 +390,13 @@ function doAjaxPrepareInstallerOverview () {
                // Status message (e.g. for output)
                'message'       => '{--INSTALLER_OVERVIEW_FINAL_CHECK_FAILED--}',
                // Don't set this to false, or else it will be returned as 'failed' but is saved
-               'is_valid'      => true,
+               'is_valid'      => TRUE,
                // Failed fields
                'failed_fields' => array()
        );
 
        // Init overall status and final output
-       $isAllValid = true;
+       $isAllValid = TRUE;
        $output     = '';
 
        // Check all data in session
@@ -411,18 +411,18 @@ function doAjaxPrepareInstallerOverview () {
                $verificationStatus['is_valid'] = (isInstallerDataValid($verificationStatus, $key, $value));
 
                // Is this step okay?
-               if ($verificationStatus['is_valid'] === true) {
+               if ($verificationStatus['is_valid'] === TRUE) {
                        // Add this key/value pair to a overview group
                        addKeyValueToInstallerOverviewGroup($key, $value);
                } // END - if
 
                // Save the overall status for below final check
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value=' . $value . ',is_valid=' . intval($verificationStatus['is_valid']) . ',isAllValid=' . intval($isAllValid));
-               $isAllValid = (($isAllValid === true) && ($verificationStatus['is_valid'] === true));
+               $isAllValid = (($isAllValid === TRUE) && ($verificationStatus['is_valid'] === TRUE));
        } // END - foreach
 
        // Is it still true?
-       if ($isAllValid === true) {
+       if ($isAllValid === TRUE) {
                // Set 'done' and message
                $verificationStatus['status']  = 'done';
                $verificationStatus['message'] = '{--INSTALLER_OVERVIEW_FINAL_CHECK_DONE--}';