Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Suspend reseller account PHP Script

Discussion in 'General Discussion' started by zerutreck, Oct 11, 2006.

  1. zerutreck

    zerutreck Member

    Joined:
    Oct 9, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Somebody knows as to suspend a reseller acount?

    PHP script for this?
     
  2. zerutreck

    zerutreck Member

    Joined:
    Oct 9, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    /**
    * Suspende e retira a suspensão
    *
    * Com esse método é possível suspender uma
    * revenda e todos os clientes dos clientes
    * É possível também retirar a suspensão
    *
    * @access public
    * @since Wed Oct 11 14:02:03 BRT 2006
    * @param String $nomeUsr Nome do usuário q vai ser suspenso
    * @param String $tipo Tipo=1 retira a suspensão
    * @return void
    */
    function suspendRevenda($nomeUsr, $tipo) {

    $request = "/scripts/suspendreseller?res=$nomeUsr&reseller=$nomeUsr&un=$tipo";
    $result = whmreq($request,$this->host,$this->user,$this->accesshash,0);
    return $result;
    }
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice