/* if(preg_match('/archive/',$REQUEST_URI))
{
if($month!="")
{
$months=array("January"=>"01", "February"=>"02", "March"=>"03", "April"=>"04", "May"=>"05", "June"=>"06", "July"=>"07", "August"=>"08", "September"=>"09", "October"=>"10", "November"=>"11", "December"=>"12");
$this_month=$months[$month];
$r="http://dev.climbtothestars.org/archive/$year/$this_month/";
$test["2003"]["12"]="yes";
$test["2003"]["11"]="yes";
$test["2003"]["10"]="yes";
for($i="9";$i>"4";$i--)
{
$month_key="0".$i;
$test["2003"][$month_key]="yes";
}
if($test[$year][$this_month]=="yes")
{
header( "Location: $r" );
exit;
}
}
}
if($REQUEST_URI=="/")
{
if(!preg_match('/dev\.climbtothestars/', $HTTP_REFERER))
{
header( "Location: http://dev.climbtothestars.org/" );
exit;
}
}
*/
# version climbtothestars.org 3.1, April 2001
# this is the top include
# give default values to variables which have not been specified
if(!$description) {$description = 'Tara\'s bilingual site contains a frequently-updated weblog, writing (essays, creating, travel journal for a year in India), resources for people who make the web today - coding tips and links (html, css, php), as well as photographs, deep thoughts and other stuff.';}
if(!$keywords) {$keywords = 'personal site, travelogue, blog, weblog, music, internet, cyberspace, writing, french, india, switzerland, pune, thoughts, ideas, web design, links, people, français, Switzerland, suisse, lausanne, Stephanie Booth, Stéphanie Booth';}
if(!$stylesheet) {$stylesheet = "http://" . $_SERVER['HTTP_HOST'] . "/notables.css";} else {$stylesheet = "http://" . $_SERVER['HTTP_HOST'] . "/$stylesheet";} #that is the generic stylesheet
function title()
{
global $title;
global $pagetitle;
if($title){
if($pagetitle)
{
return(" - $title ($pagetitle)");
}
else
{
return(" - $title");
}
}}
$filename=basename($_SERVER['PHP_SELF']);
$filebase=strtok($filename, ".");
function stick_in($something)
{
global $$something;
global $filebase;
$file=$filebase."."."$something";
if(file_exists($file))
{
return("include(\"$file\");");
}
else
{
print($$something);
}
}
function dates()
{
global $created;
global $revised;
$dateline="created $created";
if($revised)
{
$dateline=$dateline." - last meaningful revision $revised";
}
print($dateline);
}
function french($height=12, $width=18)
{
print("
");
}
// ############# function counts lines of comments for a given post
function countlines($list,$ctr) { clearstatcache(); if (file_exists($list)) { $lines = file($list); while(list($key, $val) = each($lines)) { if (stristr ($val, "")) { $ctr++; } } } if ($ctr > 0)
return("(".$ctr.")");}
// ############ function inserts trackback link
function maketrackback($id)
{
$result='
I know the stars are far above
I know my feet rest on the ground
I trust, someday, I will be free