|
@@ -9,7 +9,7 @@ define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
|
9
|
9
|
<title><?=display_str($PageTitle)?></title>
|
10
|
10
|
<meta charset="utf-8" />
|
11
|
11
|
<link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
|
12
|
|
- <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="/static/opensearch.xml">
|
|
12
|
+ <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml">
|
13
|
13
|
<link rel="alternate" type="application/rss+xml"
|
14
|
14
|
href="feeds.php?feed=feed_news&user=<?=G::$LoggedUser['ID']?>&auth=<?=G::$LoggedUser['RSS_Auth']?>&passkey=<?=G::$LoggedUser['torrent_pass']?>&authkey=<?=G::$LoggedUser['AuthKey']?>"
|
15
|
15
|
title="<?=SITE_NAME?> - News" />
|
|
@@ -53,13 +53,13 @@ if (isset(G::$LoggedUser['Notify'])) {
|
53
|
53
|
href="feeds.php?feed=torrents_other&user=<?=G::$LoggedUser['ID']?>&auth=<?=G::$LoggedUser['RSS_Auth']?>&passkey=<?=G::$LoggedUser['torrent_pass']?>&authkey=<?=G::$LoggedUser['AuthKey']?>"
|
54
|
54
|
title="<?=SITE_NAME?> - Other Torrents" />
|
55
|
55
|
<link rel="stylesheet" type="text/css"
|
56
|
|
- href="<?=STATIC_SERVER?>styles/global.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/global.css')?>" />
|
57
|
|
- <link rel="stylesheet" href="<?=STATIC_SERVER?>styles/tooltipster/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/tooltipster/style.css')?>" type="text/css" media="screen" />
|
|
56
|
+ href="<?=STATIC_SERVER?>styles/global.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/global.css')?>" />
|
|
57
|
+ <link rel="stylesheet" href="<?=STATIC_SERVER?>styles/tooltipster/style.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/tooltipster/style.css')?>" type="text/css" media="screen" />
|
58
|
58
|
<?
|
59
|
59
|
if (empty(G::$LoggedUser['StyleURL'])) {
|
60
|
60
|
?>
|
61
|
61
|
<link rel="stylesheet" type="text/css" title="<?=G::$LoggedUser['StyleName']?>" media="screen"
|
62
|
|
- href="<?=STATIC_SERVER?>styles/<?=G::$LoggedUser['StyleName']?>/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/'.G::$LoggedUser['StyleName'].'/style.css')?>" />
|
|
62
|
+ href="<?=STATIC_SERVER?>styles/<?=G::$LoggedUser['StyleName']?>/style.css?v=<?=filemtime(SERVER_ROOT.STATIC_SERVER.'styles/'.G::$LoggedUser['StyleName'].'/style.css')?>" />
|
63
|
63
|
<?
|
64
|
64
|
} else {
|
65
|
65
|
$StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
|
|
@@ -81,7 +81,7 @@ foreach ($ExtraCSS as $CSS) {
|
81
|
81
|
continue;
|
82
|
82
|
}
|
83
|
83
|
?>
|
84
|
|
- <link rel="stylesheet" type="text/css" media="screen" href="<?=STATIC_SERVER."styles/$CSS/style.css?v=".filemtime(SERVER_ROOT."/static/styles/$CSS/style.css")?>" />
|
|
84
|
+ <link rel="stylesheet" type="text/css" media="screen" href="<?=STATIC_SERVER."styles/$CSS/style.css?v=".filemtime(SERVER_ROOT.STATIC_SERVER."styles/$CSS/style.css")?>" />
|
85
|
85
|
<?
|
86
|
86
|
}
|
87
|
87
|
?>
|
|
@@ -96,9 +96,9 @@ foreach ($Scripts as $Script) {
|
96
|
96
|
if (trim($Script) == '') {
|
97
|
97
|
continue;
|
98
|
98
|
}
|
99
|
|
- if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(STATIC_SERVER."functions/$Script.js")) {
|
100
|
|
- $ScriptStats['mtime'] = filemtime(STATIC_SERVER."functions/$Script.js");
|
101
|
|
- $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, STATIC_SERVER."functions/$Script.js", true));
|
|
99
|
+ if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
|
|
100
|
+ $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");
|
|
101
|
+ $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true));
|
102
|
102
|
$ScriptStats['algo'] = INTEGRITY_ALGO;
|
103
|
103
|
G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
|
104
|
104
|
}
|