Location: PHPKode > projects > Cynus > cynus/compatibility.php
 * @file compatibility.php - Lists compatibility with older versions
 * @Id $Id: compatibility.php,v 2004/08/01 20:06:59 brett Exp $
 * Cynus - a web-based content manager
 * Copyright (C) 2003 Brett and Jason Profitt
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.


This file lists what versions of Cynus Base are compatible with which Cynus
config files and SQL structures.

If you change the SQL (EVEN A LITTLE) increment the config_version

Each config version is an array within the $versions array.
The the elements of those arrays are which versions of Cynus Base
is compatible with that version of the config.  Remember that CVS
installs will have .cvs appened to the last digit.


$versions[1] = array ('0.5.0.cvs', '0.5.0');
$versions[2] = array ('0.5.1.cvs', '0.5.1', '0.5.2');

This file also includes the function:
	compat_check($base_version, $config_version);
		Checks if $base_version and $config_version
		are compatible.

# compatibility array.  make CERTAIN this is up to date and 
# accurate!
$versions[1] = array (
	'0.6.0.cvs', '0.6.0', '0.6.1-cvs', '0.6.1', '0.6.2-cvs', '0.6.2',

# checks to see if $base_ver and $config_ver will play nicely together
function compat_check($base_ver, $config_ver) {
	global $versions;
	return in_array ($base_ver, $versions[$config_ver]);

Return current item: Cynus