Exemplo n.º 1
0
     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');
Exemplo n.º 2
0
/**
 * Update member
 */
function api_member_delete_function()
{
    $ret = DelMember();
    if ($ret !== true) {
        API::$IO->end(0);
    }
}