/*///////////// Save Booking Data ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'get_colors') { $agenda = new agenda\agenda_main(); $result = $agenda->get_category_colors(); if (isset($result)) { echo json_encode($result); } } /*///////////// Save Booking Data ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'save_booking_data') { $the_main = new main\main(); $result = $the_main->save_booking($_POST['name'], $_POST['company'], $_POST['email'], $_POST['phone'], $_POST['program'], $_POST['number']); $the_main->marketing_email($_POST['name'], $_POST['company'], $_POST['email'], $_POST['phone'], $_POST['program'], $_POST['number']); } /*///////////// Save press Data ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'save_press_data') { $the_main = new main\main(); $the_main->press_email($_POST['first_name'], $_POST['last_name'], $_POST['company'], $_POST['email'], $_POST['phone'], $_POST['title']); } /*///////////// URL decoder ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'url_decoder') { $the_main = new agenda\agenda_main(); $result = $the_main->decode_url($_POST['url_data']);