[Comoblog-commit] comoblog/include libraries.inc.php,1.6,1.7
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-12-22 05:30:28
|
Update of /cvsroot/comoblog/comoblog/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16310/include Modified Files: libraries.inc.php Log Message: 1378108 - DB data changes in point version upgrades now supported Index: libraries.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/include/libraries.inc.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- libraries.inc.php 15 Dec 2005 23:58:06 -0000 1.6 +++ libraries.inc.php 22 Dec 2005 05:30:19 -0000 1.7 @@ -4,6 +4,30 @@ exit(); } +function in_supported_upgrade_list ($ver) { + if ($ver == "0.5.1" || $ver == "1.0") + return true; + else + return false; +} + +function in_supported_patch_list ($ver) { + if ($ver == "1.0") + return true; + else + return false; +} + +function check_version_match () { + $db_version = floatval(CFG_VERSION); + $file_version = file(dirname(__FILE__).'/../VERSION'); + + if ($db_version == floatval($file_version[0])) + return true; + else + return false; +} + function run_script ($script_name) { $errors = array(); |