⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uninstall.blocklist.php

📁 joomla的系统插件,用于用户的管理,可以开发或阻塞用户
💻 PHP
字号:
<?php
/**
* @package Redirect
* @copyright (C) 2006 Websmurf
* @author Websmurf
* 
* --------------------------------------------------------------------------------
* All rights reserved.  Blocklist is a component for Joomla and Mambo. 
* You can use it to block certain ipadresses or ipblocks
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Creative Commons - Attribution-NoDerivs 2.5 
* license as published by the Creative Commons Organisation
* http://creativecommons.org/licenses/by-nd/2.5/.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* --------------------------------------------------------------------------------
**/

// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

function com_uninstall(){
  global $mainframe, $database;
  //remove mambot as well...  
  
  unlink($mainframe->getCfg('absolute_path') . '/mambots/system/redirect.xml');
  unlink($mainframe->getCfg('absolute_path') . '/mambots/system/redirect.php');
  
  $query = "DELETE FROM #__mambots WHERE folder = 'system' AND element = 'redirect'";
  $database->setQuery($query);
  $database->query();
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -