mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
* fixed uninstalling plugin
This commit is contained in:
parent
72212f8256
commit
28299744c4
@ -74,7 +74,7 @@ $config = array(
|
|||||||
//'2' => 'Your Second World Name'
|
//'2' => 'Your Second World Name'
|
||||||
),
|
),
|
||||||
|
|
||||||
// items
|
// images
|
||||||
'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit
|
'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit
|
||||||
'item_images_url' => 'http://item-images.ots.me/960/', // set to images/items if you host your own items in images folder
|
'item_images_url' => 'http://item-images.ots.me/960/', // set to images/items if you host your own items in images folder
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ $config = array(
|
|||||||
|
|
||||||
// reCAPTCHA (prevent spam bots)
|
// reCAPTCHA (prevent spam bots)
|
||||||
'recaptcha_enabled' => false, // enable recaptcha verification code
|
'recaptcha_enabled' => false, // enable recaptcha verification code
|
||||||
'recaptcha_site_key' => '', // get your own public and private keys at https://www.google.com/recaptcha
|
'recaptcha_site_key' => '', // get your own site and secret keys at https://www.google.com/recaptcha
|
||||||
'recaptcha_secret_key' => '',
|
'recaptcha_secret_key' => '',
|
||||||
'recaptcha_theme' => 'light', // light, dark
|
'recaptcha_theme' => 'light', // light, dark
|
||||||
|
|
||||||
|
@ -84,9 +84,9 @@ CREATE TABLE `myaac_forum_boards`
|
|||||||
`name` VARCHAR(32) NOT NULL,
|
`name` VARCHAR(32) NOT NULL,
|
||||||
`description` VARCHAR(255) NOT NULL DEFAULT '',
|
`description` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
`ordering` INT(11) NOT NULL DEFAULT 0,
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||||
`closed` TINYINT(1) NOT NULL DEFAULT 0,
|
|
||||||
`guild` INT(11) NOT NULL DEFAULT 0,
|
`guild` INT(11) NOT NULL DEFAULT 0,
|
||||||
`access` INT(11) NOT NULL DEFAULT 0,
|
`access` INT(11) NOT NULL DEFAULT 0,
|
||||||
|
`closed` TINYINT(1) NOT NULL DEFAULT 0,
|
||||||
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = MyISAM;
|
||||||
|
@ -46,14 +46,14 @@ if(isset($_REQUEST['uninstall'])){
|
|||||||
error('Plugin ' . $uninstall . ' does not exist.');
|
error('Plugin ' . $uninstall . ' does not exist.');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(!isset($plugin_info['uninstall'])) {
|
$string = file_get_contents($filename);
|
||||||
error("Plugin doesn't have uninstall options defined. Skipping...");
|
$plugin_info = json_decode($string, true);
|
||||||
|
if($plugin_info == false) {
|
||||||
|
error('Cannot load plugin info ' . $uninstall . '.json');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$string = file_get_contents($filename);
|
if(!isset($plugin_info['uninstall'])) {
|
||||||
$plugin_info = json_decode($string, true);
|
error("Plugin doesn't have uninstall options defined. Skipping...");
|
||||||
if($plugin_info == false) {
|
|
||||||
error('Cannot load plugin info ' . $uninstall . '.json');
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$success = true;
|
$success = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user