MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / html_header

Function html_header

web/include.php:12–43  ·  view source on GitHub ↗
($title)

Source from the content-addressed store, hash-verified

10 sha1($_REQUEST['key']) == 'a299db9fb7cea3851a60d8728a486633ac9f0d09');
11
12function html_header($title) {
13 if (IS_ADMIN)
14 output_add_rewrite_var('key', $_REQUEST['key']);
15
16 echo <<< HTML
17<!DOCTYPE html>
18<html>
19<head>
20<title>Alive2: $title</title>
21<script src="https://cdn.jsdelivr.net/npm/chart.js@2/dist/Chart.min.js"></script>
22<script src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
23<script src="https://cdn.jsdelivr.net/npm/tablesorter@2/dist/js/jquery.tablesorter.combined.min.js"></script>
24<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tablesorter@2/dist/css/theme.blue.min.css">
25<style>
26table {
27 border-collapse: collapse
28}
29
30table, th, td {
31 padding: 3px;
32 border: 1px solid black
33}
34</style>
35</head>
36<body>
37<h1>$title</h1>
38
39HTML;
40
41 if (IS_ADMIN)
42 echo "<p style=\"text-align:center; color:red\"><b>ADMIN MODE</b></p>\n";
43}
44
45function html_footer() {
46 $vars = '';

Callers 1

index.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected