Внедрение шаблонизатора.
This commit is contained in:
parent
6f903573d0
commit
bc0992f281
20
enter.php
20
enter.php
@ -51,19 +51,9 @@ if ($username && $password) {
|
||||
} else {
|
||||
$error = ERROR_EMPTY_CREDENTIALS;
|
||||
}
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ru-RU">
|
||||
<head>
|
||||
<meta charset=UTF-8">
|
||||
<link href="css/main.css" rel="stylesheet">
|
||||
<title>Входим...</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php if (!empty($error)): ?>
|
||||
<a href="/"> ← на главную</a>
|
||||
<h1><?= $error ?></h1>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
||||
Template::header('Входим...');
|
||||
|
||||
if ($error) {
|
||||
echo sprintf('<a href="/"> ← на главную</a><h1>%s</h1>', $error);
|
||||
}
|
Loading…
Reference in New Issue
Block a user