/**
* Cancels an edit operation
* @param string The current GET/POST option
*/
function cancelNewsFeed($option)
{
    global $database;
    josSpoofCheck();
    $row = new mosNewsFeed($database);
    $row->bind($_POST);
    $row->checkin();
    mosRedirect('index2.php?option=' . $option);
}
Example #2
0
/**
* Cancels an edit operation
* @param string The current GET/POST option
*/
function cancelNewsFeed($option)
{
    global $database;
    $row = new mosNewsFeed($database);
    $row->bind($_POST);
    // sanitize
    $row->id = intval($row->id);
    $row->checkin();
    mosRedirect('index2.php?option=' . $option);
}