',
$_SERVER['STATIC_ROOT'],
$width,
$height,
($align ? " align=\"$align\" " : ""),
($extras ? " $extras" : "")
);
}
// Resize the image using the output of make_image()
// (considering possible HTML/XHTML image tag endings)
function resize_image($img, $width = 1, $height = 1)
{
// Drop width and height values from image if available
$str = preg_replace('!width=\"([0-9]+?)\"!i', '', $img);
$str = preg_replace('!height=\"([0-9]+?)\"!i', '', $str);
// Return image with new width and height added
return preg_replace(
'!/?>$!',
sprintf(' height="%s" width="%s" />', $height, $width),
$str
);
}
// Return an |
|
| ";
if (!empty($RSIDEBAR_DATA)) { ?>
|
All rights reserved. |
This mirror generously provided by:" :
"This unofficial mirror is operated at:");
?>
Last updated: |
| ", date("F j, Y", $sday), "\n"; } // Print link in case we have one if ($event['url']) { echo ''; } // Print event description echo "", stripslashes(htmlentities($event['sdesc'])), ""; // End link if ($event['url']) { echo ""; } // Print extra date info for recurring and multiday events switch ($event['type']) { case 2: case 'multi': echo " (", date("Y-m-d",$sday), " to ", date("Y-m-d",$eday), ")"; break; case 3: case 'recur': echo " (Every ", $re[$event['recur']], " ", $days[$event['recur_day']], " of the month)"; break; } // Event category if(isset($event['category']) && $event['category']) { $cat = array("unknown", "User Group Event", "Conference", "Training"); echo ' [' . $cat[$event['category']] . '] '; } // Print out country information echo ' (' , $COUNTRIES[$event['country']] , ')'; ?> |
|
", trim($event['ldesc'])); // If we have an URL, print it out if ($event['url']) { echo ' URL: ', '', htmlentities($event['url']), ''; } ?> |