Send Unsuspend twice = suspend?

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,404
Location
London UK
Directadmin::unsuspend::result:: error=0&text=Success&details=All selected Users have been suspended
.... hmmmm if you send an unsuspend twice to an account, that suspends it? Bug?

Why would sending an unsuspend call on an already active account suspend it..... Ideally it should ignore it.
 
Last edited:
Back when the suspend feature was added, it used to be 1 toggle button.
The same button is used to suspend, as to unsuspend.
That obviously caused confusion, so we've since changed it to the definite suspend/unsuspend buttons.
The same ability would apply to the API.

The URL zEitEr posted would be what you'd want.

John
 
That would be the toggle.
Remove this line:
Code:
[COLOR=#DF5000][FONT=Consolas]'suspend'[/FONT][/COLOR][COLOR=#A71D5D][FONT=Consolas]=>[/FONT][/COLOR][COLOR=#DF5000][FONT=Consolas]'Suspend/Unsuspend'[/FONT][/COLOR][COLOR=#333333][FONT=Consolas],[/FONT][/COLOR]
and change it to
Code:
[COLOR=#DF5000][FONT=Consolas]'dounsuspend'[/FONT][/COLOR][COLOR=#A71D5D][FONT=Consolas]=>[/FONT][/COLOR][COLOR=#DF5000][FONT=Consolas]'Suspend'[/FONT][/COLOR][COLOR=#333333][FONT=Consolas],[/FONT][/COLOR]
and remove the "dounspsend=1" part after.

Basically, with the "suspend" being present, it overrides the new functions, and turns it into the old toggle method.

John
 
Last edited:
Back
Top