cvs: pear /PEAR_Frontend_Web WebInstaller.php

From: Date: Mon, 10 Jun 2002 19:07:35 +0000
Subject: cvs: pear /PEAR_Frontend_Web WebInstaller.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4533@lists.php.net to get a copy of this message
dickmann Mon Jun 10 15:07:35 2002 EDT Modified files: /pear/PEAR_Frontend_Web WebInstaller.php Log: fix for SAFE MODE Index: pear/PEAR_Frontend_Web/WebInstaller.php diff -u pear/PEAR_Frontend_Web/WebInstaller.php:1.9 pear/PEAR_Frontend_Web/WebInstaller.php:1.10 --- pear/PEAR_Frontend_Web/WebInstaller.php:1.9 Sun Jun 9 17:35:16 2002 +++ pear/PEAR_Frontend_Web/WebInstaller.php Mon Jun 10 15:07:34 2002 @@ -16,7 +16,7 @@ | Author: Christian Dickmann <dickmann@php.net> | +----------------------------------------------------------------------+ - $Id: WebInstaller.php,v 1.9 2002/06/09 21:35:16 dickmann Exp $ + $Id: WebInstaller.php,v 1.10 2002/06/10 19:07:34 dickmann Exp $ */ define('PEAR_Frontend_Web',1); @session_start(); @@ -50,13 +50,14 @@ $opts = array(); $params = array(); $URL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; + $dir = substr(dirname(__FILE__), 0, -strlen('PEAR/PEAR')); // strip PEAR/PEAR + $_ENV['TMPDIR'] = $_ENV['TEMP'] = $dir.'/tmp'; if (!file_exists($pear_user_config)) { // I think PEAR_Frontend_Web is running for the first time! // Install it properly ... // First of all set some config-vars: - $dir = substr(dirname(__FILE__), 0, -strlen('PEAR/PEAR')); // strip PEAR/PEAR $cmd = PEAR_Command::factory('config-set', $config); $ok = $cmd->run('config-set', array(), array('php_dir', $dir.'PEAR')); $ok = $cmd->run('config-set', array(), array('doc_dir', $dir.'docs'));

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