From 5ee613b9c21e94b7bbc834e13b0ffa4d80f4b361 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 7 Oct 2008 19:26:42 +0000 Subject: [PATCH] BUG Backup restore for windows --- html/admin/setup.php | 1 + html/backup.php | 2 +- include/config_file.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/html/admin/setup.php b/html/admin/setup.php index 8fabcc292..05656f388 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -59,6 +59,7 @@ h2.error { */ $inc_path=get_include_path(); +echo $inc_path; if ( strpos($inc_path,";") != 0 ) { $new_path=$inc_path.';..\..\include;addon'; $os=0; /* $os is 0 for unix */ diff --git a/html/backup.php b/html/backup.php index 0e887e337..195b212bd 100644 --- a/html/backup.php +++ b/html/backup.php @@ -40,7 +40,7 @@ if ($User->admin != 1) { */ /* For windows we need to set the path correctly */ if ( defined ('PG_PATH') ) - putenv("PATH=",PG_PATH); + putenv("PATH=".PG_PATH); if ( isset ($_REQUEST['sa']) ) { if ( ! isset ($_REQUEST['d']) || diff --git a/include/config_file.php b/include/config_file.php index fcdbd65cd..1a70f805d 100644 --- a/include/config_file.php +++ b/include/config_file.php @@ -98,7 +98,7 @@ function config_file_create($p_array,$from_setup=1,$os=0) { fputs($hFile,"\n\r"); fputs($hFile, "\$_ENV['TMP']='".$ctmp."';"); fputs($hFile,"\n\r"); - fputs($hFile, 'define("PG_PATH","'.$cpath'");'); + fputs($hFile, 'define("PG_PATH","'.$cpath.'");'); fputs($hFile,"\n\r"); if ( $os == 0 ) { fputs($hFile, 'define("PG_RESTORE","'.$cpath.DIRECTORY_SEPARATOR.'pg_restore ");');