00001 <?php 00002 /* 00003 * ImaComm - a web based photo album software 00004 * Copyright (C) 2003, Mikko Kokkonen 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or (at 00009 * your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00026 $_verprefix = dirname(__FILE__); 00027 00031 define("VERSION_TYPE_FULL", 2); 00035 define("VERSION_TYPE_SHORT", 4); 00036 00045 function versionInfo($type = VERSION_TYPE_FULL) 00046 { 00047 $_major = 0; 00048 $_minor = 0; 00049 $_release = 1; 00050 $_extra = null; 00051 00052 if ($type == VERSION_TYPE_FULL) 00053 { 00054 $ver = "ImaComm version"; 00055 } 00056 else 00057 { 00058 $ver = "ImaComm"; 00059 } 00060 return "$ver $_major.$_minor.$_release".((is_null($_extra)) ? "" : "-$_extra"); 00061 } 00062 ?>
1.3