uninstall.php 523 B

123456789101112131415161718
  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. *
  8. * @package chamilo.plugin.advanced_subscription
  9. */
  10. /**
  11. * Queries.
  12. */
  13. require_once __DIR__.'/config.php';
  14. if (!api_is_platform_admin()) {
  15. die('You must have admin permissions to uninstall plugins');
  16. }
  17. AdvancedSubscriptionPlugin::create()->uninstall();