Вход Регистрация
Файл: upload/core/set-sidebar.php
Строк: 19
<?php

$requestUri 
$_SERVER['REQUEST_URI'];
$id abs((int)($_GET['id'] ?? 0));

$category = ["/category" $id];
$section = ["/section" $id];
$subcategory = ["/subcategory" $id];
$admin = ["/admin"];
$acc = ["/account"];

foreach (
$category as $routeSide) {
    if (
strpos($requestUri$routeSide) === 0) {
        return 
'';
    }
}

foreach (
$section as $routeSide) {
    if (
strpos($requestUri$routeSide) === 0) {
        return 
'';
    }
}

foreach (
$subcategory as $routeSide) {
    if (
strpos($requestUri$routeSide) === 0) {
        return 
'';
    }
}

foreach (
$admin as $routeSide) {
    if (
strpos($requestUri$routeSide) === 0) {
        return 
'';
    }
}

foreach (
$acc as $routeSide) {
    if (
strpos($requestUri$routeSide) === 0) {
        return 
'';
    }
}

$sidebar_global $view->render('components/sidebars/global.html', [
    
'home' => homeLink()
]);

return 
$sidebar_global;
Онлайн: 1
Реклама