The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    1
    /**
    * 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