@@ -4,12 +4,22 @@ discard block |
||
| 4 | 4 | if (isset($_SESSION['error'])) { |
| 5 | 5 | header('Content-Encoding: none;'); |
| 6 | 6 | echo 'Error : '.$_SESSION['error'].' - Resetting install... You need to fix the problem and run install again.'; |
| 7 | - if (isset($_SESSION['error'])) unset($_SESSION['error']); |
|
| 8 | - if (isset($_SESSION['errorlst'])) unset($_SESSION['errorlst']); |
|
| 9 | - if (isset($_SESSION['next'])) unset($_SESSION['next']); |
|
| 10 | - if (isset($_SESSION['install'])) unset($_SESSION['install']); |
|
| 11 | - if (isset($_SESSION['identitied'])) unset($_SESSION['identified']); |
|
| 12 | -} |
|
| 7 | + if (isset($_SESSION['error'])) { |
|
| 8 | + unset($_SESSION['error']); |
|
| 9 | + } |
|
| 10 | + if (isset($_SESSION['errorlst'])) { |
|
| 11 | + unset($_SESSION['errorlst']); |
|
| 12 | + } |
|
| 13 | + if (isset($_SESSION['next'])) { |
|
| 14 | + unset($_SESSION['next']); |
|
| 15 | + } |
|
| 16 | + if (isset($_SESSION['install'])) { |
|
| 17 | + unset($_SESSION['install']); |
|
| 18 | + } |
|
| 19 | + if (isset($_SESSION['identitied'])) { |
|
| 20 | + unset($_SESSION['identified']); |
|
| 21 | + } |
|
| 22 | + } |
|
| 13 | 23 | /* |
| 14 | 24 | if (isset($_SESSION['errorlst'])) { |
| 15 | 25 | header('Content-Encoding: none;'); |
@@ -131,7 +141,9 @@ discard block |
||
| 131 | 141 | if (count($alllng) != count($availablelng)) { |
| 132 | 142 | $notavailable = array(); |
| 133 | 143 | foreach($alllng as $lng) { |
| 134 | - if (!isset($availablelng[$lng])) $notavailable[] = $lng; |
|
| 144 | + if (!isset($availablelng[$lng])) { |
|
| 145 | + $notavailable[] = $lng; |
|
| 146 | + } |
|
| 135 | 147 | } |
| 136 | 148 | print '<div class="alert alert-warning">The following translation can\'t be used on your system: '.implode(', ',$notavailable).'. You need to add the system locales: <a href="https://github.com/Ysurac/FlightAirMap/wiki/Translation">documentation</a>.</div>'; |
| 137 | 149 | } |
@@ -170,7 +182,10 @@ discard block |
||
| 170 | 182 | <legend>Install script configuration</legend> |
| 171 | 183 | <p> |
| 172 | 184 | <label for="installpass">Install password</label> |
| 173 | - <input type="password" name="installpass" id="installpass" value="<?php if (isset($globalInstallPassword)) print $globalInstallPassword; ?>" /> |
|
| 185 | + <input type="password" name="installpass" id="installpass" value="<?php if (isset($globalInstallPassword)) { |
|
| 186 | + print $globalInstallPassword; |
|
| 187 | +} |
|
| 188 | +?>" /> |
|
| 174 | 189 | </p> |
| 175 | 190 | <p class="help-block">Password needed to access this install script. If empty, to access this script, you will need to change the $globalInstalled setting in require/settings.php to FALSE</p> |
| 176 | 191 | </fieldset> |
@@ -200,31 +215,49 @@ discard block |
||
| 200 | 215 | </div> |
| 201 | 216 | <p> |
| 202 | 217 | <label for="dbhost">Database hostname</label> |
| 203 | - <input type="text" name="dbhost" id="dbhost" value="<?php if (isset($globalDBhost)) print $globalDBhost; ?>" /> |
|
| 218 | + <input type="text" name="dbhost" id="dbhost" value="<?php if (isset($globalDBhost)) { |
|
| 219 | + print $globalDBhost; |
|
| 220 | +} |
|
| 221 | +?>" /> |
|
| 204 | 222 | </p> |
| 205 | 223 | <p> |
| 206 | 224 | <label for="dbport">Database port</label> |
| 207 | - <input type="text" name="dbport" id="dbport" value="<?php if (isset($globalDBport)) print $globalDBport; ?>" /> |
|
| 225 | + <input type="text" name="dbport" id="dbport" value="<?php if (isset($globalDBport)) { |
|
| 226 | + print $globalDBport; |
|
| 227 | +} |
|
| 228 | +?>" /> |
|
| 208 | 229 | <p class="help-block">Default is 3306 for MariaDB/MySQL, 5432 for PostgreSQL</p> |
| 209 | 230 | </p> |
| 210 | 231 | <p> |
| 211 | 232 | <label for="dbname">Database name</label> |
| 212 | - <input type="text" name="dbname" id="dbname" value="<?php if (isset($globalDBname)) print $globalDBname; ?>" /> |
|
| 233 | + <input type="text" name="dbname" id="dbname" value="<?php if (isset($globalDBname)) { |
|
| 234 | + print $globalDBname; |
|
| 235 | +} |
|
| 236 | +?>" /> |
|
| 213 | 237 | </p> |
| 214 | 238 | <p> |
| 215 | 239 | <label for="dbuser">Database user</label> |
| 216 | - <input type="text" name="dbuser" id="dbuser" value="<?php if (isset($globalDBuser)) print $globalDBuser; ?>" /> |
|
| 240 | + <input type="text" name="dbuser" id="dbuser" value="<?php if (isset($globalDBuser)) { |
|
| 241 | + print $globalDBuser; |
|
| 242 | +} |
|
| 243 | +?>" /> |
|
| 217 | 244 | </p> |
| 218 | 245 | <p> |
| 219 | 246 | <label for="dbuserpass">Database user password</label> |
| 220 | - <input type="password" name="dbuserpass" id="dbuserpass" value="<?php if (isset($globalDBpass)) print $globalDBpass; ?>" /> |
|
| 247 | + <input type="password" name="dbuserpass" id="dbuserpass" value="<?php if (isset($globalDBpass)) { |
|
| 248 | + print $globalDBpass; |
|
| 249 | +} |
|
| 250 | +?>" /> |
|
| 221 | 251 | </p> |
| 222 | 252 | </fieldset> |
| 223 | 253 | <fieldset id="site"> |
| 224 | 254 | <legend>Site configuration</legend> |
| 225 | 255 | <p> |
| 226 | 256 | <label for="sitename">Site name</label> |
| 227 | - <input type="text" name="sitename" id="sitename" value="<?php if (isset($globalName)) print $globalName; ?>" /> |
|
| 257 | + <input type="text" name="sitename" id="sitename" value="<?php if (isset($globalName)) { |
|
| 258 | + print $globalName; |
|
| 259 | +} |
|
| 260 | +?>" /> |
|
| 228 | 261 | </p> |
| 229 | 262 | <p> |
| 230 | 263 | <label for="siteurl">Site directory</label> |
@@ -237,18 +270,27 @@ discard block |
||
| 237 | 270 | } |
| 238 | 271 | } |
| 239 | 272 | ?> |
| 240 | - <input type="text" name="siteurl" id="siteurl" value="<?php if (isset($globalURL)) print $globalURL; ?>" /> |
|
| 273 | + <input type="text" name="siteurl" id="siteurl" value="<?php if (isset($globalURL)) { |
|
| 274 | + print $globalURL; |
|
| 275 | +} |
|
| 276 | +?>" /> |
|
| 241 | 277 | <p class="help-block">ex : <i>/flightairmap</i> if complete URL is <i>http://toto.com/flightairmap</i></p> |
| 242 | 278 | <p class="help-block">Can be empty</p> |
| 243 | 279 | </p> |
| 244 | 280 | <p> |
| 245 | 281 | <label for="timezone">Timezone</label> |
| 246 | - <input type="text" name="timezone" id="timezone" value="<?php if (isset($globalTimezone)) print $globalTimezone; ?>" /> |
|
| 282 | + <input type="text" name="timezone" id="timezone" value="<?php if (isset($globalTimezone)) { |
|
| 283 | + print $globalTimezone; |
|
| 284 | +} |
|
| 285 | +?>" /> |
|
| 247 | 286 | <p class="help-block">ex : UTC, Europe/Paris,...</p> |
| 248 | 287 | </p> |
| 249 | 288 | <p> |
| 250 | 289 | <label for="language">Language</label> |
| 251 | - <input type="text" name="language" id="language" value="<?php if (isset($globalLanguage)) print $globalLanguage; ?>" /> |
|
| 290 | + <input type="text" name="language" id="language" value="<?php if (isset($globalLanguage)) { |
|
| 291 | + print $globalLanguage; |
|
| 292 | +} |
|
| 293 | +?>" /> |
|
| 252 | 294 | <p class="help-block">Used only when link to wikipedia for now. Can be EN,DE,FR,...</p> |
| 253 | 295 | </p> |
| 254 | 296 | </fieldset> |
@@ -268,11 +310,17 @@ discard block |
||
| 268 | 310 | <div id="mapbox_data"> |
| 269 | 311 | <p> |
| 270 | 312 | <label for="mapboxid">Mapbox id</label> |
| 271 | - <input type="text" name="mapboxid" id="mapboxid" value="<?php if (isset($globalMapboxId)) print $globalMapboxId; ?>" /> |
|
| 313 | + <input type="text" name="mapboxid" id="mapboxid" value="<?php if (isset($globalMapboxId)) { |
|
| 314 | + print $globalMapboxId; |
|
| 315 | +} |
|
| 316 | +?>" /> |
|
| 272 | 317 | </p> |
| 273 | 318 | <p> |
| 274 | 319 | <label for="mapboxtoken">Mapbox token</label> |
| 275 | - <input type="text" name="mapboxtoken" id="mapboxtoken" value="<?php if (isset($globalMapboxToken)) print $globalMapboxToken; ?>" /> |
|
| 320 | + <input type="text" name="mapboxtoken" id="mapboxtoken" value="<?php if (isset($globalMapboxToken)) { |
|
| 321 | + print $globalMapboxToken; |
|
| 322 | +} |
|
| 323 | +?>" /> |
|
| 276 | 324 | </p> |
| 277 | 325 | <p class="help-block">Get a key <a href="https://www.mapbox.com/developers/">here</a></p> |
| 278 | 326 | </div> |
@@ -280,7 +328,10 @@ discard block |
||
| 280 | 328 | <div id="google_data"> |
| 281 | 329 | <p> |
| 282 | 330 | <label for="googlekey">Google API key</label> |
| 283 | - <input type="text" name="googlekey" id="googlekey" value="<?php if (isset($globalGoogleAPIKey)) print $globalGoogleAPIKey; ?>" /> |
|
| 331 | + <input type="text" name="googlekey" id="googlekey" value="<?php if (isset($globalGoogleAPIKey)) { |
|
| 332 | + print $globalGoogleAPIKey; |
|
| 333 | +} |
|
| 334 | +?>" /> |
|
| 284 | 335 | <p class="help-block">Get a key <a href="https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key">here</a></p> |
| 285 | 336 | </p> |
| 286 | 337 | </div> |
@@ -288,7 +339,10 @@ discard block |
||
| 288 | 339 | <div id="bing_data"> |
| 289 | 340 | <p> |
| 290 | 341 | <label for="bingkey">Bing Map key</label> |
| 291 | - <input type="text" name="bingkey" id="bingkey" value="<?php if (isset($globalBingMapKey)) print $globalBingMapKey; ?>" /> |
|
| 342 | + <input type="text" name="bingkey" id="bingkey" value="<?php if (isset($globalBingMapKey)) { |
|
| 343 | + print $globalBingMapKey; |
|
| 344 | +} |
|
| 345 | +?>" /> |
|
| 292 | 346 | <p class="help-block">Get a key <a href="https://www.bingmapsportal.com/">here</a></p> |
| 293 | 347 | </p> |
| 294 | 348 | </div> |
@@ -296,7 +350,10 @@ discard block |
||
| 296 | 350 | <div id="mapquest_data"> |
| 297 | 351 | <p> |
| 298 | 352 | <label for="mapquestkey">MapQuest key</label> |
| 299 | - <input type="text" name="mapquestkey" id="mapquestkey" value="<?php if (isset($globalMapQuestKey)) print $globalMapQuestKey; ?>" /> |
|
| 353 | + <input type="text" name="mapquestkey" id="mapquestkey" value="<?php if (isset($globalMapQuestKey)) { |
|
| 354 | + print $globalMapQuestKey; |
|
| 355 | +} |
|
| 356 | +?>" /> |
|
| 300 | 357 | <p class="help-block">Get a key <a href="https://developer.mapquest.com/user/me/apps">here</a></p> |
| 301 | 358 | </p> |
| 302 | 359 | </div> |
@@ -304,11 +361,17 @@ discard block |
||
| 304 | 361 | <div id="here_data"> |
| 305 | 362 | <p> |
| 306 | 363 | <label for="hereappid">Here App_Id</label> |
| 307 | - <input type="text" name="hereappid" id="hereappid" value="<?php if (isset($globalHereappId)) print $globalHereappId; ?>" /> |
|
| 364 | + <input type="text" name="hereappid" id="hereappid" value="<?php if (isset($globalHereappId)) { |
|
| 365 | + print $globalHereappId; |
|
| 366 | +} |
|
| 367 | +?>" /> |
|
| 308 | 368 | </p> |
| 309 | 369 | <p> |
| 310 | 370 | <label for="hereappcode">Here App_Code</label> |
| 311 | - <input type="text" name="hereappcode" id="hereappcode" value="<?php if (isset($globalHereappCode)) print $globalHereappCode; ?>" /> |
|
| 371 | + <input type="text" name="hereappcode" id="hereappcode" value="<?php if (isset($globalHereappCode)) { |
|
| 372 | + print $globalHereappCode; |
|
| 373 | +} |
|
| 374 | +?>" /> |
|
| 312 | 375 | </p> |
| 313 | 376 | <p class="help-block">Get a key <a href="https://developer.here.com/rest-apis/documentation/enterprise-map-tile/topics/quick-start.html">here</a></p> |
| 314 | 377 | </div> |
@@ -316,7 +379,10 @@ discard block |
||
| 316 | 379 | <div id="openweathermap_data"> |
| 317 | 380 | <p> |
| 318 | 381 | <label for="openweathermapkey">OpenWeatherMap key (weather layer)</label> |
| 319 | - <input type="text" name="openweathermapkey" id="openweathermapkey" value="<?php if (isset($globalOpenWeatherMapKey)) print $globalOpenWeatherMapKey; ?>" /> |
|
| 382 | + <input type="text" name="openweathermapkey" id="openweathermapkey" value="<?php if (isset($globalOpenWeatherMapKey)) { |
|
| 383 | + print $globalOpenWeatherMapKey; |
|
| 384 | +} |
|
| 385 | +?>" /> |
|
| 320 | 386 | <p class="help-block">Get a key <a href="https://openweathermap.org/">here</a></p> |
| 321 | 387 | </p> |
| 322 | 388 | </div> |
@@ -345,42 +411,86 @@ discard block |
||
| 345 | 411 | <legend>Coverage area</legend> |
| 346 | 412 | <p> |
| 347 | 413 | <label for="latitudemax">The maximum latitude (north)</label> |
| 348 | - <input type="text" name="latitudemax" id="latitudemax" value="<?php if (isset($globalLatitudeMax)) print $globalLatitudeMax; ?>" /> |
|
| 414 | + <input type="text" name="latitudemax" id="latitudemax" value="<?php if (isset($globalLatitudeMax)) { |
|
| 415 | + print $globalLatitudeMax; |
|
| 416 | +} |
|
| 417 | +?>" /> |
|
| 349 | 418 | </p> |
| 350 | 419 | <p> |
| 351 | 420 | <label for="latitudemin">The minimum latitude (south)</label> |
| 352 | - <input type="text" name="latitudemin" id="latitudemin" value="<?php if (isset($globalLatitudeMin)) print $globalLatitudeMin; ?>" /> |
|
| 421 | + <input type="text" name="latitudemin" id="latitudemin" value="<?php if (isset($globalLatitudeMin)) { |
|
| 422 | + print $globalLatitudeMin; |
|
| 423 | +} |
|
| 424 | +?>" /> |
|
| 353 | 425 | </p> |
| 354 | 426 | <p> |
| 355 | 427 | <label for="longitudemax">The maximum longitude (west)</label> |
| 356 | - <input type="text" name="longitudemax" id="longitudemax" value="<?php if (isset($globalLongitudeMax)) print $globalLongitudeMax; ?>" /> |
|
| 428 | + <input type="text" name="longitudemax" id="longitudemax" value="<?php if (isset($globalLongitudeMax)) { |
|
| 429 | + print $globalLongitudeMax; |
|
| 430 | +} |
|
| 431 | +?>" /> |
|
| 357 | 432 | </p> |
| 358 | 433 | <p> |
| 359 | 434 | <label for="longitudemin">The minimum longitude (east)</label> |
| 360 | - <input type="text" name="longitudemin" id="longitudemin" value="<?php if (isset($globalLongitudeMin)) print $globalLongitudeMin; ?>" /> |
|
| 435 | + <input type="text" name="longitudemin" id="longitudemin" value="<?php if (isset($globalLongitudeMin)) { |
|
| 436 | + print $globalLongitudeMin; |
|
| 437 | +} |
|
| 438 | +?>" /> |
|
| 361 | 439 | </p> |
| 362 | 440 | <p> |
| 363 | 441 | <label for="latitudecenter">The latitude center</label> |
| 364 | - <input type="text" name="latitudecenter" id="latitudecenter" value="<?php if (isset($globalCenterLatitude)) print $globalCenterLatitude; ?>" /> |
|
| 442 | + <input type="text" name="latitudecenter" id="latitudecenter" value="<?php if (isset($globalCenterLatitude)) { |
|
| 443 | + print $globalCenterLatitude; |
|
| 444 | +} |
|
| 445 | +?>" /> |
|
| 365 | 446 | </p> |
| 366 | 447 | <p> |
| 367 | 448 | <label for="longitudecenter">The longitude center</label> |
| 368 | - <input type="text" name="longitudecenter" id="longitudecenter" value="<?php if (isset($globalCenterLongitude)) print $globalCenterLongitude; ?>" /> |
|
| 449 | + <input type="text" name="longitudecenter" id="longitudecenter" value="<?php if (isset($globalCenterLongitude)) { |
|
| 450 | + print $globalCenterLongitude; |
|
| 451 | +} |
|
| 452 | +?>" /> |
|
| 369 | 453 | </p> |
| 370 | 454 | <p> |
| 371 | 455 | <label for="livezoom">Default Zoom on live map</label> |
| 372 | - <input type="number" name="livezoom" id="livezoom" value="<?php if (isset($globalLiveZoom)) print $globalLiveZoom; else print '9'; ?>" /> |
|
| 456 | + <input type="number" name="livezoom" id="livezoom" value="<?php if (isset($globalLiveZoom)) { |
|
| 457 | + print $globalLiveZoom; |
|
| 458 | +} else { |
|
| 459 | + print '9'; |
|
| 460 | +} |
|
| 461 | +?>" /> |
|
| 373 | 462 | </p> |
| 374 | 463 | <p> |
| 375 | 464 | <label for="squawk_country">Country for squawk usage</label> |
| 376 | 465 | <select name="squawk_country" id="squawk_country"> |
| 377 | - <option value="UK"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'UK') print ' selected '; ?>>UK</option> |
|
| 378 | - <option value="NZ"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'NZ') print ' selected '; ?>>NZ</option> |
|
| 379 | - <option value="US"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'US') print ' selected '; ?>>US</option> |
|
| 380 | - <option value="AU"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'AU') print ' selected '; ?>>AU</option> |
|
| 381 | - <option value="NL"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'NL') print ' selected '; ?>>NL</option> |
|
| 382 | - <option value="FR"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'FR') print ' selected '; ?>>FR</option> |
|
| 383 | - <option value="TR"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'TR') print ' selected '; ?>>TR</option> |
|
| 466 | + <option value="UK"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'UK') { |
|
| 467 | + print ' selected '; |
|
| 468 | +} |
|
| 469 | +?>>UK</option> |
|
| 470 | + <option value="NZ"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'NZ') { |
|
| 471 | + print ' selected '; |
|
| 472 | +} |
|
| 473 | +?>>NZ</option> |
|
| 474 | + <option value="US"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'US') { |
|
| 475 | + print ' selected '; |
|
| 476 | +} |
|
| 477 | +?>>US</option> |
|
| 478 | + <option value="AU"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'AU') { |
|
| 479 | + print ' selected '; |
|
| 480 | +} |
|
| 481 | +?>>AU</option> |
|
| 482 | + <option value="NL"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'NL') { |
|
| 483 | + print ' selected '; |
|
| 484 | +} |
|
| 485 | +?>>NL</option> |
|
| 486 | + <option value="FR"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'FR') { |
|
| 487 | + print ' selected '; |
|
| 488 | +} |
|
| 489 | +?>>FR</option> |
|
| 490 | + <option value="TR"<?php if (isset($globalSquawkCountry) && $globalSquawkCountry == 'TR') { |
|
| 491 | + print ' selected '; |
|
| 492 | +} |
|
| 493 | +?>>TR</option> |
|
| 384 | 494 | </select> |
| 385 | 495 | </p> |
| 386 | 496 | </fieldset> |
@@ -389,15 +499,24 @@ discard block |
||
| 389 | 499 | <p><i>Only put in DB flights that are inside a circle</i></p> |
| 390 | 500 | <p> |
| 391 | 501 | <label for="latitude">Center latitude</label> |
| 392 | - <input type="text" name="zoilatitude" id="latitude" value="<?php if (isset($globalDistanceIgnore['latitude'])) echo $globalDistanceIgnore['latitude']; ?>" /> |
|
| 502 | + <input type="text" name="zoilatitude" id="latitude" value="<?php if (isset($globalDistanceIgnore['latitude'])) { |
|
| 503 | + echo $globalDistanceIgnore['latitude']; |
|
| 504 | +} |
|
| 505 | +?>" /> |
|
| 393 | 506 | </p> |
| 394 | 507 | <p> |
| 395 | 508 | <label for="longitude">Center longitude</label> |
| 396 | - <input type="text" name="zoilongitude" id="longitude" value="<?php if (isset($globalDistanceIgnore['longitude'])) echo $globalDistanceIgnore['longitude']; ?>" /> |
|
| 509 | + <input type="text" name="zoilongitude" id="longitude" value="<?php if (isset($globalDistanceIgnore['longitude'])) { |
|
| 510 | + echo $globalDistanceIgnore['longitude']; |
|
| 511 | +} |
|
| 512 | +?>" /> |
|
| 397 | 513 | </p> |
| 398 | 514 | <p> |
| 399 | 515 | <label for="Distance">Distance (in km)</label> |
| 400 | - <input type="text" name="zoidistance" id="distance" value="<?php if (isset($globalDistanceIgnore['distance'])) echo $globalDistanceIgnore['distance']; ?>" /> |
|
| 516 | + <input type="text" name="zoidistance" id="distance" value="<?php if (isset($globalDistanceIgnore['distance'])) { |
|
| 517 | + echo $globalDistanceIgnore['distance']; |
|
| 518 | +} |
|
| 519 | +?>" /> |
|
| 401 | 520 | </p> |
| 402 | 521 | </fieldset> |
| 403 | 522 | <fieldset id="sourceloc"> |
@@ -523,28 +642,43 @@ discard block |
||
| 523 | 642 | <div id="flightaware_data"> |
| 524 | 643 | <p> |
| 525 | 644 | <label for="flightawareusername">FlightAware username</label> |
| 526 | - <input type="text" name="flightawareusername" id="flightawareusername" value="<?php if (isset($globalFlightAwareUsername)) print $globalFlightAwareUsername; ?>" /> |
|
| 645 | + <input type="text" name="flightawareusername" id="flightawareusername" value="<?php if (isset($globalFlightAwareUsername)) { |
|
| 646 | + print $globalFlightAwareUsername; |
|
| 647 | +} |
|
| 648 | +?>" /> |
|
| 527 | 649 | </p> |
| 528 | 650 | <p> |
| 529 | 651 | <label for="flightawarepassword">FlightAware password/API key</label> |
| 530 | - <input type="text" name="flightawarepassword" id="flightawarepassword" value="<?php if (isset($globalFlightAwarePassword)) print $globalFlightAwarePassword; ?>" /> |
|
| 652 | + <input type="text" name="flightawarepassword" id="flightawarepassword" value="<?php if (isset($globalFlightAwarePassword)) { |
|
| 653 | + print $globalFlightAwarePassword; |
|
| 654 | +} |
|
| 655 | +?>" /> |
|
| 531 | 656 | </p> |
| 532 | 657 | </div> |
| 533 | 658 | --> |
| 534 | 659 | <div id="sailaway_data"> |
| 535 | 660 | <p> |
| 536 | 661 | <label for="sailawayemail">Sailaway email</label> |
| 537 | - <input type="text" name="sailawayemail" id="sailawayemail" value="<?php if (isset($globalSailaway['email'])) print $globalSailaway['email']; ?>" /> |
|
| 662 | + <input type="text" name="sailawayemail" id="sailawayemail" value="<?php if (isset($globalSailaway['email'])) { |
|
| 663 | + print $globalSailaway['email']; |
|
| 664 | +} |
|
| 665 | +?>" /> |
|
| 538 | 666 | <p class="help-block">Only needed for Sailaway full format</p> |
| 539 | 667 | </p> |
| 540 | 668 | <p> |
| 541 | 669 | <label for="sailawaypassword">Sailaway password</label> |
| 542 | - <input type="text" name="sailawaypassword" id="sailawaypassword" value="<?php if (isset($globalSailaway['password'])) print $globalSailaway['password']; ?>" /> |
|
| 670 | + <input type="text" name="sailawaypassword" id="sailawaypassword" value="<?php if (isset($globalSailaway['password'])) { |
|
| 671 | + print $globalSailaway['password']; |
|
| 672 | +} |
|
| 673 | +?>" /> |
|
| 543 | 674 | <p class="help-block">Only needed for Sailaway full format</p> |
| 544 | 675 | </p> |
| 545 | 676 | <p> |
| 546 | 677 | <label for="sailawaykey">Sailaway API key</label> |
| 547 | - <input type="text" name="sailawaykey" id="sailawaykey" value="<?php if (isset($globalSailaway['key'])) print $globalSailaway['key']; ?>" /> |
|
| 678 | + <input type="text" name="sailawaykey" id="sailawaykey" value="<?php if (isset($globalSailaway['key'])) { |
|
| 679 | + print $globalSailaway['key']; |
|
| 680 | +} |
|
| 681 | +?>" /> |
|
| 548 | 682 | </p> |
| 549 | 683 | </div> |
| 550 | 684 | |
@@ -586,7 +720,10 @@ discard block |
||
| 586 | 720 | if (filter_var($source['host'],FILTER_VALIDATE_URL)) { |
| 587 | 721 | ?> |
| 588 | 722 | <td><input type="text" name="host[]" value="<?php print $source['host']; ?>" /></td> |
| 589 | - <td><input type="text" name="port[]" class="col-xs-2" value="<?php if (isset($source['port'])) print $source['port']; ?>" /></td> |
|
| 723 | + <td><input type="text" name="port[]" class="col-xs-2" value="<?php if (isset($source['port'])) { |
|
| 724 | + print $source['port']; |
|
| 725 | +} |
|
| 726 | +?>" /></td> |
|
| 590 | 727 | <?php |
| 591 | 728 | } else { |
| 592 | 729 | $hostport = explode(':',$source['host']); |
@@ -605,41 +742,134 @@ discard block |
||
| 605 | 742 | ?> |
| 606 | 743 | <td> |
| 607 | 744 | <select name="format[]"> |
| 608 | - <option value="auto" <?php if (!isset($source['format'])) print 'selected'; ?>>Auto</option> |
|
| 609 | - <option value="sbs" <?php if (isset($source['format']) && $source['format'] == 'sbs') print 'selected'; ?>>SBS</option> |
|
| 610 | - <option value="tsv" <?php if (isset($source['format']) && $source['format'] == 'tsv') print 'selected'; ?>>TSV</option> |
|
| 611 | - <option value="raw" <?php if (isset($source['format']) && $source['format'] == 'raw') print 'selected'; ?>>Raw</option> |
|
| 612 | - <option value="aircraftjson" <?php if (isset($source['format']) && $source['format'] == 'aircraftjson') print 'selected'; ?>>Dump1090 aircraft.json</option> |
|
| 613 | - <option value="planefinderclient" <?php if (isset($source['format']) && $source['format'] == 'planefinderclient') print 'selected'; ?>>Planefinder client</option> |
|
| 614 | - <option value="aprs" <?php if (isset($source['format']) && $source['format'] == 'aprs') print 'selected'; ?>>APRS</option> |
|
| 615 | - <option value="deltadbtxt" <?php if (isset($source['format']) && $source['format'] == 'deltadbtxt') print 'selected'; ?>>Radarcape deltadb.txt</option> |
|
| 616 | - <option value="radarcapejson" <?php if (isset($source['format']) && $source['format'] == 'radarcapejson') print 'selected'; ?>>Radarcape json</option> |
|
| 617 | - <option value="vatsimtxt" <?php if (isset($source['format']) && $source['format'] == 'vatsimtxt') print 'selected'; ?>>Vatsim</option> |
|
| 618 | - <option value="aircraftlistjson" <?php if (isset($source['format']) && $source['format'] == 'aircraftlistjson') print 'selected'; ?>>Virtual Radar Server AircraftList.json</option> |
|
| 619 | - <option value="vrstcp" <?php if (isset($source['format']) && $source['format'] == 'vrstcp') print 'selected'; ?>>Virtual Radar Server TCP</option> |
|
| 620 | - <option value="phpvmacars" <?php if (isset($source['format']) && $source['format'] == 'phpvmacars') print 'selected'; ?>>phpVMS</option> |
|
| 621 | - <option value="vaos" <?php if (isset($source['format']) && $source['format'] == 'phpvmacars') print 'selected'; ?>>Virtual Airline Operations System (VAOS)</option> |
|
| 622 | - <option value="vam" <?php if (isset($source['format']) && $source['format'] == 'vam') print 'selected'; ?>>Virtual Airlines Manager</option> |
|
| 623 | - <option value="whazzup" <?php if (isset($source['format']) && $source['format'] == 'whazzup') print 'selected'; ?>>IVAO</option> |
|
| 624 | - <option value="flightgearmp" <?php if (isset($source['format']) && $source['format'] == 'flightgearmp') print 'selected'; ?>>FlightGear Multiplayer</option> |
|
| 625 | - <option value="flightgearsp" <?php if (isset($source['format']) && $source['format'] == 'flightgearsp') print 'selected'; ?>>FlightGear Singleplayer</option> |
|
| 626 | - <option value="acars" <?php if (isset($source['format']) && $source['format'] == 'acars') print 'selected'; ?>>ACARS from acarsdec/acarsdeco2 over UDP</option> |
|
| 627 | - <option value="acarssbs3" <?php if (isset($source['format']) && $source['format'] == 'acarssbs3') print 'selected'; ?>>ACARS SBS-3 over TCP</option> |
|
| 628 | - <option value="acarsjson" <?php if (isset($source['format']) && $source['format'] == 'acarsjson') print 'selected'; ?>>ACARS from acarsdec json and vdlm2dec</option> |
|
| 629 | - <option value="acarsjsonudp" <?php if (isset($source['format']) && $source['format'] == 'acarsjsonudp') print 'selected'; ?>>ACARS from acarsdec json and vdlm2dec over UDP</option> |
|
| 630 | - <option value="ais" <?php if (isset($source['format']) && $source['format'] == 'ais') print 'selected'; ?>>NMEA AIS over TCP</option> |
|
| 631 | - <option value="airwhere" <?php if (isset($source['format']) && $source['format'] == 'airwhere') print 'selected'; ?>>AirWhere website</option> |
|
| 632 | - <option value="hidnseek_callback" <?php if (isset($source['format']) && $source['format'] == 'hidnseek_callback') print 'selected'; ?>>HidnSeek Callback</option> |
|
| 633 | - <option value="blitzortung" <?php if (isset($source['format']) && $source['format'] == 'blitzortung') print 'selected'; ?>>Blitzortung</option> |
|
| 634 | - <option value="sailaway" <?php if (isset($source['format']) && $source['format'] == 'sailaway') print 'selected'; ?>>Sailaway</option> |
|
| 635 | - <option value="sailawayfull" <?php if (isset($source['format']) && $source['format'] == 'sailawayfull') print 'selected'; ?>>Sailaway with missions, races,...</option> |
|
| 745 | + <option value="auto" <?php if (!isset($source['format'])) { |
|
| 746 | + print 'selected'; |
|
| 747 | +} |
|
| 748 | +?>>Auto</option> |
|
| 749 | + <option value="sbs" <?php if (isset($source['format']) && $source['format'] == 'sbs') { |
|
| 750 | + print 'selected'; |
|
| 751 | +} |
|
| 752 | +?>>SBS</option> |
|
| 753 | + <option value="tsv" <?php if (isset($source['format']) && $source['format'] == 'tsv') { |
|
| 754 | + print 'selected'; |
|
| 755 | +} |
|
| 756 | +?>>TSV</option> |
|
| 757 | + <option value="raw" <?php if (isset($source['format']) && $source['format'] == 'raw') { |
|
| 758 | + print 'selected'; |
|
| 759 | +} |
|
| 760 | +?>>Raw</option> |
|
| 761 | + <option value="aircraftjson" <?php if (isset($source['format']) && $source['format'] == 'aircraftjson') { |
|
| 762 | + print 'selected'; |
|
| 763 | +} |
|
| 764 | +?>>Dump1090 aircraft.json</option> |
|
| 765 | + <option value="planefinderclient" <?php if (isset($source['format']) && $source['format'] == 'planefinderclient') { |
|
| 766 | + print 'selected'; |
|
| 767 | +} |
|
| 768 | +?>>Planefinder client</option> |
|
| 769 | + <option value="aprs" <?php if (isset($source['format']) && $source['format'] == 'aprs') { |
|
| 770 | + print 'selected'; |
|
| 771 | +} |
|
| 772 | +?>>APRS</option> |
|
| 773 | + <option value="deltadbtxt" <?php if (isset($source['format']) && $source['format'] == 'deltadbtxt') { |
|
| 774 | + print 'selected'; |
|
| 775 | +} |
|
| 776 | +?>>Radarcape deltadb.txt</option> |
|
| 777 | + <option value="radarcapejson" <?php if (isset($source['format']) && $source['format'] == 'radarcapejson') { |
|
| 778 | + print 'selected'; |
|
| 779 | +} |
|
| 780 | +?>>Radarcape json</option> |
|
| 781 | + <option value="vatsimtxt" <?php if (isset($source['format']) && $source['format'] == 'vatsimtxt') { |
|
| 782 | + print 'selected'; |
|
| 783 | +} |
|
| 784 | +?>>Vatsim</option> |
|
| 785 | + <option value="aircraftlistjson" <?php if (isset($source['format']) && $source['format'] == 'aircraftlistjson') { |
|
| 786 | + print 'selected'; |
|
| 787 | +} |
|
| 788 | +?>>Virtual Radar Server AircraftList.json</option> |
|
| 789 | + <option value="vrstcp" <?php if (isset($source['format']) && $source['format'] == 'vrstcp') { |
|
| 790 | + print 'selected'; |
|
| 791 | +} |
|
| 792 | +?>>Virtual Radar Server TCP</option> |
|
| 793 | + <option value="phpvmacars" <?php if (isset($source['format']) && $source['format'] == 'phpvmacars') { |
|
| 794 | + print 'selected'; |
|
| 795 | +} |
|
| 796 | +?>>phpVMS</option> |
|
| 797 | + <option value="vaos" <?php if (isset($source['format']) && $source['format'] == 'phpvmacars') { |
|
| 798 | + print 'selected'; |
|
| 799 | +} |
|
| 800 | +?>>Virtual Airline Operations System (VAOS)</option> |
|
| 801 | + <option value="vam" <?php if (isset($source['format']) && $source['format'] == 'vam') { |
|
| 802 | + print 'selected'; |
|
| 803 | +} |
|
| 804 | +?>>Virtual Airlines Manager</option> |
|
| 805 | + <option value="whazzup" <?php if (isset($source['format']) && $source['format'] == 'whazzup') { |
|
| 806 | + print 'selected'; |
|
| 807 | +} |
|
| 808 | +?>>IVAO</option> |
|
| 809 | + <option value="flightgearmp" <?php if (isset($source['format']) && $source['format'] == 'flightgearmp') { |
|
| 810 | + print 'selected'; |
|
| 811 | +} |
|
| 812 | +?>>FlightGear Multiplayer</option> |
|
| 813 | + <option value="flightgearsp" <?php if (isset($source['format']) && $source['format'] == 'flightgearsp') { |
|
| 814 | + print 'selected'; |
|
| 815 | +} |
|
| 816 | +?>>FlightGear Singleplayer</option> |
|
| 817 | + <option value="acars" <?php if (isset($source['format']) && $source['format'] == 'acars') { |
|
| 818 | + print 'selected'; |
|
| 819 | +} |
|
| 820 | +?>>ACARS from acarsdec/acarsdeco2 over UDP</option> |
|
| 821 | + <option value="acarssbs3" <?php if (isset($source['format']) && $source['format'] == 'acarssbs3') { |
|
| 822 | + print 'selected'; |
|
| 823 | +} |
|
| 824 | +?>>ACARS SBS-3 over TCP</option> |
|
| 825 | + <option value="acarsjson" <?php if (isset($source['format']) && $source['format'] == 'acarsjson') { |
|
| 826 | + print 'selected'; |
|
| 827 | +} |
|
| 828 | +?>>ACARS from acarsdec json and vdlm2dec</option> |
|
| 829 | + <option value="acarsjsonudp" <?php if (isset($source['format']) && $source['format'] == 'acarsjsonudp') { |
|
| 830 | + print 'selected'; |
|
| 831 | +} |
|
| 832 | +?>>ACARS from acarsdec json and vdlm2dec over UDP</option> |
|
| 833 | + <option value="ais" <?php if (isset($source['format']) && $source['format'] == 'ais') { |
|
| 834 | + print 'selected'; |
|
| 835 | +} |
|
| 836 | +?>>NMEA AIS over TCP</option> |
|
| 837 | + <option value="airwhere" <?php if (isset($source['format']) && $source['format'] == 'airwhere') { |
|
| 838 | + print 'selected'; |
|
| 839 | +} |
|
| 840 | +?>>AirWhere website</option> |
|
| 841 | + <option value="hidnseek_callback" <?php if (isset($source['format']) && $source['format'] == 'hidnseek_callback') { |
|
| 842 | + print 'selected'; |
|
| 843 | +} |
|
| 844 | +?>>HidnSeek Callback</option> |
|
| 845 | + <option value="blitzortung" <?php if (isset($source['format']) && $source['format'] == 'blitzortung') { |
|
| 846 | + print 'selected'; |
|
| 847 | +} |
|
| 848 | +?>>Blitzortung</option> |
|
| 849 | + <option value="sailaway" <?php if (isset($source['format']) && $source['format'] == 'sailaway') { |
|
| 850 | + print 'selected'; |
|
| 851 | +} |
|
| 852 | +?>>Sailaway</option> |
|
| 853 | + <option value="sailawayfull" <?php if (isset($source['format']) && $source['format'] == 'sailawayfull') { |
|
| 854 | + print 'selected'; |
|
| 855 | +} |
|
| 856 | +?>>Sailaway with missions, races,...</option> |
|
| 636 | 857 | </select> |
| 637 | 858 | </td> |
| 638 | 859 | <td> |
| 639 | - <input type="text" name="name[]" value="<?php if (isset($source['name'])) print $source['name']; ?>" /> |
|
| 860 | + <input type="text" name="name[]" value="<?php if (isset($source['name'])) { |
|
| 861 | + print $source['name']; |
|
| 862 | +} |
|
| 863 | +?>" /> |
|
| 640 | 864 | </td> |
| 641 | - <td><input type="checkbox" name="sourcestats[]" title="Create statistics for the source like number of messages, distance,..." value="1" <?php if (isset($source['sourcestats']) && $source['sourcestats']) print 'checked'; ?> /></td> |
|
| 642 | - <td><input type="checkbox" name="noarchive[]" title="Don't archive this source" value="1" <?php if (isset($source['noarchive']) && $source['noarchive']) print 'checked'; ?> /></td> |
|
| 865 | + <td><input type="checkbox" name="sourcestats[]" title="Create statistics for the source like number of messages, distance,..." value="1" <?php if (isset($source['sourcestats']) && $source['sourcestats']) { |
|
| 866 | + print 'checked'; |
|
| 867 | +} |
|
| 868 | +?> /></td> |
|
| 869 | + <td><input type="checkbox" name="noarchive[]" title="Don't archive this source" value="1" <?php if (isset($source['noarchive']) && $source['noarchive']) { |
|
| 870 | + print 'checked'; |
|
| 871 | +} |
|
| 872 | +?> /></td> |
|
| 643 | 873 | <td> |
| 644 | 874 | <select name="timezones[]"> |
| 645 | 875 | <?php |
@@ -649,7 +879,9 @@ discard block |
||
| 649 | 879 | print '<option selected>'.$timezones.'</option>'; |
| 650 | 880 | } elseif (!isset($source['timezone']) && $timezones == 'UTC') { |
| 651 | 881 | print '<option selected>'.$timezones.'</option>'; |
| 652 | - } else print '<option>'.$timezones.'</option>'; |
|
| 882 | + } else { |
|
| 883 | + print '<option>'.$timezones.'</option>'; |
|
| 884 | + } |
|
| 653 | 885 | } |
| 654 | 886 | ?> |
| 655 | 887 | </select> |
@@ -707,7 +939,9 @@ discard block |
||
| 707 | 939 | foreach($timezonelist as $timezones){ |
| 708 | 940 | if ($timezones == 'UTC') { |
| 709 | 941 | print '<option selected>'.$timezones.'</option>'; |
| 710 | - } else print '<option>'.$timezones.'</option>'; |
|
| 942 | + } else { |
|
| 943 | + print '<option>'.$timezones.'</option>'; |
|
| 944 | + } |
|
| 711 | 945 | } |
| 712 | 946 | ?> |
| 713 | 947 | </select> |
@@ -732,11 +966,17 @@ discard block |
||
| 732 | 966 | <p>Listen UDP server for acarsdec/acarsdeco2/... with <i>daemon-acars.php</i> script</p> |
| 733 | 967 | <p> |
| 734 | 968 | <label for="acarshost">ACARS UDP host</label> |
| 735 | - <input type="text" name="acarshost" id="acarshost" value="<?php if (isset($globalACARSHost)) print $globalACARSHost; ?>" /> |
|
| 969 | + <input type="text" name="acarshost" id="acarshost" value="<?php if (isset($globalACARSHost)) { |
|
| 970 | + print $globalACARSHost; |
|
| 971 | +} |
|
| 972 | +?>" /> |
|
| 736 | 973 | </p> |
| 737 | 974 | <p> |
| 738 | 975 | <label for="acarsport">ACARS UDP port</label> |
| 739 | - <input type="number" name="acarsport" id="acarsport" value="<?php if (isset($globalACARSPort)) print $globalACARSPort; ?>" /> |
|
| 976 | + <input type="number" name="acarsport" id="acarsport" value="<?php if (isset($globalACARSPort)) { |
|
| 977 | + print $globalACARSPort; |
|
| 978 | +} |
|
| 979 | +?>" /> |
|
| 740 | 980 | </p> |
| 741 | 981 | <p class="help-block"><i>daemon-acars.php</i> can only be run as daemon. It's an alternate script for ACARS data, <i>daemon-spotter.php</i> may be better.</p> |
| 742 | 982 | </fieldset> |
@@ -763,17 +1003,38 @@ discard block |
||
| 763 | 1003 | <td><input type="url" name="newsurl[]" value="<?php print $feed; ?>"/></td> |
| 764 | 1004 | <td> |
| 765 | 1005 | <select name="newslang[]"> |
| 766 | - <option value="en"<?php if ($lng == 'en') print ' selected'; ?>>English</option> |
|
| 767 | - <option value="fr"<?php if ($lng == 'fr') print ' selected'; ?>>French</option> |
|
| 1006 | + <option value="en"<?php if ($lng == 'en') { |
|
| 1007 | + print ' selected'; |
|
| 1008 | +} |
|
| 1009 | +?>>English</option> |
|
| 1010 | + <option value="fr"<?php if ($lng == 'fr') { |
|
| 1011 | + print ' selected'; |
|
| 1012 | +} |
|
| 1013 | +?>>French</option> |
|
| 768 | 1014 | </select> |
| 769 | 1015 | </td> |
| 770 | 1016 | <td> |
| 771 | 1017 | <select name="newstype[]"> |
| 772 | - <option value="global"<?php if ($type == 'global') print ' selected'; ?>>Global</option> |
|
| 773 | - <option value="aircraft"<?php if ($type == 'aircraft') print ' selected'; ?>>Aircraft</option> |
|
| 774 | - <option value="marine"<?php if ($type == 'marine') print ' selected'; ?>>Marine</option> |
|
| 775 | - <option value="tracker"<?php if ($type == 'tracker') print ' selected'; ?>>Tracker</option> |
|
| 776 | - <option value="satellite"<?php if ($type == 'Satellite') print ' selected'; ?>>Satellite</option> |
|
| 1018 | + <option value="global"<?php if ($type == 'global') { |
|
| 1019 | + print ' selected'; |
|
| 1020 | +} |
|
| 1021 | +?>>Global</option> |
|
| 1022 | + <option value="aircraft"<?php if ($type == 'aircraft') { |
|
| 1023 | + print ' selected'; |
|
| 1024 | +} |
|
| 1025 | +?>>Aircraft</option> |
|
| 1026 | + <option value="marine"<?php if ($type == 'marine') { |
|
| 1027 | + print ' selected'; |
|
| 1028 | +} |
|
| 1029 | +?>>Marine</option> |
|
| 1030 | + <option value="tracker"<?php if ($type == 'tracker') { |
|
| 1031 | + print ' selected'; |
|
| 1032 | +} |
|
| 1033 | +?>>Tracker</option> |
|
| 1034 | + <option value="satellite"<?php if ($type == 'Satellite') { |
|
| 1035 | + print ' selected'; |
|
| 1036 | +} |
|
| 1037 | +?>>Satellite</option> |
|
| 777 | 1038 | </select> |
| 778 | 1039 | </td> |
| 779 | 1040 | <td><input type="button" value="Delete" onclick="deleteRowNews(this)" /> <input type="button" value="Add" onclick="insRowNews()" /></td> |
@@ -857,7 +1118,10 @@ discard block |
||
| 857 | 1118 | </p> |
| 858 | 1119 | <p> |
| 859 | 1120 | <label for="corsproxy">CORS proxy</label> |
| 860 | - <input type="text" name="corsproxy" id="corsproxy" value="<?php if (isset($globalCORSproxy)) print $globalCORSproxy; else print 'https://galvanize-cors-proxy.herokuapp.com/' ?>" /> |
|
| 1121 | + <input type="text" name="corsproxy" id="corsproxy" value="<?php if (isset($globalCORSproxy)) { |
|
| 1122 | + print $globalCORSproxy; |
|
| 1123 | +} else { |
|
| 1124 | + print 'https://galvanize-cors-proxy.herokuapp.com/' ?>" /> |
|
| 861 | 1125 | <p class="help-block">CORS proxy used for some WMS servers</p> |
| 862 | 1126 | </p> |
| 863 | 1127 | <!-- |
@@ -920,13 +1184,18 @@ discard block |
||
| 920 | 1184 | <div id="schedules_options"> |
| 921 | 1185 | <p> |
| 922 | 1186 | <label for="britishairways">British Airways API Key</label> |
| 923 | - <input type="text" name="britishairways" id="britishairways" value="<?php if (isset($globalBritishAirwaysKey)) print $globalBritishAirwaysKey; ?>" /> |
|
| 1187 | + <input type="text" name="britishairways" id="britishairways" value="<?php if (isset($globalBritishAirwaysKey)) print $globalBritishAirwaysKey; |
|
| 1188 | +} |
|
| 1189 | +?>" /> |
|
| 924 | 1190 | <p class="help-block">Register an account on <a href="https://developer.ba.com/">https://developer.ba.com/</a></p> |
| 925 | 1191 | </p> |
| 926 | 1192 | <!-- |
| 927 | 1193 | <p> |
| 928 | 1194 | <label for="transavia">Transavia Test API Consumer Key</label> |
| 929 | - <input type="text" name="transavia" id="transavia" value="<?php if (isset($globalTransaviaKey)) print $globalTransaviaKey; ?>" /> |
|
| 1195 | + <input type="text" name="transavia" id="transavia" value="<?php if (isset($globalTransaviaKey)) { |
|
| 1196 | + print $globalTransaviaKey; |
|
| 1197 | +} |
|
| 1198 | +?>" /> |
|
| 930 | 1199 | <p class="help-block">Register an account on <a href="https://developer.transavia.com">https://developer.transavia.com</a></p> |
| 931 | 1200 | </p> |
| 932 | 1201 | --> |
@@ -935,10 +1204,16 @@ discard block |
||
| 935 | 1204 | <b>Lufthansa API Key</b> |
| 936 | 1205 | <p> |
| 937 | 1206 | <label for="lufthansakey">Key</label> |
| 938 | - <input type="text" name="lufthansakey" id="lufthansakey" value="<?php if (isset($globalLufthansaKey['key'])) print $globalLufthansaKey['key']; ?>" /> |
|
| 1207 | + <input type="text" name="lufthansakey" id="lufthansakey" value="<?php if (isset($globalLufthansaKey['key'])) { |
|
| 1208 | + print $globalLufthansaKey['key']; |
|
| 1209 | +} |
|
| 1210 | +?>" /> |
|
| 939 | 1211 | </p><p> |
| 940 | 1212 | <label for="lufthansasecret">Secret</label> |
| 941 | - <input type="text" name="lufthansasecret" id="lufthansasecret" value="<?php if (isset($globalLufthansaKey['secret'])) print $globalLufthansaKey['secret']; ?>" /> |
|
| 1213 | + <input type="text" name="lufthansasecret" id="lufthansasecret" value="<?php if (isset($globalLufthansaKey['secret'])) { |
|
| 1214 | + print $globalLufthansaKey['secret']; |
|
| 1215 | +} |
|
| 1216 | +?>" /> |
|
| 942 | 1217 | </p> |
| 943 | 1218 | </div> |
| 944 | 1219 | <p class="help-block">Register an account on <a href="https://developer.lufthansa.com/page">https://developer.lufthansa.com/page</a></p> |
@@ -948,11 +1223,17 @@ discard block |
||
| 948 | 1223 | <b>FlightAware API Key</b> |
| 949 | 1224 | <p> |
| 950 | 1225 | <label for="flightawareusername">Username</label> |
| 951 | - <input type="text" name="flightawareusername" id="flightawareusername" value="<?php if (isset($globalFlightAwareUsername)) print $globalFlightAwareUsername; ?>" /> |
|
| 1226 | + <input type="text" name="flightawareusername" id="flightawareusername" value="<?php if (isset($globalFlightAwareUsername)) { |
|
| 1227 | + print $globalFlightAwareUsername; |
|
| 1228 | +} |
|
| 1229 | +?>" /> |
|
| 952 | 1230 | </p> |
| 953 | 1231 | <p> |
| 954 | 1232 | <label for="flightawarepassword">API key</label> |
| 955 | - <input type="text" name="flightawarepassword" id="flightawarepassword" value="<?php if (isset($globalFlightAwarePassword)) print $globalFlightAwarePassword; ?>" /> |
|
| 1233 | + <input type="text" name="flightawarepassword" id="flightawarepassword" value="<?php if (isset($globalFlightAwarePassword)) { |
|
| 1234 | + print $globalFlightAwarePassword; |
|
| 1235 | +} |
|
| 1236 | +?>" /> |
|
| 956 | 1237 | </p> |
| 957 | 1238 | </div> |
| 958 | 1239 | <p class="help-block">Register an account on <a href="https://www.flightaware.com/">https://www.flightaware.com/</a></p> |
@@ -969,10 +1250,22 @@ discard block |
||
| 969 | 1250 | <p> |
| 970 | 1251 | <label for="mapmatchingsource">Map Matching source</label> |
| 971 | 1252 | <select name="mapmatchingsource" id="mapmatchingsource"> |
| 972 | - <option value="fam" <?php if ((isset($globalMapMatchingSource) && $globalMapMatchingSource == 'fam') || !isset($globalMatchingSource)) print 'selected="selected" '; ?>>FlightAirMap Map Matching</option> |
|
| 973 | - <option value="graphhopper" <?php if (isset($globalMapMatchingSource) && $globalMapMatchingSource == 'graphhopper') print 'selected="selected" '; ?>>GraphHopper</option> |
|
| 974 | - <option value="osmr" <?php if (isset($globalMapMatchingSource) && $globalMapMatchingSource == 'osmr') print 'selected="selected" '; ?>>OSMR</option> |
|
| 975 | - <option value="mapbox" <?php if (isset($globalMapMatchingSource) && $globalMapMatchingSource == 'mapbox') print 'selected="selected" '; ?>>Mapbox</option> |
|
| 1253 | + <option value="fam" <?php if ((isset($globalMapMatchingSource) && $globalMapMatchingSource == 'fam') || !isset($globalMatchingSource)) { |
|
| 1254 | + print 'selected="selected" '; |
|
| 1255 | +} |
|
| 1256 | +?>>FlightAirMap Map Matching</option> |
|
| 1257 | + <option value="graphhopper" <?php if (isset($globalMapMatchingSource) && $globalMapMatchingSource == 'graphhopper') { |
|
| 1258 | + print 'selected="selected" '; |
|
| 1259 | +} |
|
| 1260 | +?>>GraphHopper</option> |
|
| 1261 | + <option value="osmr" <?php if (isset($globalMapMatchingSource) && $globalMapMatchingSource == 'osmr') { |
|
| 1262 | + print 'selected="selected" '; |
|
| 1263 | +} |
|
| 1264 | +?>>OSMR</option> |
|
| 1265 | + <option value="mapbox" <?php if (isset($globalMapMatchingSource) && $globalMapMatchingSource == 'mapbox') { |
|
| 1266 | + print 'selected="selected" '; |
|
| 1267 | +} |
|
| 1268 | +?>>Mapbox</option> |
|
| 976 | 1269 | </select> |
| 977 | 1270 | <p class="help-block">Mapbox need the API Key defined in map section.</p> |
| 978 | 1271 | <p class="help-block">FlightAirMap Map Matching is free, without API key but limited to about 100 input points to keep fast results.</p> |
@@ -980,7 +1273,10 @@ discard block |
||
| 980 | 1273 | <br /> |
| 981 | 1274 | <p> |
| 982 | 1275 | <label for="graphhopper">GraphHopper API Key</label> |
| 983 | - <input type="text" name="graphhopper" id="graphhopper" value="<?php if (isset($globalGraphHopperKey)) print $globalGraphHopperKey; ?>" /> |
|
| 1276 | + <input type="text" name="graphhopper" id="graphhopper" value="<?php if (isset($globalGraphHopperKey)) { |
|
| 1277 | + print $globalGraphHopperKey; |
|
| 1278 | +} |
|
| 1279 | +?>" /> |
|
| 984 | 1280 | <p class="help-block">Register an account on <a href="https://www.graphhopper.com/">https://www.graphhopper.com/</a></p> |
| 985 | 1281 | </p> |
| 986 | 1282 | </div> |
@@ -998,7 +1294,10 @@ discard block |
||
| 998 | 1294 | </p> |
| 999 | 1295 | <p> |
| 1000 | 1296 | <label for="notamsource">URL of your feed from notaminfo.com</label> |
| 1001 | - <input type="text" name="notamsource" id="notamsource" value="<?php if (isset($globalNOTAMSource)) print $globalNOTAMSource; ?>" /> |
|
| 1297 | + <input type="text" name="notamsource" id="notamsource" value="<?php if (isset($globalNOTAMSource)) { |
|
| 1298 | + print $globalNOTAMSource; |
|
| 1299 | +} |
|
| 1300 | +?>" /> |
|
| 1002 | 1301 | <p class="help-block">If you want to use world NOTAM from FlightAirMap website, leave it blank</p> |
| 1003 | 1302 | </p> |
| 1004 | 1303 | <br /> |
@@ -1014,7 +1313,10 @@ discard block |
||
| 1014 | 1313 | <div id="metarsrc"> |
| 1015 | 1314 | <p> |
| 1016 | 1315 | <label for="metarsource">URL of your METAR source</label> |
| 1017 | - <input type="text" name="metarsource" id="metarsource" value="<?php if (isset($globalMETARurl)) print $globalMETARurl; ?>" /> |
|
| 1316 | + <input type="text" name="metarsource" id="metarsource" value="<?php if (isset($globalMETARurl)) { |
|
| 1317 | + print $globalMETARurl; |
|
| 1318 | +} |
|
| 1319 | +?>" /> |
|
| 1018 | 1320 | <p class="help-block">Use {icao} to specify where we replace by airport icao. ex : http://metar.vatsim.net/metar.php?id={icao}</p> |
| 1019 | 1321 | </p> |
| 1020 | 1322 | </div> |
@@ -1023,11 +1325,17 @@ discard block |
||
| 1023 | 1325 | <div id="podaac"> |
| 1024 | 1326 | <p> |
| 1025 | 1327 | <label for="podaccuser">PO.DAAC username (used for waves)</label> |
| 1026 | - <input type="text" name="podaccuser" id="podaccuser" value="<?php if (isset($globalPODAACuser)) print $globalPODAACuser; ?>" /> |
|
| 1328 | + <input type="text" name="podaccuser" id="podaccuser" value="<?php if (isset($globalPODAACuser)) { |
|
| 1329 | + print $globalPODAACuser; |
|
| 1330 | +} |
|
| 1331 | +?>" /> |
|
| 1027 | 1332 | </p> |
| 1028 | 1333 | <p> |
| 1029 | 1334 | <label for="podaccpass">PO.DAAC password</label> |
| 1030 | - <input type="text" name="podaccpass" id="podaccpass" value="<?php if (isset($globalPODAACpass)) print $globalPODAACpass; ?>" /> |
|
| 1335 | + <input type="text" name="podaccpass" id="podaccpass" value="<?php if (isset($globalPODAACpass)) { |
|
| 1336 | + print $globalPODAACpass; |
|
| 1337 | +} |
|
| 1338 | +?>" /> |
|
| 1031 | 1339 | </p> |
| 1032 | 1340 | <p class="help-block">Register an account on <a href="https://podaac-tools.jpl.nasa.gov/drive/">https://podaac-tools.jpl.nasa.gov/drive/</a>, an encoded password is available on this page after registration (not the same as the one used for registration).</p> |
| 1033 | 1341 | </div> |
@@ -1035,7 +1343,10 @@ discard block |
||
| 1035 | 1343 | --> |
| 1036 | 1344 | <p> |
| 1037 | 1345 | <label for="bitly">Bit.ly access token api (used in search page)</label> |
| 1038 | - <input type="text" name="bitly" id="bitly" value="<?php if (isset($globalBitlyAccessToken)) print $globalBitlyAccessToken; ?>" /> |
|
| 1346 | + <input type="text" name="bitly" id="bitly" value="<?php if (isset($globalBitlyAccessToken)) { |
|
| 1347 | + print $globalBitlyAccessToken; |
|
| 1348 | +} |
|
| 1349 | +?>" /> |
|
| 1039 | 1350 | </p> |
| 1040 | 1351 | <br /> |
| 1041 | 1352 | <p> |
@@ -1051,11 +1362,26 @@ discard block |
||
| 1051 | 1362 | <p> |
| 1052 | 1363 | <label for="geoid_source">Geoid Source</label> |
| 1053 | 1364 | <select name="geoid_source" id="geoid_source"> |
| 1054 | - <option value="egm96-15"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm96-15') print ' selected="selected"'; ?>>EGM96 15' (2.1MB)</option> |
|
| 1055 | - <option value="egm96-5"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm96-5') print ' selected="selected"'; ?>>EGM96 5' (19MB)</option> |
|
| 1056 | - <option value="egm2008-5"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm2008-5') print ' selected="selected"'; ?>>EGM2008 5' (19MB)</option> |
|
| 1057 | - <option value="egm2008-2_5"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm2008-2_5') print ' selected="selected"'; ?>>EGM2008 2.5' (75MB)</option> |
|
| 1058 | - <option value="egm2008-1"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm2008-1') print ' selected="selected"'; ?>>EGM2008 1' (470MB)</option> |
|
| 1365 | + <option value="egm96-15"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm96-15') { |
|
| 1366 | + print ' selected="selected"'; |
|
| 1367 | +} |
|
| 1368 | +?>>EGM96 15' (2.1MB)</option> |
|
| 1369 | + <option value="egm96-5"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm96-5') { |
|
| 1370 | + print ' selected="selected"'; |
|
| 1371 | +} |
|
| 1372 | +?>>EGM96 5' (19MB)</option> |
|
| 1373 | + <option value="egm2008-5"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm2008-5') { |
|
| 1374 | + print ' selected="selected"'; |
|
| 1375 | +} |
|
| 1376 | +?>>EGM2008 5' (19MB)</option> |
|
| 1377 | + <option value="egm2008-2_5"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm2008-2_5') { |
|
| 1378 | + print ' selected="selected"'; |
|
| 1379 | +} |
|
| 1380 | +?>>EGM2008 2.5' (75MB)</option> |
|
| 1381 | + <option value="egm2008-1"<?php if (isset($globalGeoidSource) && $globalGeoidSource == 'egm2008-1') { |
|
| 1382 | + print ' selected="selected"'; |
|
| 1383 | +} |
|
| 1384 | +?>>EGM2008 1' (470MB)</option> |
|
| 1059 | 1385 | </select> |
| 1060 | 1386 | <p class="help-block">The geoid is approximated by an "earth gravity model" (EGM).</p> |
| 1061 | 1387 | </p> |
@@ -1077,7 +1403,12 @@ discard block |
||
| 1077 | 1403 | </p> |
| 1078 | 1404 | <p> |
| 1079 | 1405 | <label for="archivemonths">Generate statistics, delete or put in archive flights older than xx months</label> |
| 1080 | - <input type="number" name="archivemonths" id="archivemonths" value="<?php if (isset($globalArchiveMonths)) print $globalArchiveMonths; else echo '1'; ?>" /> |
|
| 1406 | + <input type="number" name="archivemonths" id="archivemonths" value="<?php if (isset($globalArchiveMonths)) { |
|
| 1407 | + print $globalArchiveMonths; |
|
| 1408 | +} else { |
|
| 1409 | + echo '1'; |
|
| 1410 | +} |
|
| 1411 | +?>" /> |
|
| 1081 | 1412 | <p class="help-block">0 to disable, delete old flight if <i>Archive all flights data</i> is disabled</p> |
| 1082 | 1413 | </p> |
| 1083 | 1414 | <p> |
@@ -1087,12 +1418,22 @@ discard block |
||
| 1087 | 1418 | </p> |
| 1088 | 1419 | <p> |
| 1089 | 1420 | <label for="archivekeepmonths">Keep flights data for xx months in archive</label> |
| 1090 | - <input type="number" name="archivekeepmonths" id="archivekeepmonths" value="<?php if (isset($globalArchiveKeepMonths)) print $globalArchiveKeepMonths; else echo '1'; ?>" /> |
|
| 1421 | + <input type="number" name="archivekeepmonths" id="archivekeepmonths" value="<?php if (isset($globalArchiveKeepMonths)) { |
|
| 1422 | + print $globalArchiveKeepMonths; |
|
| 1423 | +} else { |
|
| 1424 | + echo '1'; |
|
| 1425 | +} |
|
| 1426 | +?>" /> |
|
| 1091 | 1427 | <p class="help-block">0 to disable</p> |
| 1092 | 1428 | </p> |
| 1093 | 1429 | <p> |
| 1094 | 1430 | <label for="archivekeeptrackmonths">Keep flights track data for xx months in archive</label> |
| 1095 | - <input type="number" name="archivekeeptrackmonths" id="archivekeeptrackmonths" value="<?php if (isset($globalArchiveKeepTrackMonths)) print $globalArchiveKeepTrackMonths; else echo '1'; ?>" /> |
|
| 1431 | + <input type="number" name="archivekeeptrackmonths" id="archivekeeptrackmonths" value="<?php if (isset($globalArchiveKeepTrackMonths)) { |
|
| 1432 | + print $globalArchiveKeepTrackMonths; |
|
| 1433 | +} else { |
|
| 1434 | + echo '1'; |
|
| 1435 | +} |
|
| 1436 | +?>" /> |
|
| 1096 | 1437 | <p class="help-block">0 to disable, should be less or egal to <i>Keep flights data</i> value</p> |
| 1097 | 1438 | </p> |
| 1098 | 1439 | <br /> |
@@ -1102,7 +1443,12 @@ discard block |
||
| 1102 | 1443 | <p class="help-block">Uncheck if the script is running as cron job. You should always run it as daemon when it's possible.</p> |
| 1103 | 1444 | <div id="cronends"> |
| 1104 | 1445 | <label for="cronend">Run script for xx seconds</label> |
| 1105 | - <input type="number" name="cronend" id="cronend" value="<?php if (isset($globalCronEnd)) print $globalCronEnd; else print '0'; ?>" /> |
|
| 1446 | + <input type="number" name="cronend" id="cronend" value="<?php if (isset($globalCronEnd)) { |
|
| 1447 | + print $globalCronEnd; |
|
| 1448 | +} else { |
|
| 1449 | + print '0'; |
|
| 1450 | +} |
|
| 1451 | +?>" /> |
|
| 1106 | 1452 | <p class="help-block">Set to 0 to disable. Should be disabled if source is URL.</p> |
| 1107 | 1453 | </div> |
| 1108 | 1454 | </p> |
@@ -1161,20 +1507,40 @@ discard block |
||
| 1161 | 1507 | <br /> |
| 1162 | 1508 | <p> |
| 1163 | 1509 | <label for="refresh">Show flights detected since xxx seconds</label> |
| 1164 | - <input type="number" name="refresh" id="refresh" value="<?php if (isset($globalLiveInterval)) echo $globalLiveInterval; else echo '200'; ?>" /> |
|
| 1510 | + <input type="number" name="refresh" id="refresh" value="<?php if (isset($globalLiveInterval)) { |
|
| 1511 | + echo $globalLiveInterval; |
|
| 1512 | +} else { |
|
| 1513 | + echo '200'; |
|
| 1514 | +} |
|
| 1515 | +?>" /> |
|
| 1165 | 1516 | </p> |
| 1166 | 1517 | <p> |
| 1167 | 1518 | <label for="maprefresh">Live map refresh (in seconds)</label> |
| 1168 | - <input type="number" name="maprefresh" id="maprefresh" value="<?php if (isset($globalMapRefresh)) echo $globalMapRefresh; else echo '30'; ?>" /> |
|
| 1519 | + <input type="number" name="maprefresh" id="maprefresh" value="<?php if (isset($globalMapRefresh)) { |
|
| 1520 | + echo $globalMapRefresh; |
|
| 1521 | +} else { |
|
| 1522 | + echo '30'; |
|
| 1523 | +} |
|
| 1524 | +?>" /> |
|
| 1169 | 1525 | </p> |
| 1170 | 1526 | <p> |
| 1171 | 1527 | <label for="mapidle">Map idle timeout (in minutes)</label> |
| 1172 | - <input type="number" name="mapidle" id="mapidle" value="<?php if (isset($globalMapIdleTimeout)) echo $globalMapIdleTimeout; else echo '30'; ?>" /> |
|
| 1528 | + <input type="number" name="mapidle" id="mapidle" value="<?php if (isset($globalMapIdleTimeout)) { |
|
| 1529 | + echo $globalMapIdleTimeout; |
|
| 1530 | +} else { |
|
| 1531 | + echo '30'; |
|
| 1532 | +} |
|
| 1533 | +?>" /> |
|
| 1173 | 1534 | <p class="help-block">0 to disable</p> |
| 1174 | 1535 | </p> |
| 1175 | 1536 | <p> |
| 1176 | 1537 | <label for="minfetch">HTTP/file source fetch every xxx seconds</label> |
| 1177 | - <input type="number" name="minfetch" id="minfetch" value="<?php if (isset($globalMinFetch)) echo $globalMinFetch; else echo '20'; ?>" /> |
|
| 1538 | + <input type="number" name="minfetch" id="minfetch" value="<?php if (isset($globalMinFetch)) { |
|
| 1539 | + echo $globalMinFetch; |
|
| 1540 | +} else { |
|
| 1541 | + echo '20'; |
|
| 1542 | +} |
|
| 1543 | +?>" /> |
|
| 1178 | 1544 | </p> |
| 1179 | 1545 | <p> |
| 1180 | 1546 | <label for="bbox">Only display flights that we can see on screen (bounding box)</label> |
@@ -1193,12 +1559,20 @@ discard block |
||
| 1193 | 1559 | <br /> |
| 1194 | 1560 | <p> |
| 1195 | 1561 | <label for="closestmindist">Distance to airport set as arrival (in km)</label> |
| 1196 | - <input type="number" name="closestmindist" id="closestmindist" value="<?php if (isset($globalClosestMinDist)) echo $globalClosestMinDist; else echo '50'; ?>" /> |
|
| 1562 | + <input type="number" name="closestmindist" id="closestmindist" value="<?php if (isset($globalClosestMinDist)) { |
|
| 1563 | + echo $globalClosestMinDist; |
|
| 1564 | +} else { |
|
| 1565 | + echo '50'; |
|
| 1566 | +} |
|
| 1567 | +?>" /> |
|
| 1197 | 1568 | </p> |
| 1198 | 1569 | <br /> |
| 1199 | 1570 | <p> |
| 1200 | 1571 | <label for="aircraftsize">Size of aircraft icon on map (default to 30px if zoom > 7 else 15px), empty to default</label> |
| 1201 | - <input type="number" name="aircraftsize" id="aircraftsize" value="<?php if (isset($globalAircraftSize)) echo $globalAircraftSize;?>" /> |
|
| 1572 | + <input type="number" name="aircraftsize" id="aircraftsize" value="<?php if (isset($globalAircraftSize)) { |
|
| 1573 | + echo $globalAircraftSize; |
|
| 1574 | +} |
|
| 1575 | +?>" /> |
|
| 1202 | 1576 | </p> |
| 1203 | 1577 | <br /> |
| 1204 | 1578 | <p> |
@@ -1217,22 +1591,42 @@ discard block |
||
| 1217 | 1591 | <br /> |
| 1218 | 1592 | <p> |
| 1219 | 1593 | <label for="aircrafticoncolor">Color of aircraft icon on map</label> |
| 1220 | - <input type="color" name="aircrafticoncolor" id="aircrafticoncolor" value="#<?php if (isset($globalAircraftIconColor)) echo $globalAircraftIconColor; else echo '1a3151'; ?>" /> |
|
| 1594 | + <input type="color" name="aircrafticoncolor" id="aircrafticoncolor" value="#<?php if (isset($globalAircraftIconColor)) { |
|
| 1595 | + echo $globalAircraftIconColor; |
|
| 1596 | +} else { |
|
| 1597 | + echo '1a3151'; |
|
| 1598 | +} |
|
| 1599 | +?>" /> |
|
| 1221 | 1600 | </p> |
| 1222 | 1601 | <br /> |
| 1223 | 1602 | <p> |
| 1224 | 1603 | <label for="marineiconcolor">Color of marine icon on map</label> |
| 1225 | - <input type="color" name="marineiconcolor" id="marineiconcolor" value="#<?php if (isset($globalMarineIconColor)) echo $globalMarineIconColor; else echo '43d1d8'; ?>" /> |
|
| 1604 | + <input type="color" name="marineiconcolor" id="marineiconcolor" value="#<?php if (isset($globalMarineIconColor)) { |
|
| 1605 | + echo $globalMarineIconColor; |
|
| 1606 | +} else { |
|
| 1607 | + echo '43d1d8'; |
|
| 1608 | +} |
|
| 1609 | +?>" /> |
|
| 1226 | 1610 | </p> |
| 1227 | 1611 | <br /> |
| 1228 | 1612 | <p> |
| 1229 | 1613 | <label for="trackericoncolor">Color of tracker icon on map</label> |
| 1230 | - <input type="color" name="trackericoncolor" id="trackericoncolor" value="#<?php if (isset($globalTrackerIconColor)) echo $globalTrackerIconColor; else echo '1a3151'; ?>" /> |
|
| 1614 | + <input type="color" name="trackericoncolor" id="trackericoncolor" value="#<?php if (isset($globalTrackerIconColor)) { |
|
| 1615 | + echo $globalTrackerIconColor; |
|
| 1616 | +} else { |
|
| 1617 | + echo '1a3151'; |
|
| 1618 | +} |
|
| 1619 | +?>" /> |
|
| 1231 | 1620 | </p> |
| 1232 | 1621 | <br /> |
| 1233 | 1622 | <p> |
| 1234 | 1623 | <label for="satelliteiconcolor">Color of satellite icon on map</label> |
| 1235 | - <input type="color" name="satelliteiconcolor" id="satelliteiconcolor" value="#<?php if (isset($globalSatelliteIconColor)) echo $globalSatelliteIconColor; else echo '1a3151'; ?>" /> |
|
| 1624 | + <input type="color" name="satelliteiconcolor" id="satelliteiconcolor" value="#<?php if (isset($globalSatelliteIconColor)) { |
|
| 1625 | + echo $globalSatelliteIconColor; |
|
| 1626 | +} else { |
|
| 1627 | + echo '1a3151'; |
|
| 1628 | +} |
|
| 1629 | +?>" /> |
|
| 1236 | 1630 | </p> |
| 1237 | 1631 | <?php |
| 1238 | 1632 | if (!is_writable('../cache')) { |
@@ -1256,14 +1650,27 @@ discard block |
||
| 1256 | 1650 | <p> |
| 1257 | 1651 | <label for="airportzoom">Zoom level minimum to see airports icons</label> |
| 1258 | 1652 | <div class="range"> |
| 1259 | - <input type="range" name="airportzoom" id="airportzoom" value="<?php if (isset($globalAirportZoom)) echo $globalAirportZoom; else echo '7'; ?>" /> |
|
| 1260 | - <output id="range"><?php if (isset($globalAirportZoom)) echo $globalAirportZoom; else echo '7'; ?></output> |
|
| 1653 | + <input type="range" name="airportzoom" id="airportzoom" value="<?php if (isset($globalAirportZoom)) { |
|
| 1654 | + echo $globalAirportZoom; |
|
| 1655 | +} else { |
|
| 1656 | + echo '7'; |
|
| 1657 | +} |
|
| 1658 | +?>" /> |
|
| 1659 | + <output id="range"><?php if (isset($globalAirportZoom)) { |
|
| 1660 | + echo $globalAirportZoom; |
|
| 1661 | +} else { |
|
| 1662 | + echo '7'; |
|
| 1663 | +} |
|
| 1664 | +?></output> |
|
| 1261 | 1665 | </div> |
| 1262 | 1666 | </p> |
| 1263 | 1667 | <br /> |
| 1264 | 1668 | <p> |
| 1265 | 1669 | <label for="customcss">Custom CSS web path</label> |
| 1266 | - <input type="text" name="customcss" id="customcss" value="<?php if (isset($globalCustomCSS)) echo $globalCustomCSS; ?>" /> |
|
| 1670 | + <input type="text" name="customcss" id="customcss" value="<?php if (isset($globalCustomCSS)) { |
|
| 1671 | + echo $globalCustomCSS; |
|
| 1672 | +} |
|
| 1673 | +?>" /> |
|
| 1267 | 1674 | </p> |
| 1268 | 1675 | </fieldset> |
| 1269 | 1676 | <input type="submit" name="submit" value="Create/Update database & write setup" /> |
@@ -1293,8 +1700,12 @@ discard block |
||
| 1293 | 1700 | $dbhost = filter_input(INPUT_POST,'dbhost',FILTER_SANITIZE_STRING); |
| 1294 | 1701 | $dbport = filter_input(INPUT_POST,'dbport',FILTER_SANITIZE_STRING); |
| 1295 | 1702 | |
| 1296 | - if ($dbtype == 'mysql' && !extension_loaded('pdo_mysql')) $error .= 'Mysql driver for PDO must be loaded'; |
|
| 1297 | - if ($dbtype == 'pgsql' && !extension_loaded('pdo_pgsql')) $error .= 'PosgreSQL driver for PDO must be loaded'; |
|
| 1703 | + if ($dbtype == 'mysql' && !extension_loaded('pdo_mysql')) { |
|
| 1704 | + $error .= 'Mysql driver for PDO must be loaded'; |
|
| 1705 | + } |
|
| 1706 | + if ($dbtype == 'pgsql' && !extension_loaded('pdo_pgsql')) { |
|
| 1707 | + $error .= 'PosgreSQL driver for PDO must be loaded'; |
|
| 1708 | + } |
|
| 1298 | 1709 | |
| 1299 | 1710 | $_SESSION['database_root'] = $dbroot; |
| 1300 | 1711 | $_SESSION['database_rootpass'] = $dbrootpass; |
@@ -1373,15 +1784,23 @@ discard block |
||
| 1373 | 1784 | $source_city = $_POST['source_city']; |
| 1374 | 1785 | $source_country = $_POST['source_country']; |
| 1375 | 1786 | $source_ref = $_POST['source_ref']; |
| 1376 | - if (isset($source_id)) $source_id = $_POST['source_id']; |
|
| 1377 | - else $source_id = array(); |
|
| 1787 | + if (isset($source_id)) { |
|
| 1788 | + $source_id = $_POST['source_id']; |
|
| 1789 | + } else { |
|
| 1790 | + $source_id = array(); |
|
| 1791 | + } |
|
| 1378 | 1792 | |
| 1379 | 1793 | $sources = array(); |
| 1380 | 1794 | foreach ($source_name as $keys => $name) { |
| 1381 | - if (isset($source_id[$keys])) $sources[] = array('name' => $name,'latitude' => $source_latitude[$keys],'longitude' => $source_longitude[$keys],'altitude' => $source_altitude[$keys],'city' => $source_city[$keys],'country' => $source_country[$keys],'id' => $source_id[$keys],'source' => $source_ref[$keys]); |
|
| 1382 | - else $sources[] = array('name' => $name,'latitude' => $source_latitude[$keys],'longitude' => $source_longitude[$keys],'altitude' => $source_altitude[$keys],'city' => $source_city[$keys],'country' => $source_country[$keys],'source' => $source_ref[$keys]); |
|
| 1795 | + if (isset($source_id[$keys])) { |
|
| 1796 | + $sources[] = array('name' => $name,'latitude' => $source_latitude[$keys],'longitude' => $source_longitude[$keys],'altitude' => $source_altitude[$keys],'city' => $source_city[$keys],'country' => $source_country[$keys],'id' => $source_id[$keys],'source' => $source_ref[$keys]); |
|
| 1797 | + } else { |
|
| 1798 | + $sources[] = array('name' => $name,'latitude' => $source_latitude[$keys],'longitude' => $source_longitude[$keys],'altitude' => $source_altitude[$keys],'city' => $source_city[$keys],'country' => $source_country[$keys],'source' => $source_ref[$keys]); |
|
| 1799 | + } |
|
| 1800 | + } |
|
| 1801 | + if (count($sources) > 0) { |
|
| 1802 | + $_SESSION['sources'] = $sources; |
|
| 1383 | 1803 | } |
| 1384 | - if (count($sources) > 0) $_SESSION['sources'] = $sources; |
|
| 1385 | 1804 | |
| 1386 | 1805 | $newsurl = $_POST['newsurl']; |
| 1387 | 1806 | $newslng = $_POST['newslang']; |
@@ -1394,7 +1813,9 @@ discard block |
||
| 1394 | 1813 | $lng = $newslng[$newskey]; |
| 1395 | 1814 | if (isset($newsfeeds[$type][$lng])) { |
| 1396 | 1815 | $newsfeeds[$type][$lng] = array_merge($newsfeeds[$type][$lng],array($url)); |
| 1397 | - } else $newsfeeds[$type][$lng] = array($url); |
|
| 1816 | + } else { |
|
| 1817 | + $newsfeeds[$type][$lng] = array($url); |
|
| 1818 | + } |
|
| 1398 | 1819 | } |
| 1399 | 1820 | } |
| 1400 | 1821 | $settings = array_merge($settings,array('globalNewsFeeds' => $newsfeeds)); |
@@ -1419,17 +1840,29 @@ discard block |
||
| 1419 | 1840 | $datasource = filter_input(INPUT_POST,'datasource',FILTER_SANITIZE_STRING); |
| 1420 | 1841 | |
| 1421 | 1842 | $globalaircraft = filter_input(INPUT_POST,'globalaircraft',FILTER_SANITIZE_STRING); |
| 1422 | - if ($globalaircraft == 'aircraft') $settings = array_merge($settings,array('globalAircraft' => 'TRUE')); |
|
| 1423 | - else $settings = array_merge($settings,array('globalAircraft' => 'FALSE')); |
|
| 1843 | + if ($globalaircraft == 'aircraft') { |
|
| 1844 | + $settings = array_merge($settings,array('globalAircraft' => 'TRUE')); |
|
| 1845 | + } else { |
|
| 1846 | + $settings = array_merge($settings,array('globalAircraft' => 'FALSE')); |
|
| 1847 | + } |
|
| 1424 | 1848 | $globaltracker = filter_input(INPUT_POST,'globaltracker',FILTER_SANITIZE_STRING); |
| 1425 | - if ($globaltracker == 'tracker') $settings = array_merge($settings,array('globalTracker' => 'TRUE')); |
|
| 1426 | - else $settings = array_merge($settings,array('globalTracker' => 'FALSE')); |
|
| 1849 | + if ($globaltracker == 'tracker') { |
|
| 1850 | + $settings = array_merge($settings,array('globalTracker' => 'TRUE')); |
|
| 1851 | + } else { |
|
| 1852 | + $settings = array_merge($settings,array('globalTracker' => 'FALSE')); |
|
| 1853 | + } |
|
| 1427 | 1854 | $globalmarine = filter_input(INPUT_POST,'globalmarine',FILTER_SANITIZE_STRING); |
| 1428 | - if ($globalmarine == 'marine') $settings = array_merge($settings,array('globalMarine' => 'TRUE')); |
|
| 1429 | - else $settings = array_merge($settings,array('globalMarine' => 'FALSE')); |
|
| 1855 | + if ($globalmarine == 'marine') { |
|
| 1856 | + $settings = array_merge($settings,array('globalMarine' => 'TRUE')); |
|
| 1857 | + } else { |
|
| 1858 | + $settings = array_merge($settings,array('globalMarine' => 'FALSE')); |
|
| 1859 | + } |
|
| 1430 | 1860 | $globalsatellite = filter_input(INPUT_POST,'globalsatellite',FILTER_SANITIZE_STRING); |
| 1431 | - if ($globalsatellite == 'satellite') $settings = array_merge($settings,array('globalSatellite' => 'TRUE')); |
|
| 1432 | - else $settings = array_merge($settings,array('globalSatellite' => 'FALSE')); |
|
| 1861 | + if ($globalsatellite == 'satellite') { |
|
| 1862 | + $settings = array_merge($settings,array('globalSatellite' => 'TRUE')); |
|
| 1863 | + } else { |
|
| 1864 | + $settings = array_merge($settings,array('globalSatellite' => 'FALSE')); |
|
| 1865 | + } |
|
| 1433 | 1866 | |
| 1434 | 1867 | /* |
| 1435 | 1868 | $globalSBS1Hosts = array(); |
@@ -1451,23 +1884,37 @@ discard block |
||
| 1451 | 1884 | $name = $_POST['name']; |
| 1452 | 1885 | $format = $_POST['format']; |
| 1453 | 1886 | $timezones = $_POST['timezones']; |
| 1454 | - if (isset($_POST['sourcestats'])) $sourcestats = $_POST['sourcestats']; |
|
| 1455 | - else $sourcestats = array(); |
|
| 1456 | - if (isset($_POST['noarchive'])) $noarchive = $_POST['noarchive']; |
|
| 1457 | - else $noarchive = array(); |
|
| 1887 | + if (isset($_POST['sourcestats'])) { |
|
| 1888 | + $sourcestats = $_POST['sourcestats']; |
|
| 1889 | + } else { |
|
| 1890 | + $sourcestats = array(); |
|
| 1891 | + } |
|
| 1892 | + if (isset($_POST['noarchive'])) { |
|
| 1893 | + $noarchive = $_POST['noarchive']; |
|
| 1894 | + } else { |
|
| 1895 | + $noarchive = array(); |
|
| 1896 | + } |
|
| 1458 | 1897 | $gSources = array(); |
| 1459 | 1898 | $forcepilots = false; |
| 1460 | 1899 | foreach ($host as $key => $h) { |
| 1461 | - if (isset($sourcestats[$key]) && $sourcestats[$key] == 1) $cov = 'TRUE'; |
|
| 1462 | - else $cov = 'FALSE'; |
|
| 1463 | - if (isset($noarchive[$key]) && $noarchive[$key] == 1) $arch = 'TRUE'; |
|
| 1464 | - else $arch = 'FALSE'; |
|
| 1900 | + if (isset($sourcestats[$key]) && $sourcestats[$key] == 1) { |
|
| 1901 | + $cov = 'TRUE'; |
|
| 1902 | + } else { |
|
| 1903 | + $cov = 'FALSE'; |
|
| 1904 | + } |
|
| 1905 | + if (isset($noarchive[$key]) && $noarchive[$key] == 1) { |
|
| 1906 | + $arch = 'TRUE'; |
|
| 1907 | + } else { |
|
| 1908 | + $arch = 'FALSE'; |
|
| 1909 | + } |
|
| 1465 | 1910 | if (strpos($format[$key],'_callback')) { |
| 1466 | 1911 | $gSources[] = array('host' => $h, 'pass' => $port[$key],'name' => $name[$key],'format' => $format[$key],'sourcestats' => $cov,'noarchive' => $arch,'timezone' => $timezones[$key],'callback' => 'TRUE'); |
| 1467 | 1912 | } elseif ($format[$key] != 'auto' || ($h != '' || $name[$key] != '')) { |
| 1468 | 1913 | $gSources[] = array('host' => $h, 'port' => $port[$key],'name' => $name[$key],'format' => $format[$key],'sourcestats' => $cov,'noarchive' => $arch,'timezone' => $timezones[$key],'callback' => 'FALSE'); |
| 1469 | 1914 | } |
| 1470 | - if ($format[$key] == 'airwhere') $forcepilots = true; |
|
| 1915 | + if ($format[$key] == 'airwhere') { |
|
| 1916 | + $forcepilots = true; |
|
| 1917 | + } |
|
| 1471 | 1918 | } |
| 1472 | 1919 | $settings = array_merge($settings,array('globalSources' => $gSources)); |
| 1473 | 1920 | |
@@ -1503,7 +1950,9 @@ discard block |
||
| 1503 | 1950 | $zoidistance = filter_input(INPUT_POST,'zoidistance',FILTER_SANITIZE_NUMBER_INT); |
| 1504 | 1951 | if ($zoilatitude != '' && $zoilongitude != '' && $zoidistance != '') { |
| 1505 | 1952 | $settings = array_merge($settings,array('globalDistanceIgnore' => array('latitude' => $zoilatitude,'longitude' => $zoilongitude,'distance' => $zoidistance))); |
| 1506 | - } else $settings = array_merge($settings,array('globalDistanceIgnore' => array())); |
|
| 1953 | + } else { |
|
| 1954 | + $settings = array_merge($settings,array('globalDistanceIgnore' => array())); |
|
| 1955 | + } |
|
| 1507 | 1956 | |
| 1508 | 1957 | $refresh = filter_input(INPUT_POST,'refresh',FILTER_SANITIZE_NUMBER_INT); |
| 1509 | 1958 | $settings = array_merge($settings,array('globalLiveInterval' => $refresh)); |
@@ -1544,7 +1993,9 @@ discard block |
||
| 1544 | 1993 | |
| 1545 | 1994 | // Create in settings.php keys not yet configurable if not already here |
| 1546 | 1995 | //if (!isset($globalImageBingKey)) $settings = array_merge($settings,array('globalImageBingKey' => '')); |
| 1547 | - if (!isset($globalDebug)) $settings = array_merge($settings,array('globalDebug' => 'TRUE')); |
|
| 1996 | + if (!isset($globalDebug)) { |
|
| 1997 | + $settings = array_merge($settings,array('globalDebug' => 'TRUE')); |
|
| 1998 | + } |
|
| 1548 | 1999 | |
| 1549 | 2000 | $resetyearstats = filter_input(INPUT_POST,'resetyearstats',FILTER_SANITIZE_STRING); |
| 1550 | 2001 | if ($resetyearstats == 'resetyearstats') { |
@@ -1587,37 +2038,56 @@ discard block |
||
| 1587 | 2038 | } |
| 1588 | 2039 | */ |
| 1589 | 2040 | $settings = array_merge($settings,array('globalFlightAware' => 'FALSE')); |
| 1590 | - if ($globalsbs == 'sbs') $settings = array_merge($settings,array('globalSBS1' => 'TRUE')); |
|
| 1591 | - else $settings = array_merge($settings,array('globalSBS1' => 'FALSE')); |
|
| 1592 | - if ($globalaprs == 'aprs') $settings = array_merge($settings,array('globalAPRS' => 'TRUE')); |
|
| 1593 | - else $settings = array_merge($settings,array('globalAPRS' => 'FALSE')); |
|
| 2041 | + if ($globalsbs == 'sbs') { |
|
| 2042 | + $settings = array_merge($settings,array('globalSBS1' => 'TRUE')); |
|
| 2043 | + } else { |
|
| 2044 | + $settings = array_merge($settings,array('globalSBS1' => 'FALSE')); |
|
| 2045 | + } |
|
| 2046 | + if ($globalaprs == 'aprs') { |
|
| 2047 | + $settings = array_merge($settings,array('globalAPRS' => 'TRUE')); |
|
| 2048 | + } else { |
|
| 2049 | + $settings = array_merge($settings,array('globalAPRS' => 'FALSE')); |
|
| 2050 | + } |
|
| 1594 | 2051 | $va = false; |
| 1595 | 2052 | if ($globalivao == 'ivao') { |
| 1596 | 2053 | $settings = array_merge($settings,array('globalIVAO' => 'TRUE')); |
| 1597 | 2054 | $va = true; |
| 1598 | - } else $settings = array_merge($settings,array('globalIVAO' => 'FALSE')); |
|
| 2055 | + } else { |
|
| 2056 | + $settings = array_merge($settings,array('globalIVAO' => 'FALSE')); |
|
| 2057 | + } |
|
| 1599 | 2058 | if ($globalvatsim == 'vatsim') { |
| 1600 | 2059 | $settings = array_merge($settings,array('globalVATSIM' => 'TRUE')); |
| 1601 | 2060 | $va = true; |
| 1602 | - } else $settings = array_merge($settings,array('globalVATSIM' => 'FALSE')); |
|
| 2061 | + } else { |
|
| 2062 | + $settings = array_merge($settings,array('globalVATSIM' => 'FALSE')); |
|
| 2063 | + } |
|
| 1603 | 2064 | if ($globalphpvms == 'phpvms') { |
| 1604 | 2065 | $settings = array_merge($settings,array('globalphpVMS' => 'TRUE')); |
| 1605 | 2066 | $va = true; |
| 1606 | - } else $settings = array_merge($settings,array('globalphpVMS' => 'FALSE')); |
|
| 2067 | + } else { |
|
| 2068 | + $settings = array_merge($settings,array('globalphpVMS' => 'FALSE')); |
|
| 2069 | + } |
|
| 1607 | 2070 | if ($globalvam == 'vam') { |
| 1608 | 2071 | $settings = array_merge($settings,array('globalVAM' => 'TRUE')); |
| 1609 | 2072 | $va = true; |
| 1610 | - } else $settings = array_merge($settings,array('globalVAM' => 'FALSE')); |
|
| 2073 | + } else { |
|
| 2074 | + $settings = array_merge($settings,array('globalVAM' => 'FALSE')); |
|
| 2075 | + } |
|
| 1611 | 2076 | if ($va) { |
| 1612 | 2077 | $settings = array_merge($settings,array('globalSchedulesFetch' => 'FALSE','globalTranslationFetch' => 'FALSE')); |
| 1613 | - } else $settings = array_merge($settings,array('globalSchedulesFetch' => 'TRUE','globalTranslationFetch' => 'TRUE')); |
|
| 2078 | + } else { |
|
| 2079 | + $settings = array_merge($settings,array('globalSchedulesFetch' => 'TRUE','globalTranslationFetch' => 'TRUE')); |
|
| 2080 | + } |
|
| 1614 | 2081 | if ($globalva == 'va' || $va) { |
| 1615 | 2082 | $settings = array_merge($settings,array('globalVA' => 'TRUE')); |
| 1616 | 2083 | $settings = array_merge($settings,array('globalUsePilot' => 'TRUE','globalUseOwner' => 'FALSE')); |
| 1617 | 2084 | } else { |
| 1618 | 2085 | $settings = array_merge($settings,array('globalVA' => 'FALSE')); |
| 1619 | - if ($forcepilots) $settings = array_merge($settings,array('globalUsePilot' => 'TRUE','globalUseOwner' => 'FALSE')); |
|
| 1620 | - else $settings = array_merge($settings,array('globalUsePilot' => 'FALSE','globalUseOwner' => 'TRUE')); |
|
| 2086 | + if ($forcepilots) { |
|
| 2087 | + $settings = array_merge($settings,array('globalUsePilot' => 'TRUE','globalUseOwner' => 'FALSE')); |
|
| 2088 | + } else { |
|
| 2089 | + $settings = array_merge($settings,array('globalUsePilot' => 'FALSE','globalUseOwner' => 'TRUE')); |
|
| 2090 | + } |
|
| 1621 | 2091 | } |
| 1622 | 2092 | if ($globalvm == 'vm') { |
| 1623 | 2093 | $settings = array_merge($settings,array('globalVM' => 'TRUE')); |
@@ -1877,7 +2347,9 @@ discard block |
||
| 1877 | 2347 | $graphhopper = filter_input(INPUT_POST,'graphhopper',FILTER_SANITIZE_STRING); |
| 1878 | 2348 | $settings = array_merge($settings,array('globalGraphHopperKey' => $graphhopper)); |
| 1879 | 2349 | |
| 1880 | - if (!isset($globalTransaction)) $settings = array_merge($settings,array('globalTransaction' => 'TRUE')); |
|
| 2350 | + if (!isset($globalTransaction)) { |
|
| 2351 | + $settings = array_merge($settings,array('globalTransaction' => 'TRUE')); |
|
| 2352 | + } |
|
| 1881 | 2353 | |
| 1882 | 2354 | // Set some defaults values... |
| 1883 | 2355 | if (!isset($globalAircraftImageSources)) { |
@@ -1892,15 +2364,23 @@ discard block |
||
| 1892 | 2364 | |
| 1893 | 2365 | $settings = array_merge($settings,array('globalInstalled' => 'TRUE')); |
| 1894 | 2366 | |
| 1895 | - if ($error == '') settings::modify_settings($settings); |
|
| 1896 | - if ($error == '') settings::comment_settings($settings_comment); |
|
| 2367 | + if ($error == '') { |
|
| 2368 | + settings::modify_settings($settings); |
|
| 2369 | + } |
|
| 2370 | + if ($error == '') { |
|
| 2371 | + settings::comment_settings($settings_comment); |
|
| 2372 | + } |
|
| 1897 | 2373 | if ($error != '') { |
| 1898 | 2374 | print '<div class="info column">'.$error.'</div>'; |
| 1899 | 2375 | require('../footer.php'); |
| 1900 | 2376 | exit; |
| 1901 | 2377 | } else { |
| 1902 | - if (isset($_POST['waypoints']) && $_POST['waypoints'] == 'waypoints') $_SESSION['waypoints'] = 1; |
|
| 1903 | - if (isset($_POST['owner']) && $_POST['owner'] == 'owner') $_SESSION['owner'] = 1; |
|
| 2378 | + if (isset($_POST['waypoints']) && $_POST['waypoints'] == 'waypoints') { |
|
| 2379 | + $_SESSION['waypoints'] = 1; |
|
| 2380 | + } |
|
| 2381 | + if (isset($_POST['owner']) && $_POST['owner'] == 'owner') { |
|
| 2382 | + $_SESSION['owner'] = 1; |
|
| 2383 | + } |
|
| 1904 | 2384 | if (isset($_POST['createdb'])) { |
| 1905 | 2385 | $_SESSION['install'] = 'database_create'; |
| 1906 | 2386 | } else { |
@@ -1937,10 +2417,18 @@ discard block |
||
| 1937 | 2417 | $popw = false; |
| 1938 | 2418 | foreach ($_SESSION['done'] as $done) { |
| 1939 | 2419 | print '<li>'.$done.'....<strong>SUCCESS</strong></li>'; |
| 1940 | - if ($done == 'Create database') $pop = true; |
|
| 1941 | - if ($_SESSION['install'] == 'database_create') $pop = true; |
|
| 1942 | - if ($_SESSION['install'] == 'database_import') $popi = true; |
|
| 1943 | - if ($_SESSION['install'] == 'waypoints') $popw = true; |
|
| 2420 | + if ($done == 'Create database') { |
|
| 2421 | + $pop = true; |
|
| 2422 | + } |
|
| 2423 | + if ($_SESSION['install'] == 'database_create') { |
|
| 2424 | + $pop = true; |
|
| 2425 | + } |
|
| 2426 | + if ($_SESSION['install'] == 'database_import') { |
|
| 2427 | + $popi = true; |
|
| 2428 | + } |
|
| 2429 | + if ($_SESSION['install'] == 'waypoints') { |
|
| 2430 | + $popw = true; |
|
| 2431 | + } |
|
| 1944 | 2432 | } |
| 1945 | 2433 | if ($pop) { |
| 1946 | 2434 | sleep(5); |
@@ -1951,7 +2439,9 @@ discard block |
||
| 1951 | 2439 | } else if ($popw) { |
| 1952 | 2440 | sleep(5); |
| 1953 | 2441 | print '<li>Populate waypoints database....<img src="../images/loading.gif" /></li>'; |
| 1954 | - } else print '<li>Update schema if needed....<img src="../images/loading.gif" /></li>'; |
|
| 2442 | + } else { |
|
| 2443 | + print '<li>Update schema if needed....<img src="../images/loading.gif" /></li>'; |
|
| 2444 | + } |
|
| 1955 | 2445 | print '</div></ul>'; |
| 1956 | 2446 | print '<div id="error"></div>'; |
| 1957 | 2447 | /* foreach ($_SESSION['done'] as $done) { |