/** * Load the page which lists configuration checks. */ public function index() { $this->disable_browser_caching(); $this->template->title = 'Configuration Check'; $this->template->content = new View('setup_check'); $this->template->content->checks = config_test::check_config(); }
if ($db_version < $app_version) { ?> <div class="ui-state-error ui-corner-all page-notice">Your database needs to be upgraded as the application version is <?php echo $app_version; ?> but the database version is <?php echo $db_version; ?> . <a class="ui-state-default ui-corner-all button" href="<?php echo url::base(); ?> index.php/home/upgrade">Run Upgrade</a></div> <?php } $problems = config_test::check_config(true, true); if (count($problems) > 0) { ?> <div class="ui-state-error ui-corner-all page-notice"> <p>There are configuration issues on this server. <span id="issues_toggle" class="ui-state-default ui-corner-all button" style="margin-left: 1em;">Show/Hide Details</span> </p> <div id='issues'> <?php foreach ($problems as $problem) { echo '<div class="page-notice ui-widget-content ui-corner-all"><div>' . $problem['title'] . '</div><div>' . $problem['description'] . '</div></div>'; } ?> </div> </div> <?php