@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | foreach($spotter_array as $spotter_item) |
| 18 | 18 | { |
| 19 | 19 | $output .= '<url>'; |
| 20 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/flightid/'.$spotter_item['spotter_id'].'</loc>'; |
|
| 21 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 22 | - $output .= '<changefreq>weekly</changefreq>'; |
|
| 20 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/flightid/'.$spotter_item['spotter_id'].'</loc>'; |
|
| 21 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 22 | + $output .= '<changefreq>weekly</changefreq>'; |
|
| 23 | 23 | $output .= '</url>'; |
| 24 | 24 | } |
| 25 | 25 | $output .= '</urlset>'; |
@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | foreach($aircraft_types as $aircraft_item) |
| 35 | 35 | { |
| 36 | 36 | $output .= '<url>'; |
| 37 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/aircraft/'.urlencode($aircraft_item['aircraft_icao']).'</loc>'; |
|
| 38 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 39 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 37 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/aircraft/'.urlencode($aircraft_item['aircraft_icao']).'</loc>'; |
|
| 38 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 39 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 40 | 40 | $output .= '</url>'; |
| 41 | 41 | } |
| 42 | 42 | $output .= '</urlset>'; |
@@ -51,9 +51,9 @@ discard block |
||
| 51 | 51 | foreach($aircraft_registrations as $aircraft_item) |
| 52 | 52 | { |
| 53 | 53 | $output .= '<url>'; |
| 54 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/registration/'.urlencode($aircraft_item['registration']).'</loc>'; |
|
| 55 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 56 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 54 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/registration/'.urlencode($aircraft_item['registration']).'</loc>'; |
|
| 55 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 56 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 57 | 57 | $output .= '</url>'; |
| 58 | 58 | } |
| 59 | 59 | $output .= '</urlset>'; |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | foreach($airline_names as $airline_item) |
| 68 | 68 | { |
| 69 | 69 | $output .= '<url>'; |
| 70 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airline/'.urlencode($airline_item['airline_icao']).'</loc>'; |
|
| 71 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 72 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 70 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airline/'.urlencode($airline_item['airline_icao']).'</loc>'; |
|
| 71 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 72 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 73 | 73 | $output .= '</url>'; |
| 74 | 74 | } |
| 75 | 75 | $output .= '</urlset>'; |
@@ -84,9 +84,9 @@ discard block |
||
| 84 | 84 | foreach($airport_names as $airport_item) |
| 85 | 85 | { |
| 86 | 86 | $output .= '<url>'; |
| 87 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airport/'.$airport_item['airport_icao'].'</loc>'; |
|
| 88 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 89 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 87 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airport/'.$airport_item['airport_icao'].'</loc>'; |
|
| 88 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 89 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 90 | 90 | $output .= '</url>'; |
| 91 | 91 | } |
| 92 | 92 | $output .= '</urlset>'; |
@@ -101,9 +101,9 @@ discard block |
||
| 101 | 101 | foreach($manufacturer_names as $manufacturer_item) |
| 102 | 102 | { |
| 103 | 103 | $output .= '<url>'; |
| 104 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/manufacturer/'.urlencode(strtolower(str_replace(" ", "-", $manufacturer_item['aircraft_manufacturer']))).'</loc>'; |
|
| 105 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 106 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 104 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/manufacturer/'.urlencode(strtolower(str_replace(" ", "-", $manufacturer_item['aircraft_manufacturer']))).'</loc>'; |
|
| 105 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 106 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 107 | 107 | $output .= '</url>'; |
| 108 | 108 | } |
| 109 | 109 | $output .= '</urlset>'; |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | foreach($country_names as $country_item) |
| 118 | 118 | { |
| 119 | 119 | $output .= '<url>'; |
| 120 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/country/'.urlencode(strtolower(str_replace(" ", "-", $country_item['country']))).'</loc>'; |
|
| 121 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 122 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 120 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/country/'.urlencode(strtolower(str_replace(" ", "-", $country_item['country']))).'</loc>'; |
|
| 121 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 122 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 123 | 123 | $output .= '</url>'; |
| 124 | 124 | } |
| 125 | 125 | $output .= '</urlset>'; |
@@ -134,9 +134,9 @@ discard block |
||
| 134 | 134 | { |
| 135 | 135 | if (ctype_alnum($ident_item['ident'])) { |
| 136 | 136 | $output .= '<url>'; |
| 137 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/ident/'.urlencode($ident_item['ident']).'</loc>'; |
|
| 138 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 139 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 137 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/ident/'.urlencode($ident_item['ident']).'</loc>'; |
|
| 138 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 139 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 140 | 140 | $output .= '</url>'; |
| 141 | 141 | } |
| 142 | 142 | } |
@@ -151,9 +151,9 @@ discard block |
||
| 151 | 151 | foreach($date_names as $date_item) |
| 152 | 152 | { |
| 153 | 153 | $output .= '<url>'; |
| 154 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/date/'.date("Y-m-d", strtotime($date_item['date'])).'</loc>'; |
|
| 155 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 156 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 154 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/date/'.date("Y-m-d", strtotime($date_item['date'])).'</loc>'; |
|
| 155 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 156 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 157 | 157 | $output .= '</url>'; |
| 158 | 158 | } |
| 159 | 159 | $output .= '</urlset>'; |
@@ -167,9 +167,9 @@ discard block |
||
| 167 | 167 | foreach($route_names as $route_item) |
| 168 | 168 | { |
| 169 | 169 | $output .= '<url>'; |
| 170 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/route/'.$route_item['airport_departure_icao'].'/'.$route_item['airport_arrival_icao'].'</loc>'; |
|
| 171 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 172 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 170 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/route/'.$route_item['airport_departure_icao'].'/'.$route_item['airport_arrival_icao'].'</loc>'; |
|
| 171 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 172 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 173 | 173 | $output .= '</url>'; |
| 174 | 174 | } |
| 175 | 175 | $output .= '</urlset>'; |
@@ -181,117 +181,117 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | /* STATIC PAGES */ |
| 183 | 183 | $output .= '<url>'; |
| 184 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/</loc>'; |
|
| 185 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 186 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 184 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/</loc>'; |
|
| 185 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 186 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 187 | 187 | $output .= '</url>'; |
| 188 | 188 | $output .= '<url>'; |
| 189 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/latest</loc>'; |
|
| 190 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 191 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 189 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/latest</loc>'; |
|
| 190 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 191 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 192 | 192 | $output .= '</url>'; |
| 193 | 193 | $output .= '<url>'; |
| 194 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/highlights</loc>'; |
|
| 195 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 196 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 194 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/highlights</loc>'; |
|
| 195 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 196 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 197 | 197 | $output .= '</url>'; |
| 198 | 198 | $output .= '<url>'; |
| 199 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/aircraft</loc>'; |
|
| 200 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 201 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 199 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/aircraft</loc>'; |
|
| 200 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 201 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 202 | 202 | $output .= '</url>'; |
| 203 | 203 | $output .= '<url>'; |
| 204 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airline</loc>'; |
|
| 205 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 206 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 204 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airline</loc>'; |
|
| 205 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 206 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 207 | 207 | $output .= '</url>'; |
| 208 | 208 | $output .= '<url>'; |
| 209 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airport</loc>'; |
|
| 210 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 211 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 209 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airport</loc>'; |
|
| 210 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 211 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 212 | 212 | $output .= '</url>'; |
| 213 | 213 | $output .= '<url>'; |
| 214 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/search</loc>'; |
|
| 215 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 216 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 214 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/search</loc>'; |
|
| 215 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 216 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 217 | 217 | $output .= '</url>'; |
| 218 | 218 | $output .= '<url>'; |
| 219 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/about</loc>'; |
|
| 220 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 221 | - $output .= '<changefreq>weekly</changefreq>'; |
|
| 219 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/about</loc>'; |
|
| 220 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 221 | + $output .= '<changefreq>weekly</changefreq>'; |
|
| 222 | 222 | $output .= '</url>'; |
| 223 | 223 | |
| 224 | 224 | |
| 225 | 225 | /* STATISTIC PAGES */ |
| 226 | 226 | $output .= '<url>'; |
| 227 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/aircraft</loc>'; |
|
| 228 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 229 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 227 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/aircraft</loc>'; |
|
| 228 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 229 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 230 | 230 | $output .= '</url>'; |
| 231 | 231 | $output .= '<url>'; |
| 232 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/registration</loc>'; |
|
| 233 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 234 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 232 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/registration</loc>'; |
|
| 233 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 234 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 235 | 235 | $output .= '</url>'; |
| 236 | 236 | $output .= '<url>'; |
| 237 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/manufacturer</loc>'; |
|
| 238 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 239 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 237 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/manufacturer</loc>'; |
|
| 238 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 239 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 240 | 240 | $output .= '</url>'; |
| 241 | 241 | $output .= '<url>'; |
| 242 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airline</loc>'; |
|
| 243 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 244 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 242 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airline</loc>'; |
|
| 243 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 244 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 245 | 245 | $output .= '</url>'; |
| 246 | 246 | $output .= '<url>'; |
| 247 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airline-country</loc>'; |
|
| 248 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 249 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 247 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airline-country</loc>'; |
|
| 248 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 249 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 250 | 250 | $output .= '</url>'; |
| 251 | 251 | $output .= '<url>'; |
| 252 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-departure</loc>'; |
|
| 253 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 254 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 252 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-departure</loc>'; |
|
| 253 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 254 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 255 | 255 | $output .= '</url>'; |
| 256 | 256 | $output .= '<url>'; |
| 257 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-departure-country</loc>'; |
|
| 258 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 259 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 257 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-departure-country</loc>'; |
|
| 258 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 259 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 260 | 260 | $output .= '</url>'; |
| 261 | 261 | $output .= '<url>'; |
| 262 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-arrival</loc>'; |
|
| 263 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 264 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 262 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-arrival</loc>'; |
|
| 263 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 264 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 265 | 265 | $output .= '</url>'; |
| 266 | 266 | $output .= '<url>'; |
| 267 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-arrival-country</loc>'; |
|
| 268 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 269 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 267 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/airport-arrival-country</loc>'; |
|
| 268 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 269 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 270 | 270 | $output .= '</url>'; |
| 271 | 271 | $output .= '<url>'; |
| 272 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/route-airport</loc>'; |
|
| 273 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 274 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 272 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/route-airport</loc>'; |
|
| 273 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 274 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 275 | 275 | $output .= '</url>'; |
| 276 | 276 | $output .= '<url>'; |
| 277 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/route-waypoint</loc>'; |
|
| 278 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 279 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 277 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/route-waypoint</loc>'; |
|
| 278 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 279 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 280 | 280 | $output .= '</url>'; |
| 281 | 281 | $output .= '<url>'; |
| 282 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/callsign</loc>'; |
|
| 283 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 284 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 282 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/callsign</loc>'; |
|
| 283 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 284 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 285 | 285 | $output .= '</url>'; |
| 286 | 286 | $output .= '<url>'; |
| 287 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/date</loc>'; |
|
| 288 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 289 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 287 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/date</loc>'; |
|
| 288 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 289 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 290 | 290 | $output .= '</url>'; |
| 291 | 291 | $output .= '<url>'; |
| 292 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/time</loc>'; |
|
| 293 | - $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 294 | - $output .= '<changefreq>daily</changefreq>'; |
|
| 292 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/statistics/time</loc>'; |
|
| 293 | + $output .= '<lastmod>'.date("c", time()).'</lastmod>'; |
|
| 294 | + $output .= '<changefreq>daily</changefreq>'; |
|
| 295 | 295 | $output .= '</url>'; |
| 296 | 296 | $output .= '</urlset>'; |
| 297 | 297 | |
@@ -301,37 +301,37 @@ discard block |
||
| 301 | 301 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 302 | 302 | $output .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'; |
| 303 | 303 | $output .= '<sitemap>'; |
| 304 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/static</loc>'; |
|
| 304 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/static</loc>'; |
|
| 305 | 305 | $output .= '</sitemap>'; |
| 306 | 306 | $output .= '<sitemap>'; |
| 307 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/flight</loc>'; |
|
| 307 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/flight</loc>'; |
|
| 308 | 308 | $output .= '</sitemap>'; |
| 309 | 309 | $output .= '<sitemap>'; |
| 310 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/aircraft</loc>'; |
|
| 310 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/aircraft</loc>'; |
|
| 311 | 311 | $output .= '</sitemap>'; |
| 312 | 312 | $output .= '<sitemap>'; |
| 313 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/registration</loc>'; |
|
| 313 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/registration</loc>'; |
|
| 314 | 314 | $output .= '</sitemap>'; |
| 315 | 315 | $output .= '<sitemap>'; |
| 316 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/airline</loc>'; |
|
| 316 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/airline</loc>'; |
|
| 317 | 317 | $output .= '</sitemap>'; |
| 318 | 318 | $output .= '<sitemap>'; |
| 319 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/airport</loc>'; |
|
| 319 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/airport</loc>'; |
|
| 320 | 320 | $output .= '</sitemap>'; |
| 321 | 321 | $output .= '<sitemap>'; |
| 322 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/manufacturer</loc>'; |
|
| 322 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/manufacturer</loc>'; |
|
| 323 | 323 | $output .= '</sitemap>'; |
| 324 | 324 | $output .= '<sitemap>'; |
| 325 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/country</loc>'; |
|
| 325 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/country</loc>'; |
|
| 326 | 326 | $output .= '</sitemap>'; |
| 327 | 327 | $output .= '<sitemap>'; |
| 328 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/ident</loc>'; |
|
| 328 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/ident</loc>'; |
|
| 329 | 329 | $output .= '</sitemap>'; |
| 330 | 330 | $output .= '<sitemap>'; |
| 331 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/date</loc>'; |
|
| 331 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/date</loc>'; |
|
| 332 | 332 | $output .= '</sitemap>'; |
| 333 | 333 | $output .= '<sitemap>'; |
| 334 | - $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/route</loc>'; |
|
| 334 | + $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/sitemap/route</loc>'; |
|
| 335 | 335 | $output .= '</sitemap>'; |
| 336 | 336 | $output .= '</sitemapindex>'; |
| 337 | 337 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 15 | 15 | |
| 16 | 16 | $spotter_array = $Spotter->getAllFlightsforSitemap(); |
| 17 | - foreach($spotter_array as $spotter_item) |
|
| 17 | + foreach ($spotter_array as $spotter_item) |
|
| 18 | 18 | { |
| 19 | 19 | $output .= '<url>'; |
| 20 | 20 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/flightid/'.$spotter_item['spotter_id'].'</loc>'; |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | $output .= '</urlset>'; |
| 26 | 26 | |
| 27 | 27 | |
| 28 | -} else if (isset($_GET['type']) && $_GET['type'] == "aircraft"){ |
|
| 28 | +} else if (isset($_GET['type']) && $_GET['type'] == "aircraft") { |
|
| 29 | 29 | |
| 30 | 30 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 31 | 31 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 32 | 32 | $aircraft_types = $Stats->getAllAircraftTypes(); |
| 33 | 33 | if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
| 34 | - foreach($aircraft_types as $aircraft_item) |
|
| 34 | + foreach ($aircraft_types as $aircraft_item) |
|
| 35 | 35 | { |
| 36 | 36 | $output .= '<url>'; |
| 37 | 37 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/aircraft/'.urlencode($aircraft_item['aircraft_icao']).'</loc>'; |
@@ -42,13 +42,13 @@ discard block |
||
| 42 | 42 | $output .= '</urlset>'; |
| 43 | 43 | |
| 44 | 44 | |
| 45 | -} else if (isset($_GET['type']) && $_GET['type'] == "registration"){ |
|
| 45 | +} else if (isset($_GET['type']) && $_GET['type'] == "registration") { |
|
| 46 | 46 | |
| 47 | 47 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 48 | 48 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 49 | 49 | |
| 50 | 50 | $aircraft_registrations = $Spotter->getAllAircraftRegistrations(); |
| 51 | - foreach($aircraft_registrations as $aircraft_item) |
|
| 51 | + foreach ($aircraft_registrations as $aircraft_item) |
|
| 52 | 52 | { |
| 53 | 53 | $output .= '<url>'; |
| 54 | 54 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/registration/'.urlencode($aircraft_item['registration']).'</loc>'; |
@@ -58,13 +58,13 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | $output .= '</urlset>'; |
| 60 | 60 | |
| 61 | -} else if (isset($_GET['type']) && $_GET['type'] == "airline"){ |
|
| 61 | +} else if (isset($_GET['type']) && $_GET['type'] == "airline") { |
|
| 62 | 62 | |
| 63 | 63 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 64 | 64 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 65 | 65 | |
| 66 | 66 | $airline_names = $Stats->getAllAirlineNames(); |
| 67 | - foreach($airline_names as $airline_item) |
|
| 67 | + foreach ($airline_names as $airline_item) |
|
| 68 | 68 | { |
| 69 | 69 | $output .= '<url>'; |
| 70 | 70 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airline/'.urlencode($airline_item['airline_icao']).'</loc>'; |
@@ -74,14 +74,14 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | $output .= '</urlset>'; |
| 76 | 76 | |
| 77 | -} else if (isset($_GET['type']) && $_GET['type'] == "airport"){ |
|
| 77 | +} else if (isset($_GET['type']) && $_GET['type'] == "airport") { |
|
| 78 | 78 | |
| 79 | 79 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 80 | 80 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 81 | 81 | |
| 82 | 82 | $airport_names = $Stats->getAllAirportNames(); |
| 83 | 83 | if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
| 84 | - foreach($airport_names as $airport_item) |
|
| 84 | + foreach ($airport_names as $airport_item) |
|
| 85 | 85 | { |
| 86 | 86 | $output .= '<url>'; |
| 87 | 87 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/airport/'.$airport_item['airport_icao'].'</loc>'; |
@@ -91,14 +91,14 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | $output .= '</urlset>'; |
| 93 | 93 | |
| 94 | -} else if (isset($_GET['type']) && $_GET['type'] == "manufacturer"){ |
|
| 94 | +} else if (isset($_GET['type']) && $_GET['type'] == "manufacturer") { |
|
| 95 | 95 | |
| 96 | 96 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 97 | 97 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 98 | 98 | |
| 99 | 99 | $manufacturer_names = $Stats->getAllManufacturers(); |
| 100 | 100 | if (empty($manufacturer_names)) $manufacturer_names = $Spotter->getAllManufacturers(); |
| 101 | - foreach($manufacturer_names as $manufacturer_item) |
|
| 101 | + foreach ($manufacturer_names as $manufacturer_item) |
|
| 102 | 102 | { |
| 103 | 103 | $output .= '<url>'; |
| 104 | 104 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/manufacturer/'.urlencode(strtolower(str_replace(" ", "-", $manufacturer_item['aircraft_manufacturer']))).'</loc>'; |
@@ -108,13 +108,13 @@ discard block |
||
| 108 | 108 | } |
| 109 | 109 | $output .= '</urlset>'; |
| 110 | 110 | |
| 111 | -} else if (isset($_GET['type']) && $_GET['type'] == "country"){ |
|
| 111 | +} else if (isset($_GET['type']) && $_GET['type'] == "country") { |
|
| 112 | 112 | |
| 113 | 113 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 114 | 114 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 115 | 115 | |
| 116 | 116 | $country_names = $Spotter->getAllCountries(); |
| 117 | - foreach($country_names as $country_item) |
|
| 117 | + foreach ($country_names as $country_item) |
|
| 118 | 118 | { |
| 119 | 119 | $output .= '<url>'; |
| 120 | 120 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/country/'.urlencode(strtolower(str_replace(" ", "-", $country_item['country']))).'</loc>'; |
@@ -124,13 +124,13 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | $output .= '</urlset>'; |
| 126 | 126 | |
| 127 | -} else if (isset($_GET['type']) && $_GET['type'] == "ident"){ |
|
| 127 | +} else if (isset($_GET['type']) && $_GET['type'] == "ident") { |
|
| 128 | 128 | |
| 129 | 129 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 130 | 130 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 131 | 131 | |
| 132 | 132 | $ident_names = $Spotter->getAllIdents(); |
| 133 | - foreach($ident_names as $ident_item) |
|
| 133 | + foreach ($ident_names as $ident_item) |
|
| 134 | 134 | { |
| 135 | 135 | if (ctype_alnum($ident_item['ident'])) { |
| 136 | 136 | $output .= '<url>'; |
@@ -142,13 +142,13 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | $output .= '</urlset>'; |
| 144 | 144 | |
| 145 | -} else if (isset($_GET['type']) && $_GET['type'] == "date"){ |
|
| 145 | +} else if (isset($_GET['type']) && $_GET['type'] == "date") { |
|
| 146 | 146 | |
| 147 | 147 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 148 | 148 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 149 | 149 | |
| 150 | 150 | $date_names = $Spotter->getAllDates(); |
| 151 | - foreach($date_names as $date_item) |
|
| 151 | + foreach ($date_names as $date_item) |
|
| 152 | 152 | { |
| 153 | 153 | $output .= '<url>'; |
| 154 | 154 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/date/'.date("Y-m-d", strtotime($date_item['date'])).'</loc>'; |
@@ -158,13 +158,13 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | $output .= '</urlset>'; |
| 160 | 160 | |
| 161 | -} else if (isset($_GET['type']) && $_GET['type'] == "route"){ |
|
| 161 | +} else if (isset($_GET['type']) && $_GET['type'] == "route") { |
|
| 162 | 162 | |
| 163 | 163 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 164 | 164 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 165 | 165 | |
| 166 | 166 | $route_names = $Spotter->getAllRoutes(); |
| 167 | - foreach($route_names as $route_item) |
|
| 167 | + foreach ($route_names as $route_item) |
|
| 168 | 168 | { |
| 169 | 169 | $output .= '<url>'; |
| 170 | 170 | $output .= '<loc>'.'http://'.$_SERVER['HTTP_HOST'].$globalURL.'/route/'.$route_item['airport_departure_icao'].'/'.$route_item['airport_arrival_icao'].'</loc>'; |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | $output .= '</urlset>'; |
| 176 | 176 | |
| 177 | -} else if (isset($_GET['type']) && $_GET['type'] == "static"){ |
|
| 177 | +} else if (isset($_GET['type']) && $_GET['type'] == "static") { |
|
| 178 | 178 | |
| 179 | 179 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 180 | 180 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
@@ -30,7 +30,9 @@ discard block |
||
| 30 | 30 | $output .= '<?xml version="1.0" encoding="UTF-8"?>'; |
| 31 | 31 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 32 | 32 | $aircraft_types = $Stats->getAllAircraftTypes(); |
| 33 | - if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
| 33 | + if (empty($aircraft_types)) { |
|
| 34 | + $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
| 35 | + } |
|
| 34 | 36 | foreach($aircraft_types as $aircraft_item) |
| 35 | 37 | { |
| 36 | 38 | $output .= '<url>'; |
@@ -80,7 +82,9 @@ discard block |
||
| 80 | 82 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 81 | 83 | |
| 82 | 84 | $airport_names = $Stats->getAllAirportNames(); |
| 83 | - if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
|
| 85 | + if (empty($airport_names)) { |
|
| 86 | + $airport_names = $Spotter->getAllAirportNames(); |
|
| 87 | + } |
|
| 84 | 88 | foreach($airport_names as $airport_item) |
| 85 | 89 | { |
| 86 | 90 | $output .= '<url>'; |
@@ -97,7 +101,9 @@ discard block |
||
| 97 | 101 | $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; |
| 98 | 102 | |
| 99 | 103 | $manufacturer_names = $Stats->getAllManufacturers(); |
| 100 | - if (empty($manufacturer_names)) $manufacturer_names = $Spotter->getAllManufacturers(); |
|
| 104 | + if (empty($manufacturer_names)) { |
|
| 105 | + $manufacturer_names = $Spotter->getAllManufacturers(); |
|
| 106 | + } |
|
| 101 | 107 | foreach($manufacturer_names as $manufacturer_item) |
| 102 | 108 | { |
| 103 | 109 | $output .= '<url>'; |