You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					18 lines
				
				530 B
			
		
		
			
		
	
	
					18 lines
				
				530 B
			| 
								 
											11 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								/* For license terms, see /license.txt */
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * This script is included by main/admin/settings.lib.php when unselecting a plugin
							 | 
						||
| 
								 | 
							
								 * and is meant to remove things installed by the install.php script in both
							 | 
						||
| 
								 | 
							
								 * the global database and the courses tables
							 | 
						||
| 
								 
											11 years ago
										 
									 | 
							
								 * @package chamilo.plugin.advanced_subscription
							 | 
						||
| 
								 
											11 years ago
										 
									 | 
							
								*/
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											11 years ago
										 
									 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Queries
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								require_once dirname(__FILE__) . '/config.php';
							 | 
						||
| 
								 | 
							
								if (!api_is_platform_admin()) {
							 | 
						||
| 
								 
											11 years ago
										 
									 | 
							
								    die ('You must have admin permissions to uninstall plugins');
							 | 
						||
| 
								 
											11 years ago
										 
									 | 
							
								}
							 | 
						||
| 
								 | 
							
								AdvancedSubscriptionPlugin::create()->uninstall();
							 |