/** * Create & Update tag */ function api_tag_post_function() { global $zbp; Add_Filter_Plugin('Filter_Plugin_PostTag_Succeed', 'api_tag_post_callback'); PostTag(); $zbp->BuildModule(); $zbp->SaveCache(); }
if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } DelUpload(); $zbp->SetHint('good'); Redirect('cmd.php?act=UploadMng'); break; case 'TagMng': Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'TagEdt': Redirect('admin/tag_edit.php?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'TagPst': PostTag(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=TagMng'); break; case 'TagDel': if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } DelTag(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=TagMng');