cvs: pearweb /include pear-config.php

From: Date: Tue, 22 Feb 2005 16:04:00 +0000
Subject: cvs: pearweb /include pear-config.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29674@lists.php.net to get a copy of this message
cellog Tue Feb 22 11:04:00 2005 EDT Modified files: /pearweb/include pear-config.php Log: add PEAR_CHANNELNAME constant to allow others to use pearweb as a channel server. I still have to replace all hard-coded pear.php.net occurences with the constant before it will be really possible http://cvs.php.net/diff.php/pearweb/include/pear-config.php?r1=1.29&r2=1.30&ty=u Index: pearweb/include/pear-config.php diff -u pearweb/include/pear-config.php:1.29 pearweb/include/pear-config.php:1.30 --- pearweb/include/pear-config.php:1.29 Wed Jan 26 07:40:05 2005 +++ pearweb/include/pear-config.php Tue Feb 22 11:04:00 2005 @@ -14,9 +14,20 @@ * @category pearweb * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: pear-config.php,v 1.29 2005/01/26 12:40:05 pajoye Exp $ + * @version $Id: pear-config.php,v 1.30 2005/02/22 16:04:00 cellog Exp $ */ +if (isset($_ENV['PEAR_CHANNELNAME'])) { + /** + * @ignore + */ + define('PEAR_CHANNELNAME', $_ENV['PEAR_CHANNELNAME']); +} else { + /** + * The channel server name that is used for all info + */ + define('PEAR_CHANNELNAME', 'pear.php.net'); +} if (isset($_ENV['PEAR_TMPDIR'])) { /** * @ignore

« previous php.pear.cvs (#29674) next »