if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } PostMember(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=MemberMng'); break; case 'MemberDel': if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } if (DelMember()) { $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); } else { $zbp->SetHint('bad'); } Redirect('cmd.php?act=MemberMng'); break; case 'UploadMng': Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'UploadPst': PostUpload(); $zbp->SetHint('good'); Redirect('cmd.php?act=UploadMng');
/** * Update member */ function api_member_delete_function() { $ret = DelMember(); if ($ret !== true) { API::$IO->end(0); } }