minor change

This commit is contained in:
tomas 2005-03-09 03:16:18 +00:00
parent bc9be167cb
commit a4ed38989d
1 changed files with 12 additions and 2 deletions

View File

@ -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}";