PHP Code:
$image = "admin_".str_replace('shoutbox','sbox',$name);
if (file_exists("themes/$theme/pics/admin/".$image.".png")) {
$image = "themes/$theme/pics/admin/".$image.".png";
} elseif (file_exists("themes/$theme/pics/admin/".$image.".jpg")) {
$image = "themes/$theme/pics/admin/".$image.".jpg";
} elseif (file_exists("themes/$theme/pics/admin/".$image.".gif")) {
$image = "themes/$theme/pics/admin/".$image.".gif";
} elseif (file_exists("admin/buttons/".$image.".png")) {
$image = "admin/buttons/".$image.".png";
} elseif (file_exists("admin/buttons/".$image.".jpg")) {
$image = "admin/buttons/".$image.".jpg";
} elseif (file_exists("admin/buttons/".$image.".gif")) {
$image = "admin/buttons/".$image.".gif";
}
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in
BT.Manager™ forum
My Current Demo is here
http://demo.btmanager.org/