support code tags + header formatting, 3-wide progress status, isolate homepage blurb
This commit is contained in:
parent
1968bb7ad9
commit
a169383fda
25
homepage_blurb.htm
Normal file
25
homepage_blurb.htm
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
<p>
|
||||||
|
It's said that if you're not disgusted by code you wrote six months ago, you've stopped learning.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<img src="overview.jpg" class="headimg">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This page contains several assorted projects, which no longer have any relation. They are listed in roughly chronological order (newest first). <strong>Unless specified otherwise</strong>, you may feel free to use and modify both the binaries and any source code, for any purpose, on the general condition you do not misrepresent who the author is (BSD license).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Some of these projects formerly appeared on Google Code <a href="https://code.google.com/p/mappy/">here</a>, but were moved following the discontinuation of the Google Code binary download system.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
For bug reports, feature requests, or if you need any help, please
|
||||||
|
<a
|
||||||
|
href="http://www.google.com/recaptcha/mailhide/d?k=01GuAWzMc9JjSdooo-2KCMQA==&c=kgR3dBrP39yhPIy8FvLFbuBLmWqorQBDc_Zjbw6NAmU="
|
||||||
|
onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k\07501GuAWzMc9JjSdooo-2KCMQA\75\75\46c\75kgR3dBrP39yhPIy8FvLFbuBLmWqorQBDc_Zjbw6NAmU\075', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;"
|
||||||
|
title="Reveal this e-mail address"
|
||||||
|
>click here</a> to email me.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<img src="projects.jpg" class="headimg">
|
40
rebuild.php
40
rebuild.php
@ -117,6 +117,16 @@ function text2html($sz) {
|
|||||||
$base = hesc($sz);
|
$base = hesc($sz);
|
||||||
$base = preg_replace('~(https?://[^ \\r\\n\\t]+)~i', '<a href="\\1">\\1</a>', $base);
|
$base = preg_replace('~(https?://[^ \\r\\n\\t]+)~i', '<a href="\\1">\\1</a>', $base);
|
||||||
|
|
||||||
|
$base = preg_replace('~=+(.+)=+~', '<strong>\\1</strong>', $base);
|
||||||
|
|
||||||
|
$btparts = explode('`', $base);
|
||||||
|
if (count($btparts) > 1 && (count($btparts) % 2)) {
|
||||||
|
for ($i = 1, $e = count($btparts); $i < $e; $i += 2) {
|
||||||
|
$btparts[$i] = '<span class="code">'.$btparts[$i].'</span>';
|
||||||
|
}
|
||||||
|
$base = implode('', $btparts);
|
||||||
|
}
|
||||||
|
|
||||||
return nl2br($base);
|
return nl2br($base);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,7 +321,7 @@ function buildall() {
|
|||||||
|
|
||||||
foreach($projects as $dirname => $projectname) {
|
foreach($projects as $dirname => $projectname) {
|
||||||
|
|
||||||
echo sprintf("[%2d/%2d] ".$projectname."...", ++$count, count($projects));
|
echo sprintf("[%3d/%3d] ".$projectname."...", ++$count, count($projects));
|
||||||
|
|
||||||
$pr = new CProject($dirname, $projectname);
|
$pr = new CProject($dirname, $projectname);
|
||||||
$pr->write();
|
$pr->write();
|
||||||
@ -336,30 +346,12 @@ function buildall() {
|
|||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
?>
|
?>
|
||||||
<p>
|
|
||||||
It's said that if you're not disgusted by code you wrote six months ago, you've stopped learning. Well, this is a repository of disgust.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<img src="overview.jpg" class="headimg">
|
<? if (file_exists(BASEDIR.'homepage_blurb.htm')) { ?>
|
||||||
|
<!-- homepage blurb {{ -->
|
||||||
<p>
|
<?=file_get_contents(BASEDIR.'homepage_blurb.htm')?>
|
||||||
This page contains several assorted projects, which no longer have any relation. They are listed in roughly chronological order (newest first). <strong>Unless specified otherwise</strong>, you may feel free to use and modify both the binaries and any source code, for any purpose, on the general condition you do not misrepresent who the author is (BSD license).
|
<!-- }} -->
|
||||||
</p>
|
<? } ?>
|
||||||
|
|
||||||
<p>
|
|
||||||
Some of these projects formerly appeared on Google Code <a href="https://code.google.com/p/mappy/">here</a>, but were moved following the discontinuation of the Google Code binary download system.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
For bug reports, feature requests, or if you need any help, please
|
|
||||||
<a
|
|
||||||
href="http://www.google.com/recaptcha/mailhide/d?k=01GuAWzMc9JjSdooo-2KCMQA==&c=kgR3dBrP39yhPIy8FvLFbuBLmWqorQBDc_Zjbw6NAmU="
|
|
||||||
onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k\07501GuAWzMc9JjSdooo-2KCMQA\75\75\46c\75kgR3dBrP39yhPIy8FvLFbuBLmWqorQBDc_Zjbw6NAmU\075', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;"
|
|
||||||
title="Reveal this e-mail address"
|
|
||||||
>click here</a> to email me.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<img src="projects.jpg" class="headimg">
|
|
||||||
|
|
||||||
<table class="projtable">
|
<table class="projtable">
|
||||||
<?php foreach ($plist as $pr) { ?>
|
<?php foreach ($plist as $pr) { ?>
|
||||||
|
@ -12,6 +12,10 @@ a:hover {
|
|||||||
h1,h2,h3 {
|
h1,h2,h3 {
|
||||||
margin-top:0;
|
margin-top:0;
|
||||||
}
|
}
|
||||||
|
.code {
|
||||||
|
background: #F8F8F8;
|
||||||
|
font-family:Consolas,monospace;
|
||||||
|
}
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user