Changeset 12802 for trunk/install.php


Ignore:
Timestamp:
Dec 29, 2011, 6:48:16 AM (12 years ago)
Author:
rvelices
Message:

fetaure 2542 replace $conflocal_data_dir with $confdata_location and move combined files and image derivatives from local to _data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r12769 r12802  
    111111
    112112// 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'];
     113if (!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'];
    116116  header('Cache-Control: no-cache, must-revalidate');
    117117  header('Pragma: no-cache');
     
    282282    {
    283283      $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' );
    285285      @fputs($fh, $file_content, strlen($file_content));
    286286      @fclose($fh);
Note: See TracChangeset for help on using the changeset viewer.