isMobile()) { // header('Location: m/'); // exit(0); // } require_once('include.php'); require_once('header.php'); ### Calculate a random number $imagenum = rand(1,4); ?>

" . $today . " OR `date_end`>" . $today . ") ORDER BY `date` DESC LIMIT 0,2"); if (mysql_num_rows($eventrs)) { while ($event = mysql_fetch_array($eventrs)) { $datestring = ""; if ( (($event['date'] >= $today) || (($event['date'] < $today) && ($event['date_end'] >= $today))) && ($event['date'] < ($today + $oneday) ) ) { $datestring = date("l, m.d.y", $event['date']); if ($event['date_end'] > 0) $datestring .= " - " . date("l, m.d.y", $event['date_end']); $datestring .= ', today'; } else { $datestring = date("l, m.d.y", $event['date']); if ($event['date_end'] > 0) $datestring .= " - " . date("l, m.d.y", $event['date_end']); } ### Time $timestring = ""; if (strlen($event['time_start']) > 0) { $timestring = ", "; $timestring .= $event['time_start']; } if (strlen($event['time_end']) > 0) $timestring .= " - " . $event['time_end']; ### Short description if (strlen($event['short']) > 0) $shortstring = $event['short'] . "
"; else { if (strlen($event['long']) > 10) { ### Find the first period after 150 characters. $period = strpos($event['long'], '.', 150) + 1; $shortstring = substr($event['long'], 0, $period) . "..
"; } else $shortstring = ""; } ### Presenter $presstring = ""; if (strlen($event['presenter']) > 0) { if (strlen($event['presenter_website']) > 0) $presstring .= ''; $presstring .= '' . $event['presenter'] . ''; if (strlen($event['presenter_website']) > 0) $presstring .= ''; if (strlen($event['presenter_affiliation']) > 0) $presstring .= ', ' . $event['presenter_affiliation']; $presstring .= "
"; } ### Location if (strlen($event['location']) > 0) $locationstring = ", " . $event['location']; ?>



_image.jpg" width="50" height="">

-
2) { ?>