website-slackware.uk/html/old/header.php.works

263 lines
19 KiB
Text

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<?php
# Credit goes to Dominic Barnes - http://stackoverflow.com/users/188702/dominic-barnes
# http://stackoverflow.com/questions/2594211/php-simple-dynamic-breadcrumb
// This function will take $_SERVER['REQUEST_URI'] and build a breadcrumb based on the user's current path
function breadcrumbs($separator = ' &raquo; ', $home = 'Home') {
// This gets the REQUEST_URI (/path/to/file.php), splits the string (using '/') into an array, and then filters out any empty values
$path = array_filter(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
// This will build our "base URL" ... Also accounts for HTTPS :)
$base = ($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/';
// Initialize a temporary array with our breadcrumbs. (starting with our home page, which I'm assuming will be the base URL)
$breadcrumbs = Array("<a href=\"$base\">$home</a>");
// Find out the index for the last value in our path array
$tmp = array_keys($path);
$last = end($tmp);
// Build the rest of the breadcrumbs
foreach ($path AS $x => $crumb) {
// If we are not on the last index, then display an <a> tag
if ($x != $last)
$breadcrumbs[] = "<a href=\"$base$crumb\">$crumb</a>";
// Otherwise, just display the title (minus)
else
$breadcrumbs[] = $crumb;
}
// Build our temporary array (pieces of bread) into one big string :)
return implode($separator, $breadcrumbs);
}
?>
<?php $titleprefix = "Slackware UK: ";
if ($_SERVER['REQUEST_URI'] == "/") {
print ( " <title>" . $titleprefix . "Main Page" . "</title>" . "\n" );
} elseif (preg_match (":^/absolute/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Absolute Linux" . "</title>" . "\n" );
} elseif (preg_match (":^/csb/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Cinnamon SlackBuild (CSB)" . "</title>" . "\n" );
} elseif (preg_match (":^/cumulative/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Cumulative Archive" . "</title>" . "\n" );
} elseif (preg_match (":^/freeslack/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Freeslack" . "</title>" . "\n" );
} elseif (preg_match (":^/gsb/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "GNOME SlackBuild (GSB)" . "</title>" . "\n" );
} elseif (preg_match (":^/microlinux/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Microlinux" . "</title>" . "\n" );
} elseif (preg_match (":^/msb/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "MATE SlackBuild (MSB)" . "</title>" . "\n" );
} elseif ($_SERVER['REQUEST_URI'] == "/people/") {
print ( " <title>" . $titleprefix . "SlackBuilds and Packages From People" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alien-arm/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "AlienBOB's Slackware ARM Build" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alien-current-iso/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "AlienBOB's Slackware-current ISOs" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alien-kde/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "AlienBOB's 'Ktown' KDE Builds" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alien-openvz/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "AlienBOB's OpenVZ Container Template" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alien-slacklive/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "AlienBOB's Slackware Live (slaklive)" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alien/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "AlienBOB's SlackBuilds and Packages" . "</title>" . "\n" );
} elseif (preg_match (":^/people/alphageek/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Alphageek's SlackBuilds and Packages" . "</title>" . "\n" );
} elseif (preg_match (":^/people/rlworkman/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "rworkman's SlackBuilds and Packages" . "</title>" . "\n" );
} elseif (preg_match (":^/people/rworkman/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "rworkman's SlackBuilds and Packages" . "</title>" . "\n" );
} elseif (preg_match (":^/porteus/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Porteus" . "</title>" . "\n" );
} elseif (preg_match (":^/salix/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Salix OS" . "</title>" . "\n" );
} elseif (preg_match (":^/sbosrcarch/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "SlackBuilds.org Sources Archive" . "</title>" . "\n" );
} elseif (preg_match (":^/slackbuilds.org/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "SlackBuilds.org (SBo)" . "</title>" . "\n" );
} elseif (preg_match (":^/slackintosh/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slackintosh" . "</title>" . "\n" );
} elseif (preg_match (":^/smlinux/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Smlinux" . "</title>" . "\n" );
} elseif (preg_match (":^/slackonly/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "SlackOnly" . "</title>" . "\n" );
} elseif (preg_match (":^/slackware/slackware-iso/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slackware Linux ISOs" . "</title>" . "\n" );
} elseif (preg_match (":^/slackware/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slackware Linux" . "</title>" . "\n" );
} elseif (preg_match (":^/slackwarearm/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "SlackwareARM" . "</title>" . "\n" );
} elseif (preg_match (":^/slacky/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slacky" . "</title>" . "\n" );
} elseif (preg_match (":^/slamd64/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slamd64 Linux" . "</title>" . "\n" );
} elseif (preg_match (":^/slarm64/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slarm64" . "</title>" . "\n" );
} elseif (preg_match (":^/slaxbmc/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "SlaXBMC Project" . "</title>" . "\n" );
} elseif (preg_match (":^/slint/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Slint Project" . "</title>" . "\n" );
} elseif (preg_match (":^/sls/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Softlanding Linux System (SLS)" . "</title>" . "\n" );
} elseif (preg_match (":^/splack/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Splack" . "</title>" . "\n" );
} elseif (preg_match (":^/studioware/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Studioware" . "</title>" . "\n" );
} elseif (preg_match (":^/truva/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Truva Linux" . "</title>" . "\n" );
} elseif (preg_match (":^/zenwalk/.*:", $_SERVER['REQUEST_URI'])) {
print ( " <title>" . $titleprefix . "Zenwalk" . "</title>" . "\n" );
} else {
print ( " <title>" . $titleprefix . "Index of " . $_SERVER['REQUEST_URI'] . "</title>" . "\n" );
}
?>
<link rel="stylesheet" href="/html/index.css" type="text/css">
<link rel="shortcut icon" href="/html/favicons/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/html/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/html/favicons/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/html/favicons/apple-touch-icon.png">
<link rel="manifest" href="/html/favicons/site.webmanifest">
<link rel="mask-icon" href="/html/favicons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/html/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<meta name="author" content="Darren 'Tadgy' Austin">
<meta name="description" content="UK Slackware Linux and Slackware based project hosting & mirror service.">
<meta name="keywords" content="Slack,Slack64,Slackware,Slackware64,Slackware Linux,Slack UK,Slack64 UK,Slackware UK,Slackware64 UK,Slackware Linux UK,Slack mirror,Slack64 mirror,Slackware mirror,Slackware64 mirror,Slackware Linux mirror,Slack mirrors,Slack64 mirrors,Slackware mirrors,Slackware64 mirrors,Slackware Linux mirrors,Slack mirror UK,Slack64 mirror UK,Slackware mirror UK,Slackware64 mirror UK,Slackware Linux mirror UK,Linux,Linux UK,Linux mirror,Linux mirrors,CSB,Slackware CSB,FreeSlack,MSB,MSB Slackware,alienBOB,alienBOB mirror,alien mirror,alienBOB multilib,alien multilib,alienBOB KDE,alienBOB Ktown,alien KDE,alien ktown,rworkman,rworkman mirror,sbosrcarch,slackbuilds.org,slackbuilds.org mirror,SBo,SBo mirror,slackwareARM">
<meta name="google-site-verification" content="NrTA5svYU1fXFm6RMVkVvsCXF84mkwfKTckHfsTUyVM">
<meta name="msvalidate.01" content="9E9AFC7E738EB5E9FF87F0EEBE1BDE8A">
</head>
<body>
<?php if ($_SERVER['REQUEST_URI'] == "/") { ?>
<center>
<p><img src="/html/slackwareuk.png" alt="** Slackware UK **" title="Slackware UK" border=0 align=center></p>
<p>
<b>is kindly sponsored by:</b>
<div align="center">
<a href="http://www.file-away.co.uk/" title="File-away Limited"><img src="/html/fileaway.png" alt="- File-away Limited -" title="File-away Limited" border="0" align="center" hspace="50"></a>
<a href="http://www.uk2.net/" title="UK2"><img src="/html/uk2.png" alt="- UK2 -" title="UK2" border="0" align="center" hspace="50"></a>
</div>
<br>
<b>Please take a moment to visit the sponsors using the links above!</b>
</p>
<hr width="100%">
<table width="90%" cellspacing="5">
<tr>
<td align="left" valign="top" width="15%">
<b>Access:</b>
</td>
<td align="left" valign="top">
This service can be accessed via:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HTTP:&nbsp;&nbsp;<a href="http://slackware.uk/" title="HTTP URI" alt="HTTP URI">http://slackware.uk/</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HTTPS:&nbsp;&nbsp;<a href="https://slackware.uk/" title="HTTPS URI" alt="HTTPS URI">https://slackware.uk/</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FTP:&nbsp;&nbsp;<a href="ftp://slackware.uk/" title="FTP URI" alt="FTP URI">ftp://slackware.uk/</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FTPS:&nbsp;&nbsp;<a href="ftps://slackware.uk/" title="FTPS URI" alt="FTPS URI">ftps://slackware.uk/</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rsync:&nbsp;&nbsp;<a href="rsync://slackware.uk/" title="Rsync URI" alt="Rsync URI">rsync://slackware.uk/</a>
</td>
</tr>
<tr>
<td align="left" valign="top" width="15%">
<b>Notice:</b>
</td>
<td align="left" valign="top">
All connections and transfers are logged. By accessing this service you implicitly agree to our collecting your IP address for analytics purposes. We do not collect or hold any user identifying data.<br>
Do not use multiple concurrent connections or "make your downloads faster" applications.<br>
Access to this service is a privilege, not a right - abusive users will be firewalled without warning.
</td>
</tr>
<tr>
<td align="left" valign="top" width="15%">
<b>Notice to mirrors:</b>
</td>
<td align="left" valign="top">
If you are running a mirroring service and pulling data from multiple repositories on a regular basis, please email for access to the top-level repo - so you can pull everything in one go. We do not operate any blacklisting or whitelisting on access to repositories at this time.
<!-- If you are running a mirroring service and pulling data from us on a regular basis, please email for access to the un-capped, non-bandwidth limited module - your updates will then be unaffected by bandwidth limitations and user-level capping. -->
</td>
</tr>
<tr>
<td align="left" valign="top" width="15%">
<b>Mirroring requests:</b>
</td>
<td align="left" valign="top">
This service is primarily intended to provide a mirror service for <a href="http://www.slackware.com/" title="Slackware Linux" alt="Slackware Linux">Slackware Linux</a> based projects. If you run a Slackware based project, or have a suggestion for a project which may benefit from being mirrored here, please message with full details.
</td>
</tr>
<tr>
<td align="left" valign="top" width="15%">
<b>Patronage & donations:</b>
</td>
<td align="left" valign="top">
If you use the Slackware UK services on a regular basis, and would like to make a continuing patronage towards the ongoing running costs and in support of the Slackware UK service, please use the <a href="https://www.patreon.com/slackwareUK" title="Patreon page" alt="Patreon page">Patreon page</a> to sign up - Patreons receive special benefits for their support!<br>
For one-off donations or if you do not wish to use Patreon, please Paypal an amount you feel is appropriate using <a href="https://paypal.me/slackwareUK" title="Slackware UK's Paypal" alt="Slackware UK's Paypal">this link</a> or to: <b>donate&nbsp;(at)&nbsp;slackware.uk</b>. If you do not wish your name to be included in the Paypal supporters list (which can be found <a href="/html/project_supporters.html" title="Paypal supporters" alt="here">here</a>), please add a note to your Paypal transaction to let me know.<br>
All donations will be gratefully received - thank you!
</td>
</tr>
<tr>
<td align="right" valign="top" colspan="2">
<b>Darren 'Tadgy' Austin</b><br>
<b>Email:</b> <a href="mailto:mirrors (at) slackware.uk" title="Send email" alt="Send email">mirrors (at) slackware.uk</a><br>
<b>IRC:</b> On <a href="http://freenode.net/" title="Freenode IRC Network" alt="Freenode IRC Network">Freenode</a>, join #slackware.uk channel or PM 'Tadgy'
</td>
</tr>
</table>
</center>
<?php } elseif (preg_match (":^/slackware/slackware-iso/.*:", $_SERVER['REQUEST_URI'])) { ?>
<center><p><a href="/" title="Slackware UK" alt="** Slackware UK **"><img src="/html/slackwareuk.png" alt="** Slackware UK **" title="Slackware UK" border=0 align=center></a></p></center>
<hr width="100%">
<table width="75%" cellspacing="0" align="center">
<tr>
<td align="center" valign="top">
<font size="+2"><b>Patronage & donations</b></font><br>
If you use this service on a regular basis, and would like to make a continuing patronage towards the ongoing running costs and in support of the Slackware UK service, please use the <a href="https://www.patreon.com/slackwareUK" title="Patreon page" alt="Patreon page">Patreon page</a> to sign up - Patreons receive special benefits for their support! For one-off donations or if you do not wish to use Patreon, please Paypal an amount you feel is appropriate using <a href="https://paypal.me/slackwareUK" title="Slackware UK's Paypal" alt="Slackware UK's Paypal">this link</a> or to: <b>donate&nbsp;(at)&nbsp;slackware.uk</b>. If you do not wish your name to be included in the Paypal supporters list (which can be found <a href="/html/project_supporters.html" title="Paypal supporters" alt="here">here</a>), please add a note to your Paypal transaction to let me know.<br>
All donations will be gratefully received - thank you!
</td>
</tr>
<tr>
<td align="center" valign="top">
<hr width="100%">
<font size="+2"><b>A Faster Way to Download Slackware Linux ISOs</b></font><br>
Slackware UK now offers a <a href="https://seedbox.slackware.uk/" title="Bittorrent seeding service" alt="Bittorrent seeding service">Bittorrent seeding service</a> which may allow you to download the Slackware ISOs at a much faster speed (<b>especially immediately following a new stable release</b>) - all that is required is a Bittorrent client.<br><br>
</td>
</tr>
</table>
<center>
<code>
<?php
// Default options - Home » Page Title
echo breadcrumbs(' » ', 'Index');
// Change » to >
// echo breadcrumbs(' > ');
// Change 'Home' to 'Index' and » to ^^
// echo breadcrumbs(' ^^ ', 'Index');
?>
</code>
</center>
<?php } else { ?>
<center><p><a href="/" title="Slackware UK" alt="** Slackware UK **"><img src="/html/slackwareuk.png" alt="** Slackware UK **" title="Slackware UK" border=0 align=center></a></p></center>
<hr width="100%">
<table width="75%" cellspacing="0" align="center">
<tr>
<td align="center" valign="top">
<font size="+2"><b>Patronage & donations</b></font><br>
If you use this service on a regular basis, and would like to make a continuing patronage towards the ongoing running costs and in support of the Slackware UK service, please use the <a href="https://www.patreon.com/slackwareUK" title="Patreon page" alt="Patreon page">Patreon page</a> to sign up - Patreons receive special benefits for their support! For one-off donations or if you do not wish to use Patreon, please Paypal an amount you feel is appropriate using <a href="https://paypal.me/slackwareUK" title="Slackware UK's Paypal" alt="Slackware UK's Paypal">this link</a> or to: <b>donate&nbsp;(at)&nbsp;slackware.uk</b>. If you do not wish your name to be included in the Paypal supporters list (which can be found <a href="/html/project_supporters.html" title="Paypal supporters" alt="here">here</a>), please add a note to your Paypal transaction to let me know.<br>
All donations will be gratefully received - thank you!
</td>
</tr>
</table>
<br>
<center>
<code>
<?php
// Default options - Home » Page Title
echo breadcrumbs(' » ', 'Index');
// Change » to >
// echo breadcrumbs(' > ');
// Change 'Home' to 'Index' and » to ^^
// echo breadcrumbs(' ^^ ', 'Index');
?>
</code>
</center>
<?php } ?>