Fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
require_once __DIR__ . '/../config/database.php';
|
||||
require_once __DIR__ . '/config/database.php';
|
||||
|
||||
if (!isset($_SESSION['isLoggedIn']) || $_SESSION['isLoggedIn'] !== true) {
|
||||
header('Location: login.php?error=auth_required');
|
||||
@@ -47,6 +47,7 @@ try {
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<base href="/cite_practica/">
|
||||
<title>AETERNA - Оформление заказа</title>
|
||||
<link rel="stylesheet/less" type="text/css" href="style_for_cite.less">
|
||||
<script src="https://cdn.jsdelivr.net/npm/less"></script>
|
||||
@@ -99,7 +100,7 @@ try {
|
||||
<i class="fas fa-shopping-cart" style="font-size: 48px; color: #ccc; margin-bottom: 20px;"></i>
|
||||
<p>Ваша корзина пуста</p>
|
||||
<div class="continue-shopping">
|
||||
<a href="/catalog.php" class="btn">Продолжить покупки</a>
|
||||
<a href="catalog.php" class="btn">Продолжить покупки</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
@@ -107,7 +108,7 @@ try {
|
||||
<?php foreach ($cart_items as $item): ?>
|
||||
<div class="products__item" data-product-id="<?= $item['product_id'] ?>" data-price="<?= $item['price'] ?>">
|
||||
<div class="products__image">
|
||||
<img src="<?= htmlspecialchars($item['image_url'] ?? 'img1/default.jpg') ?>"
|
||||
<img src="<?= htmlspecialchars($item['image_url'] ?? 'img/1.jpg') ?>"
|
||||
alt="<?= htmlspecialchars($item['name']) ?>"
|
||||
class="product-img">
|
||||
</div>
|
||||
@@ -283,7 +284,7 @@ if (file_exists('footer.php')) {
|
||||
<div class="footer__col">
|
||||
<h5>ПОКУПАТЕЛЮ</h5>
|
||||
<ul>
|
||||
<li><a href="/catalog.php">Каталог</a></li>
|
||||
<li><a href="catalog.php">Каталог</a></li>
|
||||
<li><a href="services.php">Услуги</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user