Пример #1
0
function api_plugin_uninstall($plugin)
{
    global $config;
    include_once $config['base_path'] . "/plugins/{$plugin}/setup.php";
    // Run the Plugin's Uninstall Function first
    $function = 'plugin_' . $plugin . '_uninstall';
    if (function_exists($function)) {
        $function();
    }
    api_plugin_remove_hooks($plugin);
    api_plugin_remove_realms($plugin);
    db_execute("DELETE FROM plugin_config WHERE directory = '{$plugin}'");
    api_plugin_db_changes_remove($plugin);
}
Пример #2
0
function api_plugin_uninstall ($plugin) {
	global $config;
	include_once(CACTI_BASE_PATH . "/plugins/$plugin/setup.php");
	// Run the Plugin's Uninstall Function first
	$function = 'plugin_' . $plugin . '_uninstall';
	if (function_exists($function)) {
		$function();
	}
	api_plugin_remove_hooks ($plugin);
	api_plugin_remove_realms ($plugin);
	db_execute("DELETE FROM plugin_config WHERE directory = '$plugin'");
	api_plugin_db_changes_remove ($plugin);
}