Whoops!

The page you requested doesn\'t exist, try going back to the index!

'; function doRSSFeed($n) { $date = date(DATE_COOKIE); header('Content-Type: text/xml'); # header('Date: '.$date); echo "\n"; echo "\n"; echo "LibTom Projects\n"; echo "http://libtom.org/\n"; echo "The LibTom Projects\n"; echo "en-us\n"; echo "http://libtom.org/?page=rss\n"; echo "My Magic Coding\n"; echo "tom\@libtom.org\n"; echo "tom\@libtom.org\n"; $in = fopen('thenews.txt', 'r'); while(!feof($in)) { if ($n-- < 0) break; $a = explode('#', rtrim(fgets($in))); $tn = count($a); echo "\n"; if ($tn == 2) { echo "No Title\n"; } else { echo "".$a[1]."\n"; } echo "".htmlspecialchars($a[$tn-1])."\n"; echo "".$a[0]."\n"; echo "\n"; } echo ""; fclose($in); } function doAtomFeed($n) { $date = date(DATE_COOKIE); header('Content-Type: text/xml'); # header('Date: '.$date); echo "\n"; echo "\n"; echo "LibTom Projects\n"; echo "LibTom Projects News\n"; echo ""; echo "$date\n"; echo "\n"; echo "Tom St Denis\n"; echo "tom\@libtom.org\n"; echo "\n"; echo "libtom.org\n"; $in = fopen('thenews.txt', 'r'); while(!feof($in)) { if ($n-- < 0) break; $a = explode('#', rtrim(fgets($in))); $tn = count($a); echo "\n"; echo ""; if ($tn == 2) { echo "No Title ($n)\n"; } else { echo "".$a[1]." ($n)\n"; } echo "".htmlspecialchars($str)."\n"; echo "".$a[0]."\n"; echo "\n"; } echo "\n"; fclose($in); } # yeah yeah, funny function name, shut up function doSelf() { header('Content-Type: text/plain'); readfile('index.php'); } function doBanner() { global $newsitems, $whatfile; $date = date(DATE_COOKIE); header('Content-Type: text/html'); # header('Date: '.$date); echo "LibTom Projects\n\n"; echo ""; echo "
\"RSS"; echo " \"Atom"; echo "
About The Projects
"; echo "
"; echo "
\"LibTom
"; echo "[ Index ]  "; echo "[ Download ]  "; echo "[ Features ]  "; echo "[ Changes ]  "; echo "[ Email List ]
"; echo "[ GIT Tree ]  "; echo '[ IRC Chat ]  '; // echo "[ CVS Tree (mirror) ]  "; // echo "[ Site Mirror ]  "; echo "[ MySelf! ]"; echo "
"; latestRevBox(); echo "

"; } function indexPage() { global $newsitems; readFrom('index.txt'); theNews($newsitems); } function theNews($n) { global $page, $whatfile; $in = fopen('thenews.txt', 'r'); echo "

The News all more less"; while(!feof($in)) { if ($n-- < 0) break; $a = explode('#', rtrim(fgets($in))); $tn = count($a); $date = $a[0]; if ($tn == 2) { $summary = $a[1]; $title = 'No Title'; } else { $summary = $a[2]; $title = $a[1]; } echo "
$title
$date
$summary

"; } fclose($in); } function listings() { global $page, $newsitems; echo "

Listings: "; echo "LibTomCrypt, "; echo "LibTomMath, "; echo "TomsFastMath, "; echo "LibTomPoly, "; echo "LibTomFloat "; echo "

"; } function downloadPage() { global $whatfile; listings(); echo "

GPG key

"; downloadListing($whatfile); } function featuresPage() { global $whatfile; listings(); readFrom("$whatfile.features.txt"); } function changesPage() { global $whatfile; listings(); echo "
";
	readFrom("$whatfile.changes.txt");
	echo "
"; } function downloadListing($prefix) { echo ""; $prefix = str_replace('/', '', $prefix); foreach(array_reverse(glob('files/'.$prefix.'-*.tar.bz2')) as $name) { echo "'; $thename = $name; $prettyname = str_replace('files/', '', $name); echo ""; $thename = str_replace('.tar.bz2', '.zip', $name); $prettyname = str_replace('files/', '', $thename); echo ""; echo ''; } print "
"; $a = explode('-', $name); $b = array_slice(explode('.', $a[1]), 0, 3); if (!is_numeric($b[2])) unset($b[2]); echo "v".implode('.', $b).'$prettyname ($prettyname.sig) ($prettyname.md5)$prettyname ($prettyname.sig) ($prettyname.md5)
"; } function latestRevBox() { global $newsitems; echo ""; $name = lastestRev('crypt'); echo ""; $name = lastestRev("ltm"); echo ""; $name = lastestRev("tfm"); echo ""; $name = lastestRev("ltp"); echo ""; $name = lastestRev("ltf"); echo ""; echo "
LibTomCrypt ($name)
.bz2, .bz2.sig
.zip, .zip.sig
LibTomMath ($name)
.bz2, .bz2.sig
.zip, .zip.sig
TomsFastMath ($name)
.bz2, .bz2.sig
.zip, .zip.sig
LibTomPoly ($name)
.bz2, .bz2.sig
.zip, .zip.sig
LibTomFloat ($name)
.bz2, .bz2.sig
.zip, .zip.sig
"; } # lastestRev(prefix) # returns the latest version # as a string function lastestRev($prefix) { $ver = 0; $ver_str = ''; $dir = opendir('files'); $prefix .= '-'; while(($file = readdir($dir)) !== false) { if (substr($file, 0, strlen($prefix)) == $prefix) { $a = explode('-', $file); $b = array_slice(explode('.', $a[1]), 0, 3); if (!is_numeric($b[2])) unset($b[2]); # @b[0] * 100 + @b[1] == ver $iver = $b[0] * 10000 + $b[1] * 100 + $b[2]; if ($iver > $ver) { $ver = $iver; $ver_str = implode('.', $b); } } } closedir($dir); return $ver_str; } function readFrom($fname) { if (strpos($fname, '/') !== false) badUserBad(); readfile($fname); } function badUserBad() { echo "BAD USER BAD!"; exit; }