Exemple #1
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     $installDb = Typecho_Db::get();
     $installDb->query("DROP TABLE IF EXISTS " . $installDb->getPrefix() . self::$tableName);
     Helper::removeAction('mostcache');
     Helper::removePanel(1, 'MostCache/panel.php');
 }
Exemple #2
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(1, 'DevTool/index.php');
     Helper::removeRoute('dev-tool_index');
     Helper::removeRoute('dev-tool_options');
     Helper::removeRoute('dev-tool_post');
 }
Exemple #3
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('contribute');
     Helper::removePanel(3, 'Contribute/panel.php');
     self::dropTable();
     self::hiddenPage();
 }
Exemple #4
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(1, 'TeStore/market.php');
     Helper::removeRoute('te-store_market');
     Helper::removeRoute('te-store_install');
     Helper::removeRoute('te-store_uninstall');
 }
Exemple #5
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeRoute('routeName');
     Helper::removeAction('actionName');
     Helper::removePanel(1, 'MyPlugin/panel.php');
     Helper::removeMenu('menuName');
 }
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeRoute('share_note');
     Helper::removeAction('notes-manage');
     // Helper::removePanel(2, 'Notes/add-note.php');
     Helper::removePanel(3, 'Notes/manage-notes.php');
     self::uninstall();
 }
 public static function deactivate()
 {
     $config = Typecho_Widget::widget('Widget_Options')->plugin('Access');
     $isDrop = $config->isDrop;
     if ($isDrop == 0) {
         $db = Typecho_Db::get();
         $prefix = $db->getPrefix();
         $db->query("DROP TABLE `" . $prefix . "access`", Typecho_Db::WRITE);
     }
     Helper::removePanel(1, self::$panel);
 }
Exemple #8
0
 public static function deactivate()
 {
     $config = Typecho_Widget::widget('Widget_Options')->plugin('Robots');
     $isdrop = $config->droptable;
     if ($isdrop == 0) {
         $db = Typecho_Db::get();
         $prefix = $db->getPrefix();
         $db->query("DROP TABLE `" . $prefix . "logs`", Typecho_Db::WRITE);
     }
     Helper::removePanel(1, 'Robots/Logs.php');
 }
Exemple #9
0
 public static function uninstall()
 {
     //删除路由
     Helper::removeRoute('baidu_sitemap');
     Helper::removeRoute('baidu_sitemap_advanced');
     Helper::removePanel(1, 'BaiduSubmit/Logs.php');
     //获取配置,是否删除数据表
     if (Helper::options()->plugin('BaiduSubmit')->delete == 1) {
         return self::remove_table();
     }
 }
Exemple #10
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     include 'helpers/helpers.php';
     //删除下载临时目录
     $tempDir = __TYPECHO_ROOT_DIR__ . __TYPECHO_PLUGIN_DIR__ . self::$tempPath;
     if (file_exists($tempDir) and (!delete_files($tempDir) or !@rmdir($tempDir))) {
         throw new Typecho_Plugin_Exception('无法删除插件下载临时目录.');
     }
     //移除菜单和路由
     Helper::removePanel(1, 'AppStore/market.php');
     Helper::removeRoute('app.store.market');
     Helper::removeRoute('app.store.install');
 }
Exemple #11
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('DomainTheme-edit');
     Helper::removePanel(1, 'DomainTheme/manage-domaintheme.php');
     //删除登录记录的表格
     $db = Typecho_Db::get();
     $prefix = $db->getPrefix();
     try {
         $sql = "drop table " . $prefix . 'domaintheme';
         $db->query($sql);
     } catch (Typecho_Db_Exception $e) {
         throw new Typecho_Plugin_Exception('删除登录数据表失败');
     }
     return true;
 }
Exemple #12
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('upload-plugin');
     Helper::removePanel(1, 'UploadPlugin/panel.php');
 }
Exemple #13
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(1, 'Html2Text/Panel.php');
 }
Exemple #14
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('dbmanager');
     Helper::removePanel(1, 'DbManager/panel.php');
 }
Exemple #15
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('gallery-edit');
     Helper::removePanel(3, 'HighSlide/manage-gallery.php');
 }
Exemple #16
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('kgsoft_dbbak');
     Helper::removePanel(1, "TEDbBak/MainView.php");
     Helper::removeRoute("forbiddenUrl");
 }
Exemple #17
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('wordpress-to-typecho');
     Helper::removePanel(1, 'WordpressToTypecho/panel.php');
 }
Exemple #18
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(0, 'TinyMCE/tiny_mce/langs.php');
 }
Exemple #19
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(1, 'Xiami/panel.php');
 }
Exemple #20
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('RoutesHelper');
     Helper::removePanel(4, 'RoutesHelper/panel.php');
 }
Exemple #21
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('huifeng-members-edit');
     Helper::removePanel(3, 'HuifengMembers/manage-members.php');
 }
Exemple #22
0
 public static function deactivate()
 {
     Helper::removePanel(4, 'ThemeShow/config.php');
 }
Exemple #23
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction(self::$action);
     Helper::removePanel(1, self::$panel);
 }
Exemple #24
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('typexport');
     Helper::removePanel(1, 'TypExport/panel.php');
 }
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(0, 'UEditor/ueditor/ueditor.config.js.php');
 }
Exemple #26
0
 public static function deactivate()
 {
     Helper::removeAction('OptimizeDB');
     Helper::removePanel(1, 'OptimizeDB/Panel.php');
 }
Exemple #27
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('links-edit');
     Helper::removePanel(3, 'Links/manage-links.php');
 }
Exemple #28
0
 /**
  * 禁用duoshuo方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('duoshuo-edit');
     Helper::removeRoute('DuoShuoSync');
     Helper::removePanel(3, 'Duoshuo/manage-duoshuo.php');
 }
Exemple #29
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('emlog-to-typecho');
     Helper::removePanel(1, 'EmlogToTypecho/panel.php');
 }
Exemple #30
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removePanel(3, 'LoginLimit/manage_log.php');
     Helper::removeAction('login_log');
     //删除登录记录的表格
     $db = Typecho_Db::get();
     $prefix = $db->getPrefix();
     try {
         $sql = "drop table " . $prefix . 'loginlog';
         $db->query($sql);
     } catch (Typecho_Db_Exception $e) {
         throw new Typecho_Plugin_Exception('删除登录数据表失败');
     }
     return true;
 }