<h3><?php echo $site_full_name . ' ' . i18n_r('INSTALLATION'); ?> </h3> <table class="highlight healthcheck"> <?php # check to see if there is a core update needed $verdata = getVerCheck(); $verstatus = $verdata->status; if ($verstatus == '0') { $ver = '<span class="ERRmsg" >' . i18n_r('UPG_NEEDED') . ' <b>' . $apikey->latest . '</b><br /><a href="' . $site_link_back_url . 'download" target="_blank" >' . i18n_r('DOWNLOAD') . '</a></span>'; } elseif ($verstatus == '1') { $ver = '<span class="OKmsg" ><b>' . $site_version_no . '</b> - ' . i18n_r('LATEST_VERSION') . '</span>'; } elseif ($verstatus == '2') { $ver = '<span class="WARNmsg" ><b>' . $site_version_no . '</b> - ' . (isAlpha() ? i18n_r('ALPHA_TITLE') : i18n_r('BETA_TITLE')) . '</span>'; } else { $ver = '<span class="WARNmsg" >' . i18n_r('CANNOT_CHECK') . ' <b>' . $site_version_no . '</b><br /><a href="' . $site_link_back_url . 'download/" target="_blank" >' . i18n_r('DOWNLOAD') . '</a></span>'; } ?> <tr><td style="width:380px;" ><?php echo $site_full_name; ?> <?php i18n_r('VERSION'); ?> </td><td><?php echo $ver; ?> </td></tr> <tr><td>
function isAlnum($char) { return isAlpha($char) || isDigit($char); }
" ><?php i18n('TAB_SUPPORT'); ?> </a></li> <?php // nav status labels if (isDebug()) { echo '<li class="rightnav"><a class="label label-error label_4_80" href="' . $debugInfoUrl . '" target="_blank" title="' . i18n_r('DEBUG_MODE') . ' - ' . i18n_r('ON') . '"><span><span class="fa fa-fw fa-wrench"></span></span></a></li>'; } if (allowVerCheck()) { $verstatus = getVerCheck()->status; if ($verstatus == 0) { // update available newer than current echo '<li class="rightnav"><a class="label label-gold" href="health-check.php" title="' . i18n_r('UPG_NEEDED') . '"><span class="fa fa-fw fa-lg fa-cloud-download"></span></a></li>'; } } if (isBeta() || isAlpha()) { echo '<li class="rightnav"><a class="label label-ghost" href="health-check.php" title="' . (isAlpha() ? i18n_r('ALPHA') : i18n_r('BETA')) . ' - ' . i18n_r('WEB_HEALTH_CHECK') . '"><span><span class="fa fa-fw fa-flask"></span> ' . (isAlpha() ? i18n_r('ALPHA') : i18n_r('BETA')) . '</span></a></li>'; } ?> </ul> </div> </div> <div class="wrapper"> <?php include 'template/error_checking.php';
exec_action(get_filename_id() . '-body'); echo '<table class="highlight healthcheck">'; # check to see if there is a core update needed $verdata = getVerCheck(); $verstatus = $verdata->status; // $verstatus = $_GET['status']; // debugging $verstring = sprintf(i18n_r('CURR_VERSION'), '<b>' . $site_version_no . '</b>') . '<hr>'; if ($verstatus == '0') { // upgrade recomended $ver = '<div id="hc_version" class="label label-error" >' . $verstring . i18n_r('UPG_NEEDED') . ' (<b>' . $verdata->latest . '</b>)<br /><a href="' . $site_link_back_url . 'download/">' . i18n_r('DOWNLOAD') . '</a></div>'; } elseif ($verstatus == '1') { // latest version $ver = '<div id="hc_version" class="label label-ok" >' . $verstring . i18n_r('LATEST_VERSION') . '</div>'; } elseif ($verstatus == '2') { // bleeding edge $ver = '<div id="hc_version" class="label ' . (isAlpha() ? 'label-info' : 'label-info') . '" >' . $verstring . (isAlpha() ? i18n_r('ALPHA_TITLE') : i18n_r('BETA_TITLE')) . '</div>'; } else { // cannot check $ver = '<div id="hc_version" class="label label-warn" >' . $verstring . i18n_r('CANNOT_CHECK') . '<br /><a href="' . $site_link_back_url . 'download">' . i18n_r('CHECK_MANUALLY') . '</a></div>'; } ?> <tr><td class="hc_item" ><?php echo $site_full_name; ?> <?php i18n('VERSION'); ?> </td><td><?php echo $ver; ?> </td></tr>