Exemplo n.º 1
0
 }
 if ($cat == 0) {
     $where_clause = "";
 } else {
     $where_clause = " AND cat={$cat} ";
 }
 $queryExtraArray = array();
 $legend = "";
 $legend = "<b>" . _MENU_FLIGHTS . "</b> ";
 // SEASON MOD
 if (!$clubID) {
     // if we are viewing a club, the dates will be taken care wit hthe CLUB code
     $where_clause .= dates::makeWhereClause(0, $season, $year, $month, $CONF_use_calendar ? $day : 0);
 }
 // BRANDS MOD
 $where_clause .= brands::makeWhereClause($brandID);
 // take care of exluding flights
 // 1-> first bit -> means flight will not be counted anywhere!!!
 $bitMask = 1 & ~($includeMask & 0x1);
 $where_clause .= " AND ( excludeFrom & {$bitMask} ) = 0 ";
 if ($pilotID != 0) {
     $where_clause .= " AND userID='" . $pilotID . "'  AND userServerID={$serverID} ";
 } else {
     // 0 means all flights BUT not test ones
     $where_clause .= " AND userID>0 ";
 }
 if ($takeoffID) {
     $where_clause .= " AND takeoffID='" . $takeoffID . "' ";
 }
 // Martin Jursa 18.05.2007
 // Support for NACclubs added