Example #1
0
     }
 } else {
     if ($_REQUEST['action'] == "getuserevents") {
         $fp->log("getuserevents");
         $o = Event::getUserEvents($u);
         if ($o) {
             echo json_encode($o);
         } else {
             error("Problem with the DB");
         }
     } else {
         if ($_REQUEST['action'] == "getnearbyevents") {
             $fp->log("getnearbyevents");
             $radius = $_REQUEST['radius'];
             $gender = $_REQUEST['gender'];
             $o = Event::getNearbyEvents($u, $radius, $gender);
             if ($o) {
                 echo json_encode($o);
             } else {
                 error("Problem with the DB");
             }
         } else {
             if ($_REQUEST['action'] == "getlastevents") {
                 $fp->log("getlastevents");
                 $lon = $_REQUEST['lon'];
                 $lat = $_REQUEST['lat'];
                 $radius = isset($_REQUEST['radius']) ? $_REQUEST['radius'] : 20000;
                 $start = isset($_REQUEST['start']) ? $_REQUEST['start'] : 0;
                 $n = isset($_REQUEST['n']) ? $_REQUEST['n'] : 20;
                 $o = Event::getLastEvents($lon, $lat, $radius, $start, $n);
                 if ($o) {
Example #2
0
?>
            <li class="right">&nbsp;</li>
        </ul> 
    </div> <!-- / top --   
    
</div> <!--panel -->

    <div id="container">
        <div id="content" style="padding-top:5px;">
            <div id="left_pane">
                <div class="day-header">
                    Tomorrow
                </div>

<?php 
$events = Event::getNearbyEvents($user, 50000, "all");
foreach ($events->results as $e) {
    ?>
                <div class="feed">
                    <div class="desc">
                        <h3><?php 
    echo $e->name;
    ?>
</h3>
                        <p>Saturday Aug 14, 6:00 PM somewhere in <?php 
    echo $e->location->name;
    ?>
</p>
                    </div>
                    <div class="answer">
                        <div class="answer_buttons">