HEX
Server: nginx/1.24.0
System: Linux iZm5eic9piryinoecjybjoZ 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: www (1000)
PHP: 8.2.28
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/h3.iyingtaos.cn/wp-content/plugins/wposs/uninstall.php
<?php
/**
 * 因为默认保留了upload_information 参数,新版本直接以默认值带入'' ,而旧版本则会使用保留过的数据来改动,因此先保留这个写法
 */
if(!defined('WP_UNINSTALL_PLUGIN')){
	// 如果 uninstall 不是从 WordPress 调用,则退出
	exit();
}

// 恢复初始值
$wposs_options = get_option('wposs_options');
//
update_option('upload_path', $wposs_options['upload_information']['original']['upload_path']);
update_option('upload_url_path', $wposs_options['upload_information']['original']['upload_url_path']);

// 从 options 表删除选项
delete_option( 'wposs_options' );

// 删除其他额外的选项和自定义表