");
return (int)substr($x, 5, 1);
}
function button_image($status) {
if ($status==1) return "offline.png";
if ($status==2) return "online.png";
if ($status==7) return "skypeme.png";
if ($status==3) return "away.png";
if ($status==4) return "notavailable.png";
if ($status==5) return "donotdisturb.png";
if ($status==6) return "offline.png";
return "offline.png";
}
function status_string($status) {
if ($status==1) return "Offline";
if ($status==2) return "Online";
if ($status==7) return "Skype Me!";
if ($status==3) return "Away";
if ($status==4) return "Not available";
if ($status==5) return "Do not disturb";
if ($status==6) return "Offline";
return "Unknown";
}
function online($status) {
if ($status == 2) return true;
if ($status == 7) return true;
return false;
}
//echo skype_status("rare44");
//
//
//
// NOTE: nothing above works anymore; Skype turned off their mystatus API.
// Instead we now have the following
function skype_script() {
echo '
';
}
function skype_call_button($vol) {
if ($vol->text_ok && $vol->voice_ok) {
$x = "dropdown";
} else if ($vol->voice_ok) {
$x = "call";
} else {
$x = "chat";
}
echo "