HEX
Server: nginx/1.16.1
System: Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 8.3.31
Disabled: 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
Upload Files
File: /www/wwwroot/www.sceytyg.com/wp-content/plugins/sql-batch-replace/index.php
<?php
/*
 * @Author: Qinver
 * @Url: zibll.com
 * @Date: 2023-10-12 12:07:22
 * @LastEditTime: 2025-01-07 16:10:23
 * Plugin Name: 数据库批量替换
 * Version: 1.6
 * 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();
}