/** PT * Cancels editing and checks in the record * @int the contact id */ function cancelContact($cid) { $row = new mosContact($database); $row->bind($_POST); $row->checkin(); mosRedirect('index2.php?option=com_contact'); }
/** PT * Cancels editing and checks in the record */ function cancelContact() { global $database; $row = new mosContact($database); $row->bind($_POST); // sanitize $row->id = intval($row->id); $row->checkin(); mosRedirect('index2.php?option=com_contact'); }
/** PT * Cancels editing and checks in the record */ function cancelContact() { global $database; josSpoofCheck(); $row = new mosContact($database); $row->bind($_POST); $row->checkin(); mosRedirect('index2.php?option=com_contact'); }