Changeset 12802 for trunk/install.php
- Timestamp:
- Dec 29, 2011, 6:48:16 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r12769 r12802 111 111 112 112 // download database config file if exists 113 if (!empty($_GET['dl']) && file_exists( $conf['local_data_dir'].'/pwg_'.$_GET['dl']))114 { 115 $filename = $conf['local_data_dir'].'/pwg_'.$_GET['dl'];113 if (!empty($_GET['dl']) && file_exists(PHPWG_ROOT_PATH.$conf['data_location'].'pwg_'.$_GET['dl'])) 114 { 115 $filename = PHPWG_ROOT_PATH.$conf['data_location'].'pwg_'.$_GET['dl']; 116 116 header('Cache-Control: no-cache, must-revalidate'); 117 117 header('Pragma: no-cache'); … … 282 282 { 283 283 $tmp_filename = md5(uniqid(time())); 284 $fh = @fopen( $conf['local_data_dir'] . '/pwg_' . $tmp_filename, 'w' );284 $fh = @fopen( PHPWG_ROOT_PATH.$conf['data_location'] . 'pwg_' . $tmp_filename, 'w' ); 285 285 @fputs($fh, $file_content, strlen($file_content)); 286 286 @fclose($fh);
Note: See TracChangeset
for help on using the changeset viewer.