svn: /web/php-rmtools/trunk/include/ config.php

From: Date: Sun, 10 Jan 2010 17:09:05 +0000
Subject: svn: /web/php-rmtools/trunk/include/ config.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6948@lists.php.net to get a copy of this message
pajoye Sun, 10 Jan 2010 17:09:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=293354 Log: - allow to override config by ENV vars Changed paths: U web/php-rmtools/trunk/include/config.php Modified: web/php-rmtools/trunk/include/config.php =================================================================== --- web/php-rmtools/trunk/include/config.php 2010-01-10 15:55:14 UTC (rev 293353) +++ web/php-rmtools/trunk/include/config.php 2010-01-10 17:09:05 UTC (rev 293354) @@ -1,8 +1,20 @@ <?php namespace rmtools; + set_include_path('.:' . __DIR__); -define('MASTER_AUTH_TOKEN', getenv('MASTER_AUTH_TOKEN')); -define('SVN_REPO_PATH', '/home/pierre/repos/phprepo/php'); -define('DB_PATH', '/home/pierre/public_html/rmtools/data'); -define('TPL_PATH', __DIR__ . '/../template'); +$rmtools_base = getenv('RMTOOLS_BASE_DIR'); + +if (!$rmtools_base) { + define('MASTER_AUTH_TOKEN', getenv('MASTER_AUTH_TOKEN')); + define('SVN_REPO_PATH', '/home/web/rmtools.php.net/repos/php'); + define('SVN_REPO_URL', 'http://svn.php.net/repository/php/php-src'); + define('DB_PATH', '/home/web/rmtools.php.net/data'); + define('TPL_PATH', __DIR__ . '/../template'); +} else { + define('MASTER_AUTH_TOKEN', getenv('MASTER_AUTH_TOKEN')); + define('SVN_REPO_PATH', $rmtools_base . '/repos/php'); + define('SVN_REPO_URL', 'http://svn.php.net/repository/php/php-src'); + define('DB_PATH', $rmtools_base . '/data'); + define('TPL_PATH', $rmtools_base . '/template'); +}

« previous php.webmaster (#6948) next »