<?php
$section = 'drugs';
require_once __DIR__ . '/db/config.php';
require_once __DIR__ . '/helpers.php';

require_once __DIR__ . '/includes/auth.php';
check_auth();
$db = db();
$lang = $_SESSION['lang'] ?? 'en';

require_once __DIR__ . '/includes/actions.php';
require_once __DIR__ . '/includes/common_data.php';

if (!isset($_GET['ajax_search'])) {
    require_once __DIR__ . '/includes/layout/header.php';
}

require_once __DIR__ . '/includes/pages/drugs.php';

if (!isset($_GET['ajax_search'])) {
    require_once __DIR__ . '/includes/layout/footer.php';
}