测试url:
http://demo.com/admin/admin.php?page=wpwatermark%2Findex.php&_wpnonce=8db1abf1e9
入口文件:admin/admin.php
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); //加载后台方法 require_once( ABSPATH . 'admin/includes/admin.php' ); auth_redirect(); global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow; if ( isset( $_GET['page'] ) ) { $plugin_page = wp_unslash( $_GET['page'] ); $plugin_page = plugin_basename( $plugin_page ); } require( ABSPATH . 'anqilahoutai/menu.php' ); do_action( 'admin_init' ); if ( isset( $plugin_page ) ) { if ( $page_hook ) { do_action( "load-{$page_hook}" ); do_action( $page_hook ); } }
wp-load.php
wp-config.php
wp-settings.php