- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
$error = 0;
list($date, $time) = explode(' ', $_POST['date_till']);
if (isset($date) && isset($time)) {
list($day, $month, $year) = explode('.', $date);
list($hour, $min) = explode(':', $time);
if (isset($day) && isset($month) && isset($year) && isset($hour) && isset($min)) {
$date_till = "$year-$month-$day $hour:$min:00";
$executed = Groups::setOutOfRangeGroups($date_till);
if (!$executed) {echo 'q';
$error = 1;
}
} else {echo 'w';
$error = 1;
}
} else {echo 'e';
$error = 1;
}
bkezArB 25.08.2021 01:52 # 0