<?php

// Protect against hack attempts
if (!defined('NGCMS')) die ('HAL');

// Load library
include_once(root . "/plugins/gsmg/lib/common.php");

//
// Configuration file for plugin
//
pluginsLoadConfig();
if ($_REQUEST['action'] == 'commit') {
    remove_gsmg_urls();
    plugin_mark_deinstalled($plugin);
    $url = home . "/engine/admin.php?mod=extras";
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: {$url}");
} else {
    generate_install_page($plugin, 'Удаление плагина', 'deinstall');
}
