mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
101 lines
4.8 KiB
PHP
101 lines
4.8 KiB
PHP
<?php
|
|
$session = session();
|
|
$token = $session->get('token') ?? '';
|
|
$tfa = $session->get('tfa') ?? false;
|
|
$settings = $session->get('settings');
|
|
if (!empty($token) && $tfa == false) {
|
|
echo "<script>window.location.href = '/'; </script>";
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
|
|
<html
|
|
lang="<?= $settings['default_language'] ?? 'es' == 'pt' ? 'pt-br' : $settings['default_language'] ?? 'es' ?>"
|
|
class="h-100"
|
|
class="dark-style customizer-hide"
|
|
dir="ltr"
|
|
data-theme="theme-default"
|
|
data-assets-path="<?= site_url('themes/vuexy/') ?>"
|
|
data-template="vertical-menu-template-no-customizer"
|
|
>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
|
|
/>
|
|
|
|
<title><?= $settings['title'] ?? '' ?><?= empty($title ?? '') ? '' : ' - ' . $title ?></title>
|
|
|
|
<meta name="description" content=""/>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/x-icon" href="<?= site_url('themes/vuexy/img/favicon/favicon.ico') ?>"/>
|
|
<link rel="apple-touch-icon" sizes="57x57" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-57x57.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="60x60" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-60x60.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-72x72.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-76x76.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="114x114"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-114x114.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="120x120"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-120x120.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="144x144"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-144x144.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="152x152"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-152x152.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="180x180"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-180x180.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="192x192"
|
|
href="<?= site_url('themes/vuexy/img/favicon/android-icon-192x192.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="32x32"
|
|
href="<?= site_url('themes/vuexy/img/favicon/favicon-32x32.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="96x96"
|
|
href="<?= site_url('themes/vuexy/img/favicon/favicon-96x96.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="16x16"
|
|
href="<?= site_url('themes/vuexy/img/favicon/favicon-16x16.png') ?>">
|
|
<link rel="manifest" href="<?= site_url('themes/vuexy/img/favicon/manifest.json') ?>">
|
|
|
|
<!-- Fonts -->
|
|
<link rel="preconnect" href="https:/fonts.googleapis.com"/>
|
|
<link rel="preconnect" href="https:/fonts.gstatic.com" crossorigin/>
|
|
<link
|
|
href="https:/fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
|
|
<!-- Icons -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/fonts/fontawesome.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/fonts/tabler-icons.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/fonts/flag-icons.css') ?>"/>
|
|
|
|
<!-- Core CSS -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/rtl/core-dark.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/rtl/theme-default-dark.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/demo.css') ?>"/>
|
|
|
|
<!-- Vendors CSS -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/perfect-scrollbar/perfect-scrollbar.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/node-waves/node-waves.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/typeahead-js/typeahead.css') ?>"/>
|
|
<!-- Vendor -->
|
|
<link rel="stylesheet"
|
|
href="<?= site_url('themes/vuexy/vendor/libs/formvalidation/dist/css/formValidation.min.css') ?>"/>
|
|
|
|
<!-- Page CSS -->
|
|
<!-- Page -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/pages/page-auth.css') ?>"/>
|
|
<!-- Helpers -->
|
|
<script src="<?= site_url('themes/vuexy/vendor/js/helpers.js') ?>"></script>
|
|
<script src="<?= site_url('themes/vuexy/js/config.js') ?>"></script>
|
|
|
|
<?php
|
|
if ($settings['captcha_gateway'] == 'recaptcha') {
|
|
echo "<script src='https:/www.google.com/recaptcha/api.js' async defer></script>";
|
|
} else {
|
|
echo "<script src='https:/www.hCaptcha.com/1/api.js' async defer></script>";
|
|
}
|
|
?>
|
|
</head>
|
|
<body>
|