\n";
?>
";
print "root_dir = \"$root_dir\"
";
print "htroot = \"$htroot\"
";
print "root = \"$root\"
";
}
#-------------------------------------------------------
# Print root URL
#-------------------------------------------------------
function root()
{
global $root;
print $root;
}
#-------------------------------------------------------
# Construct and print img tag
#-------------------------------------------------------
function img($src, $alt)
{
global $root;
global $root_dir;
if (substr($src,0,1) == "/") {
$size = GetImageSize("$root_dir$src");
print "";
} else {
$size = GetImageSize("$src");
print "";
}
}
#-------------------------------------------------------
# Construct and print img tag with explicit size, NULL alt
#-------------------------------------------------------
function img_size($src, $w, $h)
{
global $root;
$alt = "";
if (substr($src,0,1) == "/") {
print "";
} else {
print "";
}
}
#-------------------------------------------------------
# Construct and print link (a) tag
#-------------------------------------------------------
function a($href, $text)
{
global $root;
if (substr($href,0,1) == "/") {
print "$text";
} else {
print "$text";
}
}
#-------------------------------------------------------
# Construct and print link (a) tag to a downloadable file
#-------------------------------------------------------
function a_file($href)
{
global $root;
$text = basename($href);
if (substr($href,0,1) == "/") {
print "$text";
} else {
print "$text";
}
}
#-------------------------------------------------------
# Construct and print link (a) tag to a sf dl file
#-------------------------------------------------------
function a_sfdownload($file)
{
print "$file";
}
#-------------------------------------------------------
# Construct and print link (a) tag to a web address
#-------------------------------------------------------
function a_host($host)
{
global $root;
print "$host";
}
#-------------------------------------------------------
# Construct and print mailto (a) tag
#-------------------------------------------------------
function a_mailto($email)
{
print "$email";
}
#-------------------------------------------------------
# Common Header and navigation
#-------------------------------------------------------
function gLabelsHeader($tab)
{
global $root;
$tabs["$root/"] = "home";
$tabs["$root/news/"] = "news";
$tabs["$root/screenshots/"] = "screenshots";
$tabs["$root/download/"] = "download";
$tabs["$root/doc/"] = "docs";
$tabs["$root/faq/"] = "FAQ";
$tabs["$root/contact/"] = "contact";
$tabs["$root/links/"] = "links";
?>