Created At: 2026-06-14T15:33:21Z
Completed At: 2026-06-14T15:33:21Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4711
Total Bytes: 198658
Showing lines 565 to 585
The following code has been modified to include a line number before every line, in the format: <line_number>: <original_line>. Please note that any changes targeting the original code should remove the line number, colon, and leading space.
565: 
566:             if ($periodData || $globalData) {
567:                 echo json_encode([
568:                     'success' => true,
569:                     'data' => [
570:                         'description' => $periodData ? $periodData['description'] : ($globalData ? $globalData['description'] : ''),
571:                         'imageClimateMap' => $periodData ? $periodData['image_climate_map_url'] : '',
572:                         'imageClimateMap2' => $periodData ? $periodData['image_climate_map_url_2'] : '',
573:                         'imageTimeSeries' => ($periodData && !empty($periodData['image_time_series_url'])) ? $periodData['image_time_series_url'] : ($globalData ? $globalData['image_time_series_url'] : ''),
574:                         'imageClimateStripe' => ($periodData && !empty($periodData['image_climate_stripe_url'])) ? $periodData['image_climate_stripe_url'] : ($globalData ? $globalData['image_climate_stripe_url'] : ''),
575:                         'graphBaseValue' => ($periodData && $periodData['graph_base_value'] !== null) ? $periodData['graph_base_value'] : ($globalData ? $globalData['graph_base_value'] : null),
576:                         'graphUncertainty' => ($periodData && $periodData['graph_uncertainty'] !== null) ? $periodData['graph_uncertainty'] : ($globalData ? $globalData['graph_uncertainty'] : null),
577:                         'graphSSP1Slope' => ($periodData && $periodData['graph_ssp1_slope'] !== null) ? $periodData['graph_ssp1_slope'] : ($globalData ? $globalData['graph_ssp1_slope'] : null),
578:                         'graphSSP2Slope' => ($periodData && $periodData['graph_ssp2_slope'] !== null) ? $periodData['graph_ssp2_slope'] : ($globalData ? $globalData['graph_ssp2_slope'] : null),
579:                         'graphSSP3Slope' => ($periodData && $periodData['graph_ssp3_slope'] !== null) ? $periodData['graph_ssp3_slope'] : ($globalData ? $globalData['graph_ssp3_slope'] : null),
580:                         'graphSSP5Slope' => ($periodData && $periodData['graph_ssp5_slope'] !== null) ? $periodData['graph_ssp5_slope'] : ($globalData ? $globalData['graph_ssp5_slope'] : null),
581:                         'csvData' => ($periodData && !empty($periodData['csv_data'])) ? $periodData['csv_data'] : ($globalData ? $globalData['csv_data'] : null)
582:                     ]
583:                 ]);
584:             } else {
585:                 echo json_encode(['success' => false, 'message' => 'Data tidak ditemukan.']);
The above content does NOT show the entire file contents. If you need to view any lines of the file which were not shown to complete your task, call this tool again to view those lines.
