$t0 = time(); $t1 = $t0 + 3600; Header("Expires: " . + gmdate("D, d M Y H:i:s", $t1) . " GMT"); $WMLOUTPUT = preg_match("/vnd.wap.wml/i", getenv("HTTP_ACCEPT")); $MIDILIST = array( "-;20th Century Fox;20th_century_fox.mid", "-;Bell's ringtone;bells_ringtone.mid", "-;Cucaracha;cucaracha.mid", "-;Fanfare numero 1;fanfare_no1.mid", "-;Fanfare numero 2;fanfare_no2.mid", "-;Fanfare numero 3;fanfare_no3.mid", "-;Fanfare numero 4;fanfare_no4.mid", "-;Man with harmonica;man_with_harmonica.mid", "-;The Holy Grail;the_holy_grail.mid" ); function GenerateList() { global $WMLOUTPUT; global $MIDILIST; foreach ($MIDILIST as $w) { list($s, $caption, $url) = explode(";",$w); $s = trim($s); $caption = trim($caption); $url = trim($url); if ($WMLOUTPUT) { echo "
$s $caption
"; } else { echo "$s $captionCategory:
'; echo 'Special effects
'; echo ''; GenerateList(); echo '
'; echo '