Beispiel #1
0
                $flight = new flight();
                $flight->getFlightFromDB($row['ID'], 0, $row);
                if ($item_num > 0) {
                    $RSS_str .= ' , ';
                }
                $RSS_str .= ' { "item": {
"transactionID": "' . sprintf("%020d", $actionTm) . '",
"actionTimeUTC": "' . $actionTimeStr . '",
"actionTmUTC": ' . $actionTm . ',
"serverUTCoffset": "' . date('Z') . '",
"type": 	  1,  
"id": 		  ' . $row['ID'] . ',
"serverID":   ' . $row['serverID'] . ',
"action":     ' . $actionID . ',
"userID":	  ' . $row['userID'] . ',
"actionData":  ' . $flight->toXML('JSON') . '
}} ';
                $gotEntries++;
                $item_num++;
            }
            // end while
            if ($tableType != 'deleted') {
                $lastActionTm = $actionTm;
                $lastActionTimeStr = $actionTimeStr;
            }
        }
        // end tableNames while
        $RSS_str .= ' ] ';
        $RSS_str .= ' , "ItemCount": ' . $item_num . ', "lastTimeUTC": "' . $lastActionTimeStr . '", "lastTmUTC": ' . ($lastActionTm + 0) . ' } ';
        //$RSS_str=htmlspecialchars($RSS_str);
        if (!$CONF_use_utf) {