Пример #1
0
function delAppAction($type, $typeid)
{
    delFeed($type, $typeid);
    return delComment($type, $typeid);
}
Пример #2
0
    $tag = cleanData($_GET['tag']);
    $georss_url .= "+{$tag}";
    if (strlen($user) > 0) {
        $get_fn .= '.';
    } else {
        $get_fn .= 'tags/';
    }
    $get_fn .= "{$tag}";
}
// most recent geotagged bookmarks for all users
if ($get_fn == DEL_GEOTAG_PATH) {
    $get_fn .= 'index';
}
// append the file type extension
$get_fn .= '.rss';
echo delFeed($georss_url, $get_fn);
exit;
/** 
clean up user input
*/
function cleanData($data_string)
{
    $bad = array(' ', '/');
    $clean_data = str_replace($bad, '-', $data_string);
    return $clean_data;
}
/**
get RSS from cache or query delicious for it
*/
function delFeed($feed_path, $fn)
{