* NOALYSS 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 NOALYSS; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu if (!defined('ALLOWED')) { die('Appel direct ne sont pas permis'); } $fl = new Follow_Up($cn); $fl->ag_id = $_REQUEST['ag_id']; if ($g_user->can_write_action($fl->ag_id) == TRUE) { $fl->tag_remove($_REQUEST['t_id']); } ob_start(); $fl->tag_cell(); $response = ob_get_clean(); $html = escape_xml($response); header('Content-type: text/xml; charset=UTF-8'); echo <<<EOF <?xml version="1.0" encoding="UTF-8"?> <data> <ctl></ctl> <code>{$html}</code> </data> EOF; exit;
static function action_tag_remove($cn, $p_array) { global $g_user; $mag_id = $p_array['mag_id']; $remtag = $p_array['remtag']; for ($i = 0; $i < count($mag_id); $i++) { if ($g_user->can_write_action($mag_id[$i]) == false) { continue; } for ($e = 0; $e < count($remtag); $e++) { $a = new Follow_Up($cn, $mag_id[$i]); $a->tag_remove($remtag[$e]); } } }