FeedOnFeeds/add-tag.php

33 lines
605 B
PHP
Raw Permalink Normal View History

2007-01-02 04:41:22 +03:00
<?php
/*
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
*
* add-tag.php - adds (or removes) a tag to an item
2007-01-02 04:41:22 +03:00
*
*
* Copyright (C) 2004-2007 Stephen Minutillo
* steve@minutillo.com - http://minutillo.com/steve/
*
* Distributed under the GPL - see LICENSE
*
*/
include_once("fof-main.php");
$tags = $_GET['tag'];
2007-01-02 04:41:22 +03:00
$item = $_GET['item'];
$remove = $_GET['remove'];
foreach(explode(" ", $tags) as $tag)
2007-01-02 04:41:22 +03:00
{
if($remove == 'true')
{
fof_untag_item(fof_current_user(), $item, $tag);
}
else
{
fof_tag_item(fof_current_user(), $item, $tag);
}
2007-01-02 04:41:22 +03:00
}
?>