2007-01-02 04:41:22 +03:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
|
|
|
|
*
|
2007-06-29 07:19:23 +04:00
|
|
|
* 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");
|
|
|
|
|
2007-06-13 07:51:41 +04:00
|
|
|
$tags = $_GET['tag'];
|
2007-01-02 04:41:22 +03:00
|
|
|
$item = $_GET['item'];
|
|
|
|
$remove = $_GET['remove'];
|
|
|
|
|
2007-06-13 07:51:41 +04:00
|
|
|
foreach(explode(" ", $tags) as $tag)
|
2007-01-02 04:41:22 +03:00
|
|
|
{
|
2007-06-13 07:51:41 +04:00
|
|
|
if($remove == 'true')
|
|
|
|
{
|
2007-06-29 07:19:23 +04:00
|
|
|
fof_untag_item(fof_current_user(), $item, $tag);
|
2007-06-13 07:51:41 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2007-06-29 07:19:23 +04:00
|
|
|
fof_tag_item(fof_current_user(), $item, $tag);
|
2007-06-13 07:51:41 +04:00
|
|
|
}
|
2007-01-02 04:41:22 +03:00
|
|
|
}
|
|
|
|
?>
|