2023-05-29 20:40:22 +02:00
|
|
|
<?php
|
|
|
|
$prod = false;
|
|
|
|
|
|
|
|
require_once("./libraries/router.php");
|
|
|
|
require_once("./libraries/console.php");
|
|
|
|
|
|
|
|
// Display Errors
|
|
|
|
ini_set('display_startup_errors', 1);
|
|
|
|
ini_set('display_errors', 1);
|
|
|
|
error_reporting(-1);
|
|
|
|
|
|
|
|
// Display var_dump
|
|
|
|
#var_dump($_SESSION);
|
|
|
|
|
|
|
|
// Date Time Zone
|
|
|
|
date_default_timezone_set('Europe/Prague');
|
|
|
|
|
|
|
|
// site info
|
|
|
|
$keywords = "Filip Rojek, rojek, vyvojar, developer, backend vyvojar, nodejs vyvojar, php vyvojar, web vyvojar, programator, linux administrator";
|
|
|
|
$description = "Linux user, backend web developer and student.";
|
|
|
|
$locale = "cs_CZ";
|
|
|
|
$title = "Filip Rojek | Developer";
|
|
|
|
$site_name = "Filip Rojek | Developer";
|
|
|
|
$author = "Fofrweb | https://fofrweb.com";
|
|
|
|
$email = "webmaster(@)fofrweb.com";
|
|
|
|
$canonical = "https://www.filiprojek.cz/";
|
2023-02-27 13:15:43 +01:00
|
|
|
?>
|
|
|
|
|
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
|
|
|
|
<meta id="contentLanguage" http-equiv="Content-Language" content="<?= $locale ?>" />
|
|
|
|
<meta name="keywords" content="<?= $keywords ?>" />
|
|
|
|
<meta name="description" content="<?= $description ?>" />
|
|
|
|
<meta property="og:locale" content="<?= $locale ?>" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:title" content="<?= $title ?>" />
|
|
|
|
<meta property="og:description" content="<?= $description ?>" />
|
|
|
|
<meta property="og:site_name" content="<?= $site_name ?>" />
|
|
|
|
<meta name="author" content="<?= $author ?>" />
|
|
|
|
<meta name="email" content="<?= $email ?>" />
|
|
|
|
<meta name="copyright" content="<?= $copyright ?>" />
|
|
|
|
<meta name="expires" content="never" />
|
|
|
|
|
2023-03-05 02:06:45 +01:00
|
|
|
<?php
|
|
|
|
if($prod) { ?>
|
2023-02-27 13:15:43 +01:00
|
|
|
<meta name="robots" content="index,follow" />
|
|
|
|
<meta name="Seznambot" content="index,follow" />
|
|
|
|
<meta name="Googlebot" content="index,follow" />
|
2023-05-29 20:40:22 +02:00
|
|
|
<?php } else { ?>
|
2023-02-27 13:15:43 +01:00
|
|
|
<meta name="robots" content="noindex, nofollow" />
|
|
|
|
<meta name="Seznambot" content="noindex, nofollow" />
|
|
|
|
<meta name="Googlebot" content="noindex, nofollow" />
|
2023-05-29 20:40:22 +02:00
|
|
|
<?php } ?>
|
2023-02-27 13:15:43 +01:00
|
|
|
|
|
|
|
<title><?= $title ?></title>
|
2023-03-05 14:35:00 +01:00
|
|
|
<link rel="icon" type="image/x-icon" href="/img/fr.ico" />
|
2023-02-27 13:15:43 +01:00
|
|
|
<link rel="canonical" href="<?= $canonical ?>" />
|
2023-03-04 23:46:16 +01:00
|
|
|
<link rel="stylesheet" href="/css/style.css">
|
2023-03-07 16:36:16 +01:00
|
|
|
<link rel="stylesheet" href="/css/variables.css">
|
2023-02-27 13:15:43 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2023-03-05 02:06:45 +01:00
|
|
|
<?php
|
|
|
|
require_once("./components/header.php");
|
|
|
|
?>
|
|
|
|
<section class="content">
|
|
|
|
<?php
|
2023-03-06 23:51:51 +01:00
|
|
|
$R = new Router();
|
2023-04-13 17:39:50 +02:00
|
|
|
$R->route('GET', '/', 'home');
|
|
|
|
$R->route('GET', '/home', 'home');
|
|
|
|
$R->route('GET', '/domu', 'home');
|
|
|
|
|
|
|
|
$R->route('POST', '/contact/send', 'contact');
|
2023-03-06 23:51:51 +01:00
|
|
|
|
|
|
|
$R = null;
|
2023-03-05 02:06:45 +01:00
|
|
|
?>
|
|
|
|
</section>
|
|
|
|
<footer>
|
|
|
|
<?php
|
2023-03-06 23:51:51 +01:00
|
|
|
require_once("./components/footer.php");
|
2023-03-05 02:06:45 +01:00
|
|
|
?>
|
|
|
|
</footer>
|
2023-02-27 13:15:43 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|