includes/common.php
changeset 685 17ebe24cdf85
parent 678 c5d4ce19e640
child 702 15cd41fd8a05
equal deleted inserted replaced
684:15dbbe7e7674 685:17ebe24cdf85
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.1.4 (Caoineag alpha 4)
     5  * Version 1.1.5 (Caoineag alpha 5)
     6  * Copyright (C) 2006-2008 Dan Fuhry
     6  * Copyright (C) 2006-2008 Dan Fuhry
     7  *
     7  *
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  *
    10  *
    42 // Our version number
    42 // Our version number
    43 // This needs to match the version number in the database. This number should
    43 // This needs to match the version number in the database. This number should
    44 // be the expected output of enano_version(), which will always be in the
    44 // be the expected output of enano_version(), which will always be in the
    45 // format of 1.0.2, 1.0.2a1, 1.0.2b1, 1.0.2RC1
    45 // format of 1.0.2, 1.0.2a1, 1.0.2b1, 1.0.2RC1
    46 // You'll want to change this for custom distributions.
    46 // You'll want to change this for custom distributions.
    47 $version = '1.1.4';
    47 $version = '1.1.5';
    48 
    48 
    49 /**
    49 /**
    50  * Returns a floating-point number with the current UNIX timestamp in microseconds. Defined very early because we gotta call it
    50  * Returns a floating-point number with the current UNIX timestamp in microseconds. Defined very early because we gotta call it
    51  * from very early on in the script to measure the starting time of Enano.
    51  * from very early on in the script to measure the starting time of Enano.
    52  * @return float
    52  * @return float
   258 }
   258 }
   259 
   259 
   260 // Now that we have the config, check the Enano version.
   260 // Now that we have the config, check the Enano version.
   261 if ( enano_version(false, true) != $version && !defined('IN_ENANO_UPGRADE') )
   261 if ( enano_version(false, true) != $version && !defined('IN_ENANO_UPGRADE') )
   262 {
   262 {
   263   grinding_halt('Version mismatch', '<p>It seems that the Enano release we\'re trying to run ('.$version.') is different from the version specified in your database ('.enano_version().'). Perhaps you need to <a href="'.scriptPath.'/install/upgrade.php">upgrade</a>?</p>');
   263   grinding_halt('Version mismatch', '<p>It seems that the Enano release we\'re trying to run ('.$version.') is different from the version specified in your database ('.enano_version().'). Perhaps you need to <a href="'.scriptPath.'/install/index.php">upgrade</a>?</p>');
   264 }
   264 }
   265 
   265 
   266 // Set our CDN path
   266 // Set our CDN path
   267 if ( !defined('cdnPath') )
   267 if ( !defined('cdnPath') )
   268   define('cdnPath', getConfig('cdn_path', scriptPath));
   268   define('cdnPath', getConfig('cdn_path', scriptPath));