Final fix for #2074 - make it easier to change the version number. You can now set the version number for PHP code in src/modules/storageServer/var/campcaster_version.php - all components look at this file to get the version number.

This commit is contained in:
paul 2007-01-27 17:11:02 +00:00
parent 314ff9eeb0
commit c66be911e6
7 changed files with 10 additions and 6 deletions

View File

@ -3,7 +3,7 @@
* ArchiveServer configuration file * ArchiveServer configuration file
*/ */
define('CAMPCASTER_VERSION', '1.1.1'); include(dirname(__FILE__)."/../../storageServer/var/campcaster_version.php");
/** /**
* configuration structure: * configuration structure:

View File

@ -3,7 +3,7 @@
* ArchiveServer configuration file * ArchiveServer configuration file
*/ */
define('CAMPCASTER_VERSION', '1.1.1'); include(dirname(__FILE__)."/../../storageServer/var/campcaster_version.php");
/** /**
* configuration structure: * configuration structure:

View File

@ -11,7 +11,6 @@ if (UI_DEBUG) {
error_reporting(E_ALL); error_reporting(E_ALL);
} }
define('UI_VERSION', 'Campcaster 1.1.1');
define('UI_VERSION_FULLNAME', 'Campcaster 1.1.1'); define('UI_VERSION_FULLNAME', 'Campcaster 1.1.1');
define('UI_TESTSTREAM_MU3_TMP', 'img/listen.m3u'); define('UI_TESTSTREAM_MU3_TMP', 'img/listen.m3u');
@ -118,6 +117,7 @@ define('UI_RESTORETOKEN_KEY', 'restoreToken');
//require_once('PEAR.php'); //require_once('PEAR.php');
require_once('../../../storageServer/var/conf.php'); require_once('../../../storageServer/var/conf.php');
define('UI_VERSION', CAMPCASTER_VERSION);
// extent config // extent config
$CC_CONFIG = array_merge($CC_CONFIG, $CC_CONFIG = array_merge($CC_CONFIG,

View File

@ -11,7 +11,6 @@ if (UI_DEBUG) {
error_reporting(E_ALL); error_reporting(E_ALL);
} }
define('UI_VERSION', 'Campcaster 1.1.1');
define('UI_VERSION_FULLNAME', 'Campcaster 1.1.1'); define('UI_VERSION_FULLNAME', 'Campcaster 1.1.1');
define('UI_TESTSTREAM_MU3_TMP', 'img/listen.m3u'); define('UI_TESTSTREAM_MU3_TMP', 'img/listen.m3u');
@ -121,6 +120,8 @@ define('UI_BACKUPTOKEN_KEY', 'backupToken');
define('UI_RESTORETOKEN_KEY', 'restoreToken'); define('UI_RESTORETOKEN_KEY', 'restoreToken');
require_once('storage_server/var/conf.php'); require_once('storage_server/var/conf.php');
define('UI_VERSION', CAMPCASTER_VERSION);
// extent config // extent config
$CC_CONFIG = array_merge($CC_CONFIG, $CC_CONFIG = array_merge($CC_CONFIG,
array( array(

View File

@ -0,0 +1,3 @@
<?php
define('CAMPCASTER_VERSION', '1.2.0');
?>

View File

@ -31,7 +31,7 @@
* </dl> * </dl>
*/ */
define('CAMPCASTER_VERSION', '1.1.1'); include("campcaster_version.php");
// these are the default values for the config // these are the default values for the config
global $CC_CONFIG; global $CC_CONFIG;

View File

@ -32,7 +32,7 @@
* </dl> * </dl>
*/ */
define('CAMPCASTER_VERSION', '1.1.1'); include("campcaster_version.php");
// these are the default values for the config // these are the default values for the config