403Webshell
Server IP : 217.154.3.148  /  Your IP : 216.73.216.90
Web Server : Apache
System : Linux blissful-wright.217-154-3-148.plesk.page 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : gracious-boyd_hfhh1h8vo9n ( 10000)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/gracious-boyd.217-154-3-148.plesk.page/nextjs/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/gracious-boyd.217-154-3-148.plesk.page/nextjs/components/QueryBanner.tsx
'use client';
import { useSearchParams } from 'next/navigation';

export default function QueryBanner() {
  const sp = useSearchParams();
  const getParam = (key: string) => sp?.get(key) ?? null;
  const toNum = (s: string | null, def: number) => {
    const n = Number(s);
    return Number.isFinite(n) ? n : def;
  };

  const tile_w = toNum(getParam('tile_w'), Number(process.env.NEXT_PUBLIC_TILE_W ?? 45));
  const tile_h = toNum(getParam('tile_h'), Number(process.env.NEXT_PUBLIC_TILE_H ?? 45));
  const grout  = toNum(getParam('grout'),  Number(process.env.NEXT_PUBLIC_GROUT  ?? 5));

  if (typeof window !== 'undefined') {
    // Debug in der Browser-Konsole
    // (erscheint NICHT bei curl, weil das clientseitig ist)
    console.log('QueryBanner params', { tile_w, tile_h, grout });
  }

  return (
    <div style={{ fontFamily: 'monospace', marginBottom: 8 }}>
      <div>Service: tile_w / tile_h / grout</div>
      <div>{tile_w} / {tile_h} / {grout}</div>
    </div>
  );
}

Youez - 2016 - github.com/yon3zu
LinuXploit