', $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('%s', $dir, $file, $border, $size[3], ($alt ? $alt : ''), ($align ? ' align="'.$align.'"' : ''), ($extras ? ' '.$extras : '') ); } else { $image = sprintf('%s', $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 = ' | ', $color ); } # hdelim() # print a horizontal delimiter (just a wide line); # function hdelim($color="#000000") { if (!$color) { return '
'; } return sprintf('
', $color ); } # make_link() # return a hyperlink to something, within the site # function make_link ($url, $linktext=false, $target=false, $extras=false) { return sprintf("%s", $url, ($target ? ' target="'.$target.'"' : ''), ($extras ? ' '.$extras : ''), ($linktext ? $linktext : $url) ); } # print_link() # echo a hyperlink to something, within the site # function print_link($url, $linktext=false, $target=false, $extras=false) { echo make_link($url, $linktext, $target, $extras); } # make_popup_link() # return a hyperlink to something, within the site, that pops up a new window # function make_popup_link ($url, $linktext=false, $target=false, $windowprops="", $extras=false) { return sprintf("%s", htmlspecialchars($url), ($target ? $target : "_new"), htmlspecialchars($url), ($target ? $target : "_new"), $windowprops, ($extras ? ' '.$extras : ''), ($linktext ? $linktext : $url) ); } # print_popup_link() # echo a hyperlink to something, within the site, that pops up a new window # function print_popup_link($url, $linktext=false, $windowprops="", $target=false, $extras=false) { echo make_popup_link($url, $linktext, $windowprops, $target, $extras); } # download_link() # print a link for a downloadable file (including filesize) # function download_link($file, $title) { global $filesizes, $server; if ($tmp = strrchr($file, "/")) { $local_file = substr($tmp, 1, strlen($tmp)); } else { $local_file = "distributions/$file"; } $size = @filesize($local_file)/1024; //echo("\n"); print_link("http://www.php.net/do_download.php?download_file=" . $file . "&source_site=$server", $title); if (!$size && isset($filesizes[$local_file])) { $size = $filesizes[$local_file]; } if ($size) { echo " [" . number_format($size, 0, ".", ",") . "Kb]"; } } $enclosed = 0; # commonheader() # # function commonHeader($title="",$dont_enclose=0,$headers_gone=0) { global $MYSITE, $enclosed; global $SIDEBAR_DATA, $prevsearch; ?> PHP<?php if ($title) echo ": $title";?>

 
 

search for in the  

"; if(isset($RSIDEBAR_DATA)) {?>


\n"; } ?>

\n"; show_mirror_options($MYSITE); echo " "; echo make_submit('small_submit.gif', 'go', 'bottom' ); ?> 


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; } ?>