Revision 551
Added by thorn almost 17 years ago
functions.php | ||
---|---|---|
1197 | 1197 |
$directory = WB_PATH.PAGES_DIRECTORY.$link; |
1198 | 1198 |
$filename = $directory.'.php'; |
1199 | 1199 |
$directory .= '/'; |
1200 |
if(file_exists($filename) && substr($filename,0,1<>'.')) {
|
|
1200 |
if(file_exists($filename)) { |
|
1201 | 1201 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) { |
1202 | 1202 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_DELETE_ACCESS_FILE']); |
1203 | 1203 |
} else { |
1204 | 1204 |
unlink($filename); |
1205 |
if(file_exists($directory)) { |
|
1205 |
if(file_exists($directory) && rtrim($directory,'/')!=WB_PATH.PAGES_DIRECTORY) {
|
|
1206 | 1206 |
rm_full_dir($directory); |
1207 | 1207 |
} |
1208 | 1208 |
} |
Also available in: Unified diff
Reintroduced some more changes from changeset [520] and [540] which where overwritten by changeset [546]