cvs: pear /PEAR_Frontend_Web/docs example.php

From: Date: Tue, 15 Jun 2004 16:41:19 +0000
Subject: cvs: pear /PEAR_Frontend_Web/docs example.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20687@lists.php.net to get a copy of this message
pajoye Tue Jun 15 12:41:19 2004 EDT Modified files: /pear/PEAR_Frontend_Web/docs example.php Log: - use current folder for pear.conf if no global ENV are set (do not use the default /etc/ or whatever is the default etc path for php http://cvs.php.net/diff.php/pear/PEAR_Frontend_Web/docs/example.php?r1=1.9&r2=1.10&ty=u Index: pear/PEAR_Frontend_Web/docs/example.php diff -u pear/PEAR_Frontend_Web/docs/example.php:1.9 pear/PEAR_Frontend_Web/docs/example.php:1.10 --- pear/PEAR_Frontend_Web/docs/example.php:1.9 Tue Jun 3 19:41:22 2003 +++ pear/PEAR_Frontend_Web/docs/example.php Tue Jun 15 12:41:19 2004 @@ -14,6 +14,13 @@ * * by Christian Dickmann <dickmann@php.net> */ +if (!getenv('PHP_PEAR_SYSCONF_DIR')) { + // Use this config instead of the global one + if (is_file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pear.conf')) { + putenv('PHP_PEAR_SYSCONF_DIR=' . dirname(__FILE__)); + } +} + if ($env=getenv('PHP_PEAR_INSTALL_DIR')) { define("PHP_PEAR_INSTALL_DIR",$env); } else { @@ -40,6 +47,7 @@ ini_set('include_path', '@include_path@'); $useDHTML = true; + // Include WebInstaller require_once("PEAR/WebInstaller.php"); ?>

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