-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
27 lines (26 loc) · 979 Bytes
/
header.php
File metadata and controls
27 lines (26 loc) · 979 Bytes
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
<?php
// Attempt to include site_meta.php, if it exists (after installation)
if (file_exists('site_meta.php')) {
require_once('site_meta.php');
}
// Define defaults if constants are not set (e.g., before installation or if site_meta.php is missing)
if (!defined('SITE_NAME')) {
define('SITE_NAME', 'Result Checker');
}
if (!defined('SITE_DESCRIPTION')) {
define('SITE_DESCRIPTION', 'Check your results online.');
}
?>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="<?php echo htmlspecialchars(SITE_DESCRIPTION); ?>">
<meta name="theme-color" content="wheat"/>
<title><?php echo htmlspecialchars(SITE_NAME); ?> - Student Portal</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<header style="background-color: #333; color: #fff; padding: 10px 0; text-align: center;">
<h1><?php echo htmlspecialchars(SITE_NAME); ?></h1>
</header>