// 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');
// 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'))])) {
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
'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) {
);
// 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--}';
// 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
$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--}';