| @@ 387-389 (lines=3) @@ | ||
| 384 | ); |
|
| 385 | while ($r = sql_fetch_assoc($rs)) { |
|
| 386 | $wp = $wp_oc[$r['cache_id']]; |
|
| 387 | if ($r['name'] != $nextcd[$wp]['name']) { |
|
| 388 | append_data($data, $admins, $wp_oc, $r, 'name', $r['name'], $nextcd[$wp]['name']); |
|
| 389 | } |
|
| 390 | if ($r['type'] != $nextcd[$wp]['type']) { |
|
| 391 | append_data( |
|
| 392 | $data, |
|
| @@ 412-414 (lines=3) @@ | ||
| 409 | labels::getLabelValue('cache_size', $nextcd[$wp]['size']) |
|
| 410 | ); |
|
| 411 | } |
|
| 412 | if ($r['difficulty'] != $nextcd[$wp]['difficulty']) { |
|
| 413 | append_data($data, $admins, $wp_oc, $r, "D", $r['difficulty'] / 2, $nextcd[$wp]['difficulty'] / 2); |
|
| 414 | } |
|
| 415 | if ($r['terrain'] != $nextcd[$wp]['terrain']) { |
|
| 416 | append_data($data, $admins, $wp_oc, $r, "T", $r['terrain'] / 2, $nextcd[$wp]['terrain'] / 2); |
|
| 417 | } |
|
| @@ 415-417 (lines=3) @@ | ||
| 412 | if ($r['difficulty'] != $nextcd[$wp]['difficulty']) { |
|
| 413 | append_data($data, $admins, $wp_oc, $r, "D", $r['difficulty'] / 2, $nextcd[$wp]['difficulty'] / 2); |
|
| 414 | } |
|
| 415 | if ($r['terrain'] != $nextcd[$wp]['terrain']) { |
|
| 416 | append_data($data, $admins, $wp_oc, $r, "T", $r['terrain'] / 2, $nextcd[$wp]['terrain'] / 2); |
|
| 417 | } |
|
| 418 | if ($r['search_time'] != $nextcd[$wp]['search_time']) { |
|
| 419 | append_data( |
|
| 420 | $data, |
|
| @@ 418-428 (lines=11) @@ | ||
| 415 | if ($r['terrain'] != $nextcd[$wp]['terrain']) { |
|
| 416 | append_data($data, $admins, $wp_oc, $r, "T", $r['terrain'] / 2, $nextcd[$wp]['terrain'] / 2); |
|
| 417 | } |
|
| 418 | if ($r['search_time'] != $nextcd[$wp]['search_time']) { |
|
| 419 | append_data( |
|
| 420 | $data, |
|
| 421 | $admins, |
|
| 422 | $wp_oc, |
|
| 423 | $r, |
|
| 424 | 'time', |
|
| 425 | $r['search_time'] . ' h', |
|
| 426 | $nextcd[$wp]['search_time'] . ' h' |
|
| 427 | ); |
|
| 428 | } |
|
| 429 | if ($r['way_length'] != $nextcd[$wp]['way_length']) { |
|
| 430 | append_data( |
|
| 431 | $data, |
|
| @@ 429-439 (lines=11) @@ | ||
| 426 | $nextcd[$wp]['search_time'] . ' h' |
|
| 427 | ); |
|
| 428 | } |
|
| 429 | if ($r['way_length'] != $nextcd[$wp]['way_length']) { |
|
| 430 | append_data( |
|
| 431 | $data, |
|
| 432 | $admins, |
|
| 433 | $wp_oc, |
|
| 434 | $r, |
|
| 435 | 'way', |
|
| 436 | $r['way_length'] . ' km', |
|
| 437 | $nextcd[$wp]['way_length'] . ' km' |
|
| 438 | ); |
|
| 439 | } |
|
| 440 | if ($r['wp_gc'] != $nextcd[$wp]['wp_gc']) { |
|
| 441 | append_data( |
|
| 442 | $data, |
|
| @@ 440-450 (lines=11) @@ | ||
| 437 | $nextcd[$wp]['way_length'] . ' km' |
|
| 438 | ); |
|
| 439 | } |
|
| 440 | if ($r['wp_gc'] != $nextcd[$wp]['wp_gc']) { |
|
| 441 | append_data( |
|
| 442 | $data, |
|
| 443 | $admins, |
|
| 444 | $wp_oc, |
|
| 445 | $r, |
|
| 446 | 'GC ', |
|
| 447 | format_wp($r['wp_gc']), |
|
| 448 | format_wp($nextcd[$wp]['wp_gc']) |
|
| 449 | ); |
|
| 450 | } |
|
| 451 | if ($r['wp_nc'] != $nextcd[$wp]['wp_nc']) { |
|
| 452 | append_data( |
|
| 453 | $data, |
|
| @@ 451-461 (lines=11) @@ | ||
| 448 | format_wp($nextcd[$wp]['wp_gc']) |
|
| 449 | ); |
|
| 450 | } |
|
| 451 | if ($r['wp_nc'] != $nextcd[$wp]['wp_nc']) { |
|
| 452 | append_data( |
|
| 453 | $data, |
|
| 454 | $admins, |
|
| 455 | $wp_oc, |
|
| 456 | $r, |
|
| 457 | 'GC ', |
|
| 458 | format_wp($r['wp_nc']), |
|
| 459 | format_wp($nextcd[$wp]['wp_nc']) |
|
| 460 | ); |
|
| 461 | } |
|
| 462 | if ($r['date_hidden'] != $nextcd[$wp]['date_hidden']) { |
|
| 463 | append_data($data, $admins, $wp_oc, $r, "hidden", $r['date_hidden'], $nextcd[$wp]['date_hidden']); |
|
| 464 | } |
|
| @@ 462-464 (lines=3) @@ | ||
| 459 | format_wp($nextcd[$wp]['wp_nc']) |
|
| 460 | ); |
|
| 461 | } |
|
| 462 | if ($r['date_hidden'] != $nextcd[$wp]['date_hidden']) { |
|
| 463 | append_data($data, $admins, $wp_oc, $r, "hidden", $r['date_hidden'], $nextcd[$wp]['date_hidden']); |
|
| 464 | } |
|
| 465 | ||
| 466 | $nextcd[$wp] = $r; |
|
| 467 | } |
|