| Server IP : 8.134.250.228 / Your IP : 216.73.217.42 Web Server : Apache System : Linux iZ7xv33p9e9ivk7yhmj7ibZ 5.10.134-18.al8.x86_64 #1 SMP Fri Dec 13 16:56:53 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.gobluemade.com/wp-content/plugins/sql-batch-replace/ |
Upload File : |
<?php
/*
* @Author: Qinver
* @Url: zibll.com
* @Date: 2023-10-12 12:07:22
* @LastEditTime: 2025-10-17 10:16:43
* Plugin Name: 数据库批量替换
* Version: 1.7
* Description: 数据一键批量替换小工具,适用于网站换域名、加证书后网址改为https、更换云储存后批量更换媒体链接等操作
* Plugin URI: https://www.zibll.com
* Author: 子比主题老唐-Qinver
* Author URI: https://www.zibll.com
* Text Domain: sql-batch-replace
* Domain Path: /languages
* @Read me : 本工具为免费开源工具,您可以自由使用和分享,如您需要分享或二次开发,请务必保留并在显眼处体现作者名,以及www.zibll.com的网站
* @Read me : 不要用于任何商业用途,否则将依法追究相关责任,谢谢合作!
*/
// 禁止直接访问
if (!defined('ABSPATH')) {
exit;
}
// 判断是否为后台
if (is_admin()) {
define('SQL_REPLACE_TEXT_DOMAIN', 'sql-batch-replace');
define('SQL_REPLACE_PLUGIN_BASENAME', plugin_basename(__FILE__));
define('SQL_REPLACE_PATH', dirname(__FILE__));
define('SQL_REPLACE_URL', plugins_url('', __FILE__));
define('SQL_REPLACE_VERSION', '1.0');
// 加载语言包
load_plugin_textdomain(SQL_REPLACE_TEXT_DOMAIN, false, (dirname(plugin_basename(__FILE__))) . '/languages/');
require_once SQL_REPLACE_PATH . '/func.php';
new zib\sql\SqlReplace();
}