120 OR empty($magazine[articledesc])){ $magazine[articledesc]="$magazine[articletitle] by $magazine[articleauthor]"; } // retrieve latest event info $upcoming=sqlquery("SELECT thread_id AS threadid,threadtitle,threaddesc,threadimage,threadurl FROM umthreads WHERE nowplaying=1 AND released>0 AND validity='y' ORDER BY priority,RAND(),released DESC,added DESC LIMIT 1"); $upcomingeventtitle=$upcoming[threadtitle]; if(!empty($upcoming[threaddesc])){ $upcomingeventdesc=$upcoming[threaddesc] . " More info..."; } $upcomingeventimg=$upcoming[threadimage]; $upcomingeventurl=iif(!empty($upcoming[threadurl]),$upcoming[threadurl],"city/threads.php?threadid=$upcoming[threadid]"); // retrieve lastest radio station/umfm show added (station to start) $radio=sqlquery("SELECT station_id AS stationid,stationname,stationdesc,stationimage FROM stations WHERE validity='y' ORDER BY added DESC LIMIT 1"); // retrieve latest city news headlines $city=sqlquery("SELECT thread_id AS newsid,threadtitle AS newstitle FROM umthreads WHERE placeid=8 AND validity='y' ORDER BY priority,added DESC LIMIT 1"); // no cache for map header("Expires: now"); header("Pragma: no-cache"); header("Last-Modified: " . date("$dateformat $timeformat",$time-rand(300,900)) . " EST"); // master programming require("umanager.php"); // end UM index ?>