Esempio n. 1
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();
 }
Esempio n. 2
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');
 }
Esempio n. 3
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');
 }
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @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();
 }
Esempio n. 5
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('likes');
     $delFields = Typecho_Widget::widget('Widget_Options')->plugin('TeStat')->delFields;
     if ($delFields) {
         $db = Typecho_Db::get();
         $prefix = $db->getPrefix();
         $db->query('ALTER TABLE `' . $prefix . 'contents` DROP `viewsNum`;');
         $db->query('ALTER TABLE `' . $prefix . 'contents` DROP `likesNum`;');
     }
 }
Esempio n. 6
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;
 }
Esempio n. 7
0
 public static function deactivate()
 {
     Helper::removeAction('SyncPost');
 }
Esempio n. 8
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('thumbnail');
 }
Esempio n. 9
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('dbmanager');
     Helper::removePanel(1, 'DbManager/panel.php');
 }
Esempio n. 10
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');
 }
Esempio n. 11
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('tools');
     Helper::removeRoute('sitemap');
 }
Esempio n. 12
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     $db = Typecho_Db::get();
     $db->delete('table.options')->where('name = ?', 'Ukagaka_starttime');
     Helper::removeAction('Ukagaka');
 }
Esempio n. 13
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('googlecode-svn');
 }
Esempio n. 14
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('comment-to-mail');
 }
Esempio n. 15
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');
 }
Esempio n. 16
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');
 }
Esempio n. 17
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('upload-plugin');
     Helper::removePanel(1, 'UploadPlugin/panel.php');
 }
Esempio n. 18
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;
 }
Esempio n. 19
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('avatars-delete');
 }
Esempio n. 20
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('typexport');
     Helper::removePanel(1, 'TypExport/panel.php');
 }
Esempio n. 21
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('RoutesHelper');
     Helper::removePanel(4, 'RoutesHelper/panel.php');
 }
Esempio n. 22
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');
 }
Esempio n. 23
0
 public static function deactivate()
 {
     Helper::removeAction('OptimizeDB');
     Helper::removePanel(1, 'OptimizeDB/Panel.php');
 }
Esempio n. 24
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');
 }
Esempio n. 25
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');
 }
Esempio n. 26
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction(github_git);
 }
Esempio n. 27
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction(self::$action);
     Helper::removePanel(1, self::$panel);
 }
Esempio n. 28
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");
 }
Esempio n. 29
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  *
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('plugins-kind-upload');
 }
Esempio n. 30
0
 /**
  * 禁用插件方法,如果禁用失败,直接抛出异常
  * 
  * @static
  * @access public
  * @return void
  * @throws Typecho_Plugin_Exception
  */
 public static function deactivate()
 {
     Helper::removeAction('like');
 }