<td rowspan="2"><div id="mainLogo"></div></td> <td><span id="mainLogoText">OpenCATS</span></td> </tr> <tr> <td><span id="subLogoText">Applicant Tracking System</span></td> </tr> </table> </div> <br /> <p class="note">CATS Installation Test</p> <?php echo '<table class="test_output">'; $proceed = true; $warningsOccurred = false; $proceed = $proceed && InstallationTests::runCoreTests(); $proceed = $proceed && InstallationTests::checkMySQL(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); $proceed = $proceed && InstallationTests::checkAttachmentsDir(); $proceed = $proceed && InstallationTests::checkAntiword(); echo '</table>'; if (!$proceed) { echo '<p id="footer_fail">One ore more tests failed. Please fix the problem and refresh this page.</p>'; if ($warningsOccurred) { echo '<p id="footer_warning">One or more tests issued a warning. Once the fatal errors (red) are fixed, you may still proceed, but read the warnings carefully and address them if you can.</p>'; } } else { if ($warningsOccurred) { echo '<p id="footer_warning">One or more tests issued a warning. You may still proceed, but read the warnings carefully and address them if you can.</p>'; } echo '<p id="footer_pass">All tests passed successfully! Proceed to the next step.</p>'; } ?>
CATSUtility::changeConfigSetting('MAIL_SMTP_USER', '"' . $mailSmtpUsername . '"'); CATSUtility::changeConfigSetting('MAIL_SMTP_PASS', '"' . $mailSmtpPassword . '"'); @session_name(CATS_SESSION_NAME); session_start(); $_SESSION['fromAddressInstaller'] = $fromAddress; echo '<script type="text/javascript"> setActiveStep(6); showTextBlock(\'detectingOptional\'); setTimeout("Installpage_populate(\'a=optionalComponents\');", 5000); </script>'; } break; case 'testDatabaseConnectivity': echo '<br /><span style="font-weight: bold;">Test Results</span>'; echo '<table class="test_output">'; if (InstallationTests::checkMySQL(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME)) { echo '<script type="text/javascript">showTextBlock(\'MySQLTestPassed\');</script>'; } else { echo '<script type="text/javascript">showTextBlock(\'MySQLTestFailed\');</script>'; } echo '</table>'; echo ' <script type="text/javascript"> document.getElementById(\'testDatabaseConnectivity\').disabled = false; document.getElementById(\'testDatabaseConnectivityIndicator\').style.visibility = \'hidden\'; </script>'; break; case 'resumeParsing': echo '<script type="text/javascript">setActiveStep(4);</script>'; if (ANTIWORD_PATH == '') { echo '