summaryrefslogtreecommitdiff
path: root/framework/IO/TTarFileExtractor.php
diff options
context:
space:
mode:
authorxue <>2007-01-17 22:26:53 +0000
committerxue <>2007-01-17 22:26:53 +0000
commitcd236d693d1df3e20c370c97a98c51ba3fcbd610 (patch)
tree4b84a25cc06db000420b75f2ce1f390246869662 /framework/IO/TTarFileExtractor.php
parent74acb5d2a4426cb4ae7f0fdd86e23c1459813a60 (diff)
Added PRADO_CHMOD constant so that users can specify the permission of PRADO-created directories
Diffstat (limited to 'framework/IO/TTarFileExtractor.php')
-rw-r--r--framework/IO/TTarFileExtractor.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/IO/TTarFileExtractor.php b/framework/IO/TTarFileExtractor.php
index 5256141f..74bb32b8 100644
--- a/framework/IO/TTarFileExtractor.php
+++ b/framework/IO/TTarFileExtractor.php
@@ -455,12 +455,12 @@ class TTarFileExtractor
if ($v_extract_file) {
if ($v_header['typeflag'] == "5") {
if (!@file_exists($v_header['filename'])) {
- if (!@mkdir($v_header['filename'], 0777)) {
+ if (!@mkdir($v_header['filename'], PRADO_CHMOD)) {
$this->_error('Unable to create directory {'
.$v_header['filename'].'}');
return false;
}
- chmod($v_header['filename'], 0777);
+ chmod($v_header['filename'], PRADO_CHMOD);
}
} else {
if (($v_dest_file = @fopen($v_header['filename'], "wb")) == 0) {
@@ -546,11 +546,11 @@ class TTarFileExtractor
(!$this->_dirCheck($p_parent_dir)))
return false;
- if (!@mkdir($p_dir, 0777)) {
+ if (!@mkdir($p_dir, PRADO_CHMOD)) {
$this->_error("Unable to create directory '$p_dir'");
return false;
}
- chmod($p_dir,0777);
+ chmod($p_dir,PRADO_CHMOD);
return true;
}