|
From: <rd...@us...> - 2008-07-31 15:35:20
|
Revision: 740
http://digir.svn.sourceforge.net/digir/?rev=740&view=rev
Author: rdg
Date: 2008-07-31 15:35:10 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
New setting TP_CHECK_UPDATE_URL can be used to provide a custom link for automatic updates.
Modified Paths:
--------------
tapirlink/trunk/admin/check_update.php
tapirlink/trunk/www/localconfig_dist.php
tapirlink/trunk/www/tapir_globals.php
Modified: tapirlink/trunk/admin/check_update.php
===================================================================
--- tapirlink/trunk/admin/check_update.php 2008-07-29 11:34:28 UTC (rev 739)
+++ tapirlink/trunk/admin/check_update.php 2008-07-31 15:35:10 UTC (rev 740)
@@ -24,6 +24,7 @@
// When TapirLink is installed with Subversion, this script can be used to check
// if there's a new stable version available, and in this case update the local copy.
+require_once('../www/tapir_globals.php');
require_once('../classes/TpUtils.php');
global $g_local_revision;
@@ -78,8 +79,7 @@
if ( empty( $output_svn_info ) )
{
- die( 'Could not use Subversion to determine the local installation revision number' );
- // Check if Subversion is installed and if it is in the path
+ die( 'Could not use Subversion to determine the local installation revision number. Please make sure that Subversion (command-line program called svn) is installed and is in the path for the Web Server user.' );
}
// Parse XML to get revision
@@ -96,7 +96,7 @@
xml_parser_free( $parser );
// Get latest recommended revision number
-$fh = TpUtils::OpenFile( 'http://rs.tdwg.org/tapir/software/tlink.xml' );
+$fh = TpUtils::OpenFile( TP_CHECK_UPDATE_URL );
if ( ! is_resource( $fh ) )
{
Modified: tapirlink/trunk/www/localconfig_dist.php
===================================================================
--- tapirlink/trunk/www/localconfig_dist.php 2008-07-29 11:34:28 UTC (rev 739)
+++ tapirlink/trunk/www/localconfig_dist.php 2008-07-31 15:35:10 UTC (rev 740)
@@ -235,6 +235,14 @@
//define('TP_FILE_RETRIEVAL_BEHAVIOUR', 'prefer_original' or 'prefer_local' or 'only_local');
/**
+* When using automatic updates, you can specify an alternative link to
+* indicate the latest stable revision number instead of the default link
+* below. Note: changing this setting is only recommended for those who are
+* closely monitoring TapirLink development.
+*/
+//define( 'TP_CHECK_UPDATE_URL', 'http://rs.tdwg.org/tapir/software/tlink.xml' );
+
+/**
* Note that it is also possible to change some of your default PHP operational
* parameters here. For example, you could change the include_path setting
* to work with your system if you do not have access to the PHP.ini file.
Modified: tapirlink/trunk/www/tapir_globals.php
===================================================================
--- tapirlink/trunk/www/tapir_globals.php 2008-07-29 11:34:28 UTC (rev 739)
+++ tapirlink/trunk/www/tapir_globals.php 2008-07-31 15:35:10 UTC (rev 740)
@@ -495,6 +495,14 @@
}
//////////////////////////////////////////////////////
+// AUTOMATIC UPDATES
+
+if ( ! defined( 'TP_CHECK_UPDATE_URL' ) )
+{
+ define( 'TP_CHECK_UPDATE_URL', 'http://rs.tdwg.org/tapir/software/tlink.xml' );
+}
+
+//////////////////////////////////////////////////////
// UDDI
if ( ! defined( 'TP_UDDI_TMODEL_NAME' ) )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|