1 <?php |
1 <?php |
2 |
2 |
3 /** |
3 /* |
4 * Disable error reporting |
4 * Disable error reporting. |
5 * |
5 * |
6 * Set this to error_reporting( -1 ) for debugging. |
6 * Set this to error_reporting( -1 ) for debugging. |
7 */ |
7 */ |
8 error_reporting( 0 ); |
8 error_reporting( 0 ); |
9 |
9 |
10 /** Set ABSPATH for execution */ |
10 // Set ABSPATH for execution. |
11 if ( ! defined( 'ABSPATH' ) ) { |
11 if ( ! defined( 'ABSPATH' ) ) { |
12 define( 'ABSPATH', dirname( __DIR__ ) . '/' ); |
12 define( 'ABSPATH', dirname( __DIR__ ) . '/' ); |
13 } |
13 } |
14 |
14 |
15 define( 'WPINC', 'wp-includes' ); |
15 define( 'WPINC', 'wp-includes' ); |
16 |
16 |
17 $protocol = $_SERVER['SERVER_PROTOCOL']; |
17 $protocol = $_SERVER['SERVER_PROTOCOL']; |
18 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ), true ) ) { |
18 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) { |
19 $protocol = 'HTTP/1.0'; |
19 $protocol = 'HTTP/1.0'; |
20 } |
20 } |
21 |
21 |
22 $load = $_GET['load']; |
22 $load = $_GET['load']; |
23 if ( is_array( $load ) ) { |
23 if ( is_array( $load ) ) { |