Revision 1985
Added by Dietmar over 10 years ago
save_post.php | ||
---|---|---|
88 | 88 |
if( $database->query($sql) ) { |
89 | 89 |
// create new accessfile |
90 | 90 |
$sDoWhat = (($newLink == $old_link) && (file_exists($sNewFilename))) ? "nothing" : "action"; |
91 |
// try to create the whole path to the accessfile |
|
92 |
$sAccessPath = dirname($sNewFilename).'/'; |
|
93 |
if(!($bRetval = is_dir($sAccessPath))) { |
|
94 |
$iOldUmask = umask(0) ; |
|
95 |
// sanitize directory mode to 'o+rwx/g+x/u+x' and create path |
|
96 |
$bRetval = mkdir($sAccessPath, (OCTAL_DIR_MODE |0711), true); |
|
97 |
umask($iOldUmask); |
|
98 |
} |
|
91 | 99 |
if($sDoWhat == "action") { |
92 | 100 |
$sDoWhat = (($sDoWhat == "action") && file_exists($sOldFilename)) ? "update" : "create"; |
93 | 101 |
} |
Also available in: Unified diff
! /modules/news/Reorg.php completely recoded using class AccessFile()
! /modules/news/upgrade.php add accessfile report to output details in upgrade-script.php
! /modules/news/save_post.php search for missing accessfile folder and create missing one