$word";
else
return "$word";
}
// Display Anchor
function DisplayAnchor($page, $word, $lang = -1) {
echo AnchorTag($page, $word, $lang);
}
// Find the path of an image
function FindImagePath ($image) {
$list = array_unique(array_merge(GetConfigField("imagepath"),
GetConfigField("imagepath", "")));
$path = "";
// Look for the image path
$found = "";
foreach ($list as $path) {
$dir = opendir($path);
$path .= "/";
while (($entry = readdir($dir)) && ($found == ""))
if ($entry == $image)
$found = $path . $image;
if ($found != "")
break;
}
return $found;
}
// Create an image tag
function ImageTag ($image, $alt,
$align = "", $height = 0, $width = 0, $title = "") {
// Look for the image path
$fullname = FindImagePath ($image);
if ($fullname == "")
return "";
$size = getimagesize($fullname);
// Create the image tag
$string = "';
echo "\n";
echo '