Changeset 35 for trunk/lib/TemplateGlue.inc.php
- Timestamp:
- Dec 13, 2005 7:43:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/TemplateGlue.inc.php
r34 r35 15 15 function bbftp($file) 16 16 { 17 return sprintf('<a href="bbftp://%s@%s:%s%s" title="%s" >%s</a>', $_SERVER['USER'], $_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $file, $file, basename($file));17 return sprintf('<a href="bbftp://%s@%s:%s%s" title="%s" style="text-decoration: none; border-bottom: blue 1px dotted;">%s</a>', $_SERVER['USER'], $_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $file, $file, basename($file)); 18 18 } 19 19 … … 29 29 $filepath = preg_match('!://!', $src) ? $src : getenv('DOCUMENT_ROOT') . $src; 30 30 31 if (false === ($gis = @getimagesize($filepath)) || preg_match('/width|height/', $extra)) { 31 if (true === ($gis = @getimagesize($filepath)) && !preg_match('/width|height/', $extra)) { 32 $image_size = $gis[3]; 33 } else { 32 34 $image_size = ''; 33 } else {34 $image_size = $gis[3];35 35 } 36 36
Note: See TracChangeset
for help on using the changeset viewer.