Bugfix: Web folder protection did not work on web deletion
Bugfix: $app->system->unlink function had wrong parameter name, no files were deleted ever
| | |
| | | } |
| | | } |
| | | |
| | | function unlink($file) { |
| | | function unlink($filename) { |
| | | if(file_exists($filename)) { |
| | | return unlink($filename); |
| | | } |
| | |
| | | $app->uses('system'); |
| | | $web_config = $app->getconf->get_server_config($conf['server_id'], 'web'); |
| | | |
| | | $app->system->web_folder_protection($data['new']['document_root'],false); |
| | | $app->system->web_folder_protection($data['old']['document_root'],false); |
| | | |
| | | //* Check if this is a chrooted setup |
| | | if($web_config['website_basedir'] != '' && @is_file($web_config['website_basedir'].'/etc/passwd')) { |