Files
Admin Nasledstvo ac168868ee Initial import
2026-05-01 20:52:04 +03:00

94 lines
2.3 KiB
PHP

<?php
/**
* @var $userinfo ;
*/
$lg = !empty($userinfo->locale) && $userinfo->locale == 'en' ? 'en' : 'bg';
$message = [
'bg' => 'Нямате права да влизате в този модул. За да получите достъп, моля свържете се със системния си администратор. Все още сте влезли в профила си в Nasledstvo.bg',
'en' => 'You do not have permission to enter this module. To gain access, please contact your system administrator. You are still logged in to your Nasledstvo.bg account'
];
$profile_button = [
'bg' => 'Към Вашия профил в Nasledstvo.bg',
'en' => 'To your profile at Nasledstvo.bg',
]
//die('Access denied. for user '. $userinfo->email);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/_public/assets/css/cms.css">
<title>CMS</title>
</head>
<style>
body {
background: #847650;
padding: 0;
margin: 0;
}
.panel {
width: 100%;
max-width: 500px;
background: #FFFFFF;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
border-radius: 20px;
margin: 100px auto 0;
padding-top: 20px;
}
.header {
height: 40px;
}
.body {
padding: 50px;
}
.message {
text-align: center;
}
.logo-header {
height: 100%;
display: block;
margin: 0 auto;
}
.link {
text-align: center;
margin-top: 30px;
}
.link a {
display: inline-block;
padding: 10px 20px;
background: #847650;
color: #FFFFFF;
border-radius: 10px;
text-decoration: none;
}
</style>
<body>
<div class="panel">
<div class="header">
<img alt="cms" class="logo-header" src="/_public/assets/images/header-logo-<?= $lg ?>.png">
</div>
<div class="body">
<div class="message"><?= $message[$lg] ?></div>
<div class="link">
<a href="https://id.nasledstvo.bg/" class="profile-button"><?= $profile_button[$lg] ?></a>
</div>
</div>
</div>
</body>
</html>