Commit f179c91d authored by Imran Hussain's avatar Imran Hussain
Browse files

Add things to the svn that were missing

parent 26839724
<?php
function smarty_function_logo_of_the_day($params, &$smarty) {
$logos = glob ("../htdocs/images/awesomelogos/*.png");
$logo_of_the_day = $logos[array_rand ($logos)];
$logo_size = getimagesize($logo_of_the_day);
$width_height_string = $logo_size[3];
$logo_src = str_replace("../htdocs","",$logo_of_the_day);
return "<img src=\"$logo_src\" $width_height_string alt=\"SUCS\" />";
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment