-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
172 lines (152 loc) · 5.66 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
const APP_NAME = 'SIKessEm';
const APP_DOMAIN = 'sikessem.com';
const APP_HOME = '/';
const APP_PORT = 80;
const APP_LANG = 'fr';
const DEV_NAME = 'Sigui Kessé Emmanuel';
const DEV_EMAIL = 'contact@sigui.ci';
const DEV_HOME = 'https://sigui.ci';
function secure(): bool {
return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on';
}
function scheme(): string {
return secure() ? 'https' : 'http';
}
function host(): string {
return $_SERVER['HTTP_HOST'] ?? APP_DOMAIN;
}
function port(): int {
return $_SERVER['SERVER_PORT'] ?? APP_PORT;
}
function uri(): string {
return $_SERVER['REQUEST_URI'] ?? APP_HOME;
}
function path(string $name = null): string {
return scheme() . '://' . host() . (port() !== 80 ? ':' . port() : '') . ($name ? '/' . $name : '');
}
?>
<!DOCTYPE html>
<html lang="<?= APP_LANG ?>">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="<?= APP_LANG ?>"/>
<meta name="author" content="<?= DEV_NAME ?>"/>
<meta name="description" content="<?= DEV_NAME ?>"/>
<meta name="keywords" content="<?= APP_NAME . ', ' . DEV_NAME ?>"/>
<meta name="robots" content="index, follow"/>
<meta name="revisit-after" content="1 days"/>
<meta name="googlebot" content="index, follow"/>
<meta name="googlebot-news" content="index, follow"/>
<meta name="googlebot-image" content="index, follow"/>
<meta name="googlebot-video" content="index, follow"/>
<meta name="googlebot-shop" content="index, follow"/>
<base href="<?= path() ?>"/>
<title><?= APP_NAME ?></title>
<link rel="icon" href="favicon.png" type="image/png"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
<meta property="og:title" content="<?= APP_NAME ?>"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="<?= path() ?>"/>
<meta property="og:site_name" content="<?= APP_NAME ?>"/>
<meta property="og:image" content="<?= path('icon.png') ?>"/>
<meta property="og:description" content="<?= DEV_NAME ?>"/>
<meta property="og:locale" content="<?= APP_LANG ?>"/>
<meta property="og:locale:alternate" content="<?= APP_LANG ?>"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="@about_sikessem"/>
<meta name="twitter:title" content="<?= APP_NAME ?>"/>
<meta name="twitter:description" content="<?= DEV_NAME ?>"/>
<meta name="twitter:image" content="<?= path('icon.png') ?>"/>
<meta name="twitter:creator" content="@about_sikessem"/>
<meta name="twitter:site" content="@about_sikessem"/>
<meta name="twitter:domain" content="<?= APP_DOMAIN ?>"/>
<meta name="twitter:app:name:iphone" content="<?= APP_NAME ?>"/>
<meta name="twitter:app:name:ipad" content="<?= APP_NAME ?>"/>
<meta name="twitter:app:name:googleplay" content="<?= APP_NAME ?>"/>
<meta name="twitter:app:url:iphone" content="<?= path() ?>"/>
<meta name="twitter:app:url:ipad" content="<?= path() ?>"/>
<meta name="twitter:app:url:googleplay" content="<?= path() ?>"/>
<meta name="twitter:app:id:iphone" content=""/>
<meta name="twitter:app:id:ipad" content=""/>
<meta name="twitter:app:id:googleplay" content=""/>
<meta itemprop="name" content="<?= APP_NAME ?>"/>
<meta itemprop="description" content="<?= DEV_NAME ?>"/>
<meta itemprop="image" content="<?= path('icon.png') ?>"/>
<meta itemprop="url" content="<?= path() ?>"/>
<meta itemprop="author" content="<?= DEV_NAME ?>"/>
<meta itemprop="publisher" content="<?= DEV_NAME ?>"/>
<meta itemprop="datePublished" content="<?= date('Y-m-d') ?>"/>
<meta itemprop="dateModified" content="<?= date('Y-m-d') ?>"/>
<meta itemprop="copyrightYear" content="<?= date('Y') ?>"/>
<meta itemprop="inLanguage" content="<?= APP_LANG ?>"/>
<meta itemprop="isFamilyFriendly" content="true"/>
<meta itemprop="isPartOf" content="<?= APP_NAME ?>"/>
<style>
*::before, *, *::after {
box-sizing: inherit;
font: inherit;
}
:root {
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 1.5;
color: #333;
background-color: #ddd;
background-image: linear-gradient(to right, #7800ff, #ff0078), linear-gradient(to bottom, #7800ff, #ff0078);
background-size: 100% 100%, 100% 100%;
background-position: left top, left bottom;
background-repeat: no-repeat, no-repeat;
background-attachment: fixed, fixed;
background-blend-mode: multiply, multiply;
background-clip: content-box, content-box;
background-origin: padding-box, padding-box;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
width: 100vw;
overflow: hidden;
color: #fff;
text-align: center;
}
a {
text-decoration: none;
color: inherit;
}
a:hover {
text-decoration: underline;
}
h1 span {
color: #fff;
font-size: 1.5em;
font-weight: 700;
text-shadow: 0 0 0.5em #fff;
display: block;
}
.sikessem-brand {
content: url('<?= path('logo.svg') ?>');
height: 2.7em;
}
h1 .material-icons {
font-size: 4.3rem;
}
</style>
</head>
<body>
<h1><a href="<?= path() ?>"><span class="material-icons">home</span><br/><span class="sikessem-brand"><?= APP_NAME ?></span></a></h1>
<p><?= DEV_NAME ?> · <?= APP_NAME ?> © <?= date('Y') ?></p>
</body>
</html>