| 628 | | if (is_dir($amp_conf['AMPWEBROOT'].'/admin/modules/'.$module) && strstr($module, '.') === FALSE ) { |
|---|
| 629 | | exec('/bin/rm -rf '.$amp_conf['AMPWEBROOT'].'/admin/modules/'.$module); |
|---|
| | 628 | if($module != 'core') { |
|---|
| | 629 | if (is_dir($amp_conf['AMPWEBROOT'].'/admin/modules/'.$module) && strstr($module, '.') === FALSE ) { |
|---|
| | 630 | exec('/bin/rm -rf '.$amp_conf['AMPWEBROOT'].'/admin/modules/'.$module); |
|---|
| | 631 | } |
|---|
| | 632 | } else { |
|---|
| | 633 | echo "<script language=\"Javascript\">alert('"._("You cannot delete the Core module")."');</script>"; |
|---|