Changeset 1873

Show
Ignore:
Timestamp:
05/05/06 13:28:15 (7 years ago)
Author:
rcourtna
Message:

#717 (Removing core module)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/page.modules.php

    r1813 r1873  
    626626function rmModule($module) { 
    627627  global $amp_conf; 
    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>"; 
    630634  } 
    631635}