diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-12 04:33:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-12 04:33:12 +0000 |
commit | 3e36e0b01e843ec8d4e8a63a72e5f7425921dab8 (patch) | |
tree | a188dee01ac306152b68609b31772fca450a22d6 /server | |
parent | 693e26e2ad074f8cc9d37098a0568cd93ae30f52 (diff) | |
download | ampache-3e36e0b01e843ec8d4e8a63a72e5f7425921dab8.tar.gz ampache-3e36e0b01e843ec8d4e8a63a72e5f7425921dab8.tar.bz2 ampache-3e36e0b01e843ec8d4e8a63a72e5f7425921dab8.zip |
forgot to add some important files
Diffstat (limited to 'server')
-rw-r--r-- | server/tag.ajax.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/server/tag.ajax.php b/server/tag.ajax.php new file mode 100644 index 00000000..ca28e4f2 --- /dev/null +++ b/server/tag.ajax.php @@ -0,0 +1,37 @@ +<?php +/* + + Copyright (c) 2001 - 2007 Ampache.org + All rights reserved. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License v2 + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +/** + * Sub-Ajax page, requires AJAX_INCLUDE as one + */ +if (AJAX_INCLUDE != '1') { exit; } + +switch ($_REQUEST['action']) { +case 'add': + TagCloud::add_tag($_REQUEST['type'], $_REQUEST['id'], $_REQUEST['val']); + break; + +} // switch on action; + + +// We always do this +echo xml_from_array($results); +?> |