function run()
 {
     $vc = new reasonVersionCheck();
     $resp = $vc->check();
     echo '<p>' . htmlspecialchars($resp['message'], ENT_QUOTES);
     if (!empty($resp['url'])) {
         echo ' <a href="' . htmlspecialchars($resp['url'], ENT_QUOTES) . '">Link</a>';
     }
     echo '<p>' . "\n";
     echo '<p class="smallText">Current version: ' . htmlspecialchars($vc->get_current_version_id(), ENT_QUOTES) . '</p>' . "\n";
 }
Beispiel #2
0
/**
 * Returns the version number of this instance of Reason CMS.
 */
function reason_get_version()
{
    static $version;
    if (!isset($version)) {
        reason_include_once('classes/version_check.php');
        $rvc = new reasonVersionCheck();
        $version = $rvc->get_current_version_id();
    }
    return $version;
}
Beispiel #3
0
/**
 * If this is a bleeding edge version of Reason, provide a reminder that upgrade scripts may need to be run (and a link)
 */
function upgrade_script_reminder()
{
    reason_include_once('classes/version_check.php');
    $vc = new reasonVersionCheck();
    $cur_version = $vc->get_current_version_id();
    $all_versions = $vc->get_all_versions();
    if (isset($all_versions[$cur_version]) && $all_versions[$cur_version] == 'bleeding') {
        echo '<h3>Bleeding Edge Version Detected</h3>';
        echo 'You are running a bleeding edge version of reason cms (' . $cur_version . '). Make sure you <a href="upgrade.php">run the latest upgrade scripts</a> to ensure your database is up to date.';
    }
}