From 0820e9476ea08854813803b2bb3106f7e990f286 Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Sun, 6 Jun 2021 11:47:32 +0200 Subject: [PATCH] Delete processSession.php --- panel_manager/processSession.php | 57 -------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 panel_manager/processSession.php diff --git a/panel_manager/processSession.php b/panel_manager/processSession.php deleted file mode 100644 index 1772f2e..0000000 --- a/panel_manager/processSession.php +++ /dev/null @@ -1,57 +0,0 @@ -= $end){ - $errors['date'] = 'La fecha inicial no puede ser antes o el mismo dia que la final.'; - } -} - -if (empty($_POST['startHour'])) { - $errors['startHour'] = 'Es necesario escoger el horario de la sesion.'; -} - - -if (!empty($errors)){ - error_log("creamos una sesion, wahoo"); - Session::create_session("1", $_POST['hall'], $_POST['startHour'], $_POST['startDate'], - "1",$_POST['price'], $_POST['format'],"0"); - - - $data['success'] = false; - $data['errors'] = $errors; -} else { - $data['success'] = true; - $data['message'] = 'Success!'; -} - -echo json_encode($data); \ No newline at end of file