Exemplo n.º 1
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);
}
Exemplo n.º 2
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);
}
Exemplo n.º 3
0
            upgrade_to_0_8_8a();
        } elseif ($cacti_versions[$i] == "0.8.8b") {
            include "0_8_8a_to_0_8_8b.php";
            upgrade_to_0_8_8b();
        } elseif ($cacti_versions[$i] == "0.8.8c") {
            include "0_8_8b_to_0_8_8c.php";
            upgrade_to_0_8_8c();
        } elseif ($cacti_versions[$i] == "0.8.8d") {
            include "0_8_8c_to_0_8_8d.php";
            upgrade_to_0_8_8d();
        }
    }
    foreach ($plugins_integrated as $plugin) {
        if (api_plugin_is_enabled($plugin)) {
            api_plugin_remove_hooks($plugin);
            api_plugin_remove_realms($plugin);
            db_execute("DELETE FROM plugin_config WHERE directory = '{$plugin}'");
        }
    }
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>cacti</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<link href="<?php 
echo $config['url_path'];
?>
include/themes/classic/main.css" type="text/css" rel="stylesheet">
	<style type='text/css'>>