|
@@ -6,16 +6,21 @@ define('FOOTER_FILE', SERVER_ROOT.'/design/publicfooter.php');
|
6
|
6
|
|
7
|
7
|
<!DOCTYPE html>
|
8
|
8
|
<html>
|
|
9
|
+
|
9
|
10
|
<head>
|
10
|
|
- <title><?=display_str($PageTitle)?></title>
|
|
11
|
+ <title><?=display_str($PageTitle)?>
|
|
12
|
+ </title>
|
11
|
13
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
12
|
14
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
13
|
15
|
<meta name="theme-color" content="#461640">
|
14
|
|
- <link rel="shortcut icon" href="static/common/icon.png?v=<?=md5_file('static/common/icon.png');?>">
|
|
16
|
+ <link rel="shortcut icon"
|
|
17
|
+ href="static/common/icon.png?v=<?=md5_file('static/common/icon.png');?>">
|
15
|
18
|
<link rel="manifest" href="/manifest.php">
|
16
|
|
- <link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css">
|
|
19
|
+ <link
|
|
20
|
+ href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>"
|
|
21
|
+ rel="stylesheet" type="text/css">
|
17
|
22
|
|
18
|
|
-<?php
|
|
23
|
+ <?php
|
19
|
24
|
$Scripts = ['jquery', 'global', 'ajax.class', 'cookie.class', 'storage.class', 'public', 'u2f'];
|
20
|
25
|
foreach ($Scripts as $Script) {
|
21
|
26
|
if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
|
|
@@ -24,28 +29,33 @@ define('FOOTER_FILE', SERVER_ROOT.'/design/publicfooter.php');
|
24
|
29
|
$ScriptStats['algo'] = INTEGRITY_ALGO;
|
25
|
30
|
G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
|
26
|
31
|
} ?>
|
27
|
|
- <script src="<?=STATIC_SERVER."functions/$Script.js?v=$ScriptStats[mtime]"?>" type="text/javascript" integrity="<?="$ScriptStats[algo]-$ScriptStats[hash]"?>"></script>
|
28
|
|
-<?php
|
|
32
|
+ <script src="<?=STATIC_SERVER."functions/$Script.js?v=$ScriptStats[mtime]"?>"
|
|
33
|
+ type="text/javascript"
|
|
34
|
+ integrity="<?="$ScriptStats[algo]-$ScriptStats[hash]"?>"></script>
|
|
35
|
+ <?php
|
29
|
36
|
}
|
30
|
37
|
$img = array_diff(scandir(SERVER_ROOT.'/misc/bg', 1), array('.', '..')); ?>
|
31
|
38
|
<meta name="bg_data" content="<?=$img[rand(0, count($img)-1)]?>">
|
32
|
39
|
</head>
|
33
|
40
|
|
34
|
41
|
<body>
|
35
|
|
-<div id="head"><span>
|
36
|
|
-<a href="login.php">Log In</a>
|
37
|
|
-<?php if (OPEN_REGISTRATION) { ?>
|
38
|
|
- | <a href="register.php">Register</a>
|
39
|
|
-<?php } ?>
|
40
|
|
-| <a href="mailto:support@biotorrents.de?subject=[TxID <?= strtoupper(bin2hex(random_bytes(2))) ?>] Vague subject lines ignored">Support</a>
|
41
|
|
-</span></div>
|
42
|
|
-<div id="content">
|
|
42
|
+ <div id="head"><span>
|
|
43
|
+ <!-- <a href="login.php">Log In</a> -->
|
|
44
|
+ <?php if (OPEN_REGISTRATION) { ?>
|
|
45
|
+ <a href="register.php">Register</a>
|
|
46
|
+ <?php } ?>
|
|
47
|
+ | <a
|
|
48
|
+ href="mailto:support@biotorrents.de?subject=[TxID <?= strtoupper(bin2hex(random_bytes(2))) ?>] Vague subject lines ignored">Support</a>
|
|
49
|
+ </span></div>
|
|
50
|
+ <div id="content">
|
43
|
51
|
|
44
|
52
|
<!-- todo: Put index page stats here -->
|
45
|
53
|
<?php #include('/sections/login/stats.php');?>
|
46
|
54
|
|
47
|
|
- <table class="layout" id="maincontent">
|
48
|
|
- <tr>
|
49
|
|
- <td class="centered">
|
50
|
|
- <a href="/"><div id="logo"></div></a>
|
51
|
|
-<?php
|
|
55
|
+ <table class="layout" id="maincontent">
|
|
56
|
+ <tr>
|
|
57
|
+ <td class="centered">
|
|
58
|
+ <a href="/">
|
|
59
|
+ <div id="logo"></div>
|
|
60
|
+ </a>
|
|
61
|
+ <?php
|