diff -r f205f4b201ed -r bc8e0e9ee01d plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Sat Mar 15 14:19:18 2008 -0400 +++ b/plugins/SpecialAdmin.php Sun Mar 16 16:06:59 2008 -0400 @@ -4,13 +4,13 @@ Plugin URI: http://enanocms.org/ Description: plugin_specialadmin_desc Author: Dan Fuhry -Version: 1.1.1 +Version: 1.1.3 Author URI: http://enanocms.org/ */ /* * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between - * Version 1.1.2 (Caoineag alpha 2) + * Version 1.1.3 (Caoineag alpha 3) * Copyright (C) 2006-2007 Dan Fuhry * * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License @@ -1199,6 +1199,15 @@

' . $lang->get('acppl_err_system_plugin') . '

'; } break; + case "reimport": + $plugin_id = substr($plugin, 0, -4); + if ( isset($plugins->loaded_plugins[$plugin_id]) ) + { + // plugin file is safe, call import + $lang->import_plugin( ENANO_ROOT . "/plugins/$plugin" ); + echo '
' . $lang->get('acppl_msg_reimport_success') . '
'; + } + break; } } } @@ -1293,12 +1302,14 @@ '.$this_plugin['desc'].' '.$this_plugin['auth'].' '.$this_plugin['vers'].' - '; + '; if ( !in_array($plugin_files[$i], $plugins->system_plugins) ) { if ( getConfig('plugin_'.$plugin_files[$i]) == '1' ) { echo '' . $lang->get('acppl_btn_disable') . ''; + echo ' | '; + echo '' . $lang->get('acppl_btn_reimport') . ''; } else {