if($_GET['year'] == '2016') {
$jndns['year'] = '2016';
}
if($_GET['year'] == '2017') {
$jndns['year'] = '2017';
}
if($_GET['year'] == '2018') {
$jndns['year'] = '2018';
}
if($_GET['year'] == '2019') {
$jndns['year'] = '2019';
}
if($_GET['year'] == '2020') {
$jndns['year'] = '2020';
}
if($_GET['year'] == '2021') {
$jndns['year'] = '2021';
}
if($_GET['year'] == '2022') {
$jndns['year'] = '2022';
}
if($_GET['year'] == '2023') {
$jndns['year'] = '2023';
}
if($_GET['year'] == '2024') {
$jndns['year'] = '2024';
}
if($_GET['year'] == '2025') {
$jndns['year'] = '2025';
}
foreach (range(2016, 2025) as $year)
if (intval($_GET['year']) == $year)
$jdns['year'] = (string) $year;
if (in_array(intval($_GET['year']), range(2016, 2025)))
$jdns['year'] = (string) intval($_GET['year']);
if (intval($_GET['year']) >= 2016 && intval($_GET['year']) <= 2025)
$jdns['year'] = (string) intval($_GET['year']);
if(in_array($_GET['year'], ['2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024', '2025'])) {
$jndns['year'] = $_GET['year'];
}
$jndns['year'] = min(2024, max(2016, $_GET['year']));