. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ /* global $RBAC; switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE')) { case -2: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels'); G::header('location: ../login/login'); die; break; case -1: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels'); G::header('location: ../login/login'); die; break; }*/ G::LoadClass( "plugin" ); $pluginName = $_REQUEST["pluginUid"]; if (file_exists( PATH_PLUGINS . $pluginName . ".php" )) { $pluginRegistry = &PMPluginRegistry::getSingleton(); $pluginRegistry->uninstallPlugin( $pluginName ); $pluginRegistry->unSerializeInstance( file_get_contents( PATH_DATA_SITE . "plugin.singleton" ) ); } G::auditLog("RemovePlugin","Plugin Name: ".$pluginName); echo $pluginName . " " . nl2br( G::LoadTranslation( "ID_MSG_REMOVE_PLUGIN_SUCCESS" ) );