1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 10:19:25 +02:00

removed images that were not being used, added icons and started the iconification!

This commit is contained in:
Karl 'vollmerk' Vollmer 2006-09-28 06:49:29 +00:00
parent ebdb7573bf
commit cad6aca40f
22 changed files with 78 additions and 66 deletions

View file

@ -1312,4 +1312,27 @@ function show_box_bottom() {
} // show_box_bottom
/**
* get_user_icon
* this function takes a name and a returns either a text representation
* or an <img /> tag
*/
function get_user_icon($name) {
$icon_name = 'icon_' . $name . '.gif';
if (file_exists(conf('prefix') . '/themes/' . $GLOBALS['theme']['path'] . '/images/' . $icon_name)) {
$img_url = conf('web_path') . conf('theme_path') . '/images/' . $icon_name;
}
else {
$img_url = conf('web_path') . '/images/' . $icon_name;
}
$string = "<img src=\"$img_url\" border=\"0\" alt=\"$name\" title=\"$name\" />";
return $string;
} // show_icon
?>