|
@@ -16,12 +16,12 @@ top_panel($user,$TAB);
|
|
|
//if ($_SESSION['user'] == 'admin') {
|
|
//if ($_SESSION['user'] == 'admin') {
|
|
|
if (!empty($_POST['ok'])) {
|
|
if (!empty($_POST['ok'])) {
|
|
|
// Check input
|
|
// Check input
|
|
|
- if (empty($_POST['v_min'])) $errors[] = __('minute');
|
|
|
|
|
- if (empty($_POST['v_hour'])) $errors[] = __('hour');
|
|
|
|
|
- if (empty($_POST['v_day'])) $errors[] = __('day');
|
|
|
|
|
- if (empty($_POST['v_month'])) $errors[] = __('month');
|
|
|
|
|
- if (empty($_POST['v_wday'])) $errors[] = __('day of week');
|
|
|
|
|
- if (empty($_POST['v_cmd'])) $errors[] = __('cmd');
|
|
|
|
|
|
|
+ if (!isset($_POST['v_min'])) $errors[] = __('minute');
|
|
|
|
|
+ if (!isset($_POST['v_hour'])) $errors[] = __('hour');
|
|
|
|
|
+ if (!isset($_POST['v_day'])) $errors[] = __('day');
|
|
|
|
|
+ if (!isset($_POST['v_month'])) $errors[] = __('month');
|
|
|
|
|
+ if (!isset($_POST['v_wday'])) $errors[] = __('day of week');
|
|
|
|
|
+ if (!isset($_POST['v_cmd'])) $errors[] = __('cmd');
|
|
|
|
|
|
|
|
// Protect input
|
|
// Protect input
|
|
|
$v_min = escapeshellarg($_POST['v_min']);
|
|
$v_min = escapeshellarg($_POST['v_min']);
|