From a4ed38989d0d87bfd64d1b02c41e639c2dec9faa Mon Sep 17 00:00:00 2001 From: tomas Date: Wed, 9 Mar 2005 03:16:18 +0000 Subject: [PATCH] minor change --- .../modules/archiveServer/var/install/install.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/livesupport/modules/archiveServer/var/install/install.php b/livesupport/modules/archiveServer/var/install/install.php index ef442912c..62e11591b 100644 --- a/livesupport/modules/archiveServer/var/install/install.php +++ b/livesupport/modules/archiveServer/var/install/install.php @@ -23,10 +23,19 @@ Author : $Author: tomas $ - Version : $Revision: 1.5 $ + Version : $Revision: 1.6 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/install/install.php,v $ ------------------------------------------------------------------------------*/ +// no remote execution +$arr = array_diff_assoc($_SERVER, $_ENV); +if(isset($arr["DOCUMENT_ROOT"]) && $arr["DOCUMENT_ROOT"] != ""){ + header("HTTP/1.1 400"); + header("Content-type: text/plain; charset=UTF-8"); + echo "400 Not executable\r\n"; + exit; +} + require_once '../conf.php'; require_once 'DB.php'; require_once '../Archive.php'; @@ -70,7 +79,8 @@ $r = $gb->install(); if(PEAR::isError($r)){ echo $r->getUserInfo()."\n"; exit; } echo "# Testing ...\n"; -$gb->test(); +$r = $gb->test(); +if(PEAR::isError($r)){ echo $r->getUserInfo()."\n"; exit; } $log = $gb->test_log; if($log) echo "# testlog:\n{$log}";