Changeset 6014


Ignore:
Timestamp:
04/29/10 23:20:48 (9 years ago)
Author:
plg
Message:

use _data as parent directory for temporary directory, it makes chmod easier for users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/prepare21upgrade/prep21up.php

    r6013 r6014  
    111111} 
    112112 
    113 $dir = PHPWG_ROOT_PATH.md5(uniqid(rand(), true)); 
    114  
    115 if (!mkdir($dir) 
     113$dir = PHPWG_ROOT_PATH.'_data/'.md5(uniqid(rand(), true)); 
     114 
     115if (!mkdir($dir, 0777, true) 
    116116  or !mkdir($dir.'/local') 
    117117  or !mkdir($dir.'/local/config') 
     
    121121{ 
    122122  deltree($dir); 
    123   die('Unable to create temporary directory or temporary zip file.'); 
     123  die('Error: create a "_data" directory and add write access on "_data" directory (chmod 777).'); 
    124124} 
    125125 
Note: See TracChangeset for help on using the changeset viewer.