website/index.php

91 lines
2.6 KiB
PHP
Raw Normal View History

2023-02-27 13:15:43 +01:00
<?php
session_start();
$prod = false;
2023-03-05 02:06:45 +01:00
require_once("./libraries/router.php");
require_once("./libraries/console.php");
2023-03-05 02:06:45 +01:00
2023-02-27 13:15:43 +01:00
// 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
2023-03-04 23:46:16 +01:00
$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.";
2023-02-27 13:15:43 +01:00
$locale = "cs_CZ";
2023-03-04 23:46:16 +01:00
$title = "Filip Rojek | Developer";
$site_name = "Filip Rojek | Developer";
2023-02-27 13:15:43 +01:00
$author = "Fofrweb | https://fofrweb.com";
$email = "webmaster(@)fofrweb.com";
2023-03-04 23:46:16 +01:00
$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" />
<?php } else { ?>
<meta name="robots" content="noindex, nofollow" />
<meta name="Seznambot" content="noindex, nofollow" />
<meta name="Googlebot" content="noindex, nofollow" />
<?php } ?>
<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
$R = new Router();
$R->route('GET', '/', 'home');
$R->route('GET', '/home', 'home');
$R->route('GET', '/domu', 'home');
$R->route('POST', '/contact/send', 'contact');
$R = null;
2023-03-05 02:06:45 +01:00
?>
</section>
<footer>
<?php
require_once("./components/footer.php");
2023-03-05 02:06:45 +01:00
?>
</footer>
2023-02-27 13:15:43 +01:00
</body>
</html>