BUG Backup restore for windows

This commit is contained in:
Dany De Bontridder 2008-10-07 19:26:42 +00:00
parent ec252a5df4
commit 5ee613b9c2
3 changed files with 3 additions and 2 deletions

View file

@ -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 */

View file

@ -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']) ||

View file

@ -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 ");');