',
$width,
$height,
($align ? 'align="'.$align.'" ' : ''),
($extras ? $extras : '')
);
}
# resize_image()
# tag the output of make_image() and resize it manually
#
function resize_image($img, $width=1, $height=1) {
$str = preg_replace('/width=\"([0-9]+?)\"/i', '', $img );
$str = preg_replace('/height=\"([0-9]+?)\"/i', '', $str );
$str = substr($str,0,-1) . sprintf(' height="%s" width="%s">', $height, $width );
return $str;
}
# make_image()
# return an IMG tag for a given file (relative to the images dir)
#
function make_image($file, $alt=false, $align=false, $extras=false, $dir=false, $border=0) {
global $HTTP_SERVER_VARS;
if (!$dir) {
$dir = '/gifs';
}
if ($size = @getimagesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].$dir.'/'.$file)) {
$image = sprintf('',
$dir,
$file,
$border,
$size[3],
($alt ? $alt : ''),
($align ? ' align="'.$align.'"' : ''),
($extras ? ' '.$extras : '')
);
} else {
$image = sprintf('
',
$dir,
$file,
$border,
($alt ? $alt : ''),
($align ? ' ALIGN="'.$align.'"' : ''),
($extras ? ' '.$extras : '')
);
}
return $image;
}
# print_image()
# print an IMG tag for a given file
#
function print_image($file, $alt=false, $align=false, $extras=false, $dir=false, $border=0) {
print make_image($file, $alt, $align, $extras, $dir);
}
# make_submit()
# - make a submit button image
#
function make_submit($file, $alt=false, $align=false, $extras=false, $dir=false, $border=0) {
if (!$dir) {
$dir = '/gifs';
}
$return = make_image($file, $alt, $align, $extras, $dir, $border);
if ($return != "
") {
$return = '';
}
return $return;
}
# delim()
# print a pipe delimiter
#
function delim($color=false) {
if (!$color) {
return ' | ';
}
return sprintf(' | ', $color );
}
# hdelim()
# print a horizontal delimiter (just a wide line);
#
function hdelim($color="#000000") {
if (!$color) {
return '
|
|
|
|
|
|
|
|
| ";
if(isset($RSIDEBAR_DATA)) {?>
|
}
echo "
|
All rights reserved. |
This mirror generously provided by:
Last updated: |
','
'); reset($fixes); while (list(,$f)=each($fixes)) { $text=str_replace(htmlspecialchars($f), $f, $text); $text=str_replace(htmlspecialchars(strtoupper($f)), $f, $text); } $text = "".nl2br(wordwrap(trim($text))).""; return $text; } ?>