Revision 543
Added by thorn almost 18 years ago
| functions.php | ||
|---|---|---|
| 1195 | 1195 |
$directory = WB_PATH.PAGES_DIRECTORY.$link; |
| 1196 | 1196 |
$filename = $directory.PAGE_EXTENSION; |
| 1197 | 1197 |
$directory .= '/'; |
| 1198 |
if(file_exists($filename) && substr($filename,0,1<>'.')) {
|
|
| 1198 |
if(file_exists($filename)) {
|
|
| 1199 | 1199 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) {
|
| 1200 | 1200 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_DELETE_ACCESS_FILE']); |
| 1201 | 1201 |
} else {
|
| 1202 | 1202 |
unlink($filename); |
| 1203 |
if(file_exists($directory)) {
|
|
| 1203 |
if(file_exists($directory) && rtrim($directory,'/')!=WB_PATH.PAGES_DIRECTORY) {
|
|
| 1204 | 1204 |
rm_full_dir($directory); |
| 1205 | 1205 |
} |
| 1206 | 1206 |
} |
| ... | ... | |
| 1316 | 1316 |
} |
| 1317 | 1317 |
} |
| 1318 | 1318 |
|
| 1319 |
?> |
|
| 1319 |
?> |
|
Also available in: Unified diff
module menu_link: fixed page-deleteing-bug and some odd behavior, added table mod_menu_link