uninstall.php 518 B

1234567891011121314151617
  1. <?php
  2. /* For license terms, see /license.txt */
  3. /**
  4. * This script is included by main/admin/settings.lib.php when unselecting a plugin
  5. * and is meant to remove things installed by the install.php script in both
  6. * the global database and the courses tables
  7. * @package chamilo.plugin.advanced_subscription
  8. */
  9. /**
  10. * Queries
  11. */
  12. require_once __DIR__.'/config.php';
  13. if (!api_is_platform_admin()) {
  14. die ('You must have admin permissions to uninstall plugins');
  15. }
  16. AdvancedSubscriptionPlugin::create()->uninstall();