Panel/modules/modulemanager/delete_module.php
copilot-swe-agent[bot] d692485a08 Phase 3: Update remaining code references (classes, constants, functions)
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2025-09-08 15:53:33 +00:00

23 lines
638 B
PHP

<?php
/*
* Component of the modulemanager module
*/
function exec_gsp_module()
{
global $db;
global $view;
print "<h2>".get_lang_f('uninstalling_module',$_REQUEST['module'])."</h2>";
require_once('modules/modulemanager/module_handling.php');
if ( isset($_REQUEST['id']) && isset($_REQUEST['module']) &&
uninstall_module($db, $_REQUEST['id'], $_REQUEST['module']) === TRUE )
print_success(get_lang_f("successfully_uninstalled_module",$_REQUEST['module']));
else
print_failure(get_lang_f("failed_to_uninstall_module",$_REQUEST['module']));
$view->refresh("?m=modulemanager");
}
?>