41 lines
1.8 KiB
Bash
Executable file
41 lines
1.8 KiB
Bash
Executable file
#!/bin/sh
|
|
PAGE=$1
|
|
ROOT=$2
|
|
|
|
sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"https://www-old.gnome.org/default.css\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"https://foundation-old.gnome.org/foundation.css\" /><link rel=\"icon\" type=\"image/png\" href=\"https://www-old.gnome.org/img/logo/foot-16.png\" />,i;s,<body\([^>]*\)>,<body\1><div id=\"body\">,i;/<\/body>/,//d" $PAGE
|
|
|
|
cat <<-FOOT
|
|
</div>
|
|
|
|
<div id="hdr">
|
|
<div id="logo"><a href="$ROOT/"><img src="https://www.gnome.org/img/spacer" alt="Home" /></a></div>
|
|
<div id="banner"><img src="https://www.gnome.org/img/spacer" alt="" /></div>
|
|
<p class="none"></p>
|
|
<div id="hdrNav">
|
|
<a href="https://www.gnome.org/about/">About GNOME</a> ·
|
|
<a href="https://www.gnome.org/start/stable/">Download</a> ·
|
|
<!--<a href="http://www.gnome.org/contribute/"><i>Get Involved!</i></a> ·-->
|
|
<a href="https://www.gnome.org/">Users</a> ·
|
|
<a href="https://help.gnome.org/devel">Developers</a> ·
|
|
<a href="https://foundation.gnome.org/"><b>Foundation</b></a> ·
|
|
<a href="https://www.gnome.org/contact/">Contact</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Piwik -->
|
|
<script type="text/javascript">
|
|
var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/" : "http://webstats.gnome.org/");
|
|
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
|
|
</script><script type="text/javascript">
|
|
try {
|
|
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
|
|
piwikTracker.trackPageView();
|
|
piwikTracker.enableLinkTracking();
|
|
} catch( err ) {}
|
|
</script><noscript><p><img src="https://webstats.gnome.org/piwik.php?idsite=5" style="border:0" alt=""/></p></noscript>
|
|
<!-- End Piwik Tag -->
|
|
|
|
</body>
|
|
|
|
</html>
|
|
FOOT
|