Browse Source

More static changes

spaghetti 8 years ago
parent
commit
473aede7ba
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      design/privateheader.php

+ 8
- 8
design/privateheader.php View File

9
   <title><?=display_str($PageTitle)?></title>
9
   <title><?=display_str($PageTitle)?></title>
10
   <meta charset="utf-8" />
10
   <meta charset="utf-8" />
11
   <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
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
   <link rel="alternate" type="application/rss+xml"
13
   <link rel="alternate" type="application/rss+xml"
14
       href="feeds.php?feed=feed_news&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
14
       href="feeds.php?feed=feed_news&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
15
       title="<?=SITE_NAME?> - News" />
15
       title="<?=SITE_NAME?> - News" />
53
       href="feeds.php?feed=torrents_other&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
53
       href="feeds.php?feed=torrents_other&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
54
       title="<?=SITE_NAME?> - Other Torrents" />
54
       title="<?=SITE_NAME?> - Other Torrents" />
55
   <link rel="stylesheet" type="text/css"
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
 if (empty(G::$LoggedUser['StyleURL'])) {
59
 if (empty(G::$LoggedUser['StyleURL'])) {
60
 ?>
60
 ?>
61
 <link rel="stylesheet" type="text/css" title="<?=G::$LoggedUser['StyleName']?>" media="screen"
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
 } else {
64
 } else {
65
   $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
65
   $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
81
     continue;
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
   if (trim($Script) == '') {
96
   if (trim($Script) == '') {
97
     continue;
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
     $ScriptStats['algo'] = INTEGRITY_ALGO;
102
     $ScriptStats['algo'] = INTEGRITY_ALGO;
103
     G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
103
     G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
104
   }
104
   }

Loading…
Cancel
Save