$subject = 'New Date Has been praposed by Owner in Spark Swap'; mail_to_all_user($receivename, $receivermail, $fromname, $fromemail, $mailbody, $subject); header("location:" . $URL_SITE . "front/inbox.php"); } if (isset($_POST['submit_reason'])) { if ($_POST['reason']) { $msg_id = $_POST['msg_id']; $startdate = $_POST['startRent']; $enddate = $_POST['finish_rent']; $renter = $_GET['user_id']; $item_id = $_GET['item_id']; $msg = $_POST['reason']; if ($_POST['reason'] == 'Other') { $msg = $_POST['deny_other']; } $latest = inbox::insert_notification($renter, $msg, $startdate, $enddate, $msg_id); } $_SESSION['msg'] = 21; header('location:inbox.php'); } if ($_GET['action'] == 'accept') { $action = $_GET['action']; $msg_id = $_GET['msg_id']; $reserve_id = $_GET['id']; $item_id = $_GET['item_id']; $user_id = $_GET['user_id']; $rentitemdetail = user::mainDetailOfItem($item_id); $featurimage = itemClass::select_featured_image($item_id); $renter = $user_id; $msg_detail = inbox::select_msg_by_id($msg_id); $msg_detail = mysql_fetch_assoc($msg_detail);