Pastoid

The page you are looking at now is at this URL: http://pastoid.com/ap6

This paste was last updated on February 27, 2009 at 1:54 pm.

Pasted Coderaw

function phptemplate_imagefield_image($file, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
 
  $file = (array)$file;
  if (!$getsize || (is_file($file['filepath']) && (list($width, $height, $type, $image_attributes) = @getimagesize($file['filepath'])))) {
    $attributes = drupal_attributes($attributes);
 
    $path = $file['fid'] == 'upload' ? $file['preview'] : $file['filepath'];
    $alt = empty($alt) ? $file['alt'] : $alt;
    $title = empty($title) ? $file['title'] : $title;
 
    $url = file_create_url($path);
    return '<img src="'. str_replace(' ', '%20', check_url($url)) .'" alt="'.
        check_plain($alt) .'" title="'. check_plain($title) .'" '. $image_attributes . $attributes .' />';
  }
}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 5
search.live.com 2
Is this paste spam?
<Hide