$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 = "\"$alt\"'; echo "\n"; echo ''; DisplayImage("spacer.png", "-------------------------------------------------------------------------------", "", $height, 0); echo "\n\n"; } // Display site logo function DisplaySiteLogo() { $logo = GetConfigField("logo"); if ($logo) DisplayImage($logo, sprintf(GetMessage("logo"), GetConfigField("name"))); } // Display right top corner image function DisplayRightTopCornerImage() { $image = GetConfigField("righttopcornerimage"); if ($image) DisplayImage($image["img"], $image["alt"]); } $included["Simpleweb/misc.php"] = 1; } ?>