Current time: 02-08-2012, 03:15 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto set ACL reseller list on creation.
08-12-2010, 07:38 PM (This post was last modified: 08-12-2010 07:40 PM by HostingFuze.)
Post: #1
Auto set ACL reseller list on creation.
So this was really annoying me because every reseller account that was created, no ACL list was set so I had to do it manually every time. Now it does it by itself:

Open: includes/servers/whm.php

Find this:

Code:
        if($reseller) {
            $action .= "&reseller=1";    
            
        }

        //echo $action."<br />". $reseller;
        $command = $this->remote($action);

Add beneath:

Code:
        //setacl
        if($reseller) {
            $acllist = "default";
            
            $setacl = "/xml-api/setacls".
                    "?reseller=". $user . "".
                    "&acllist=". $acllist ."";
            
            $setreseller = $this->remote($setacl);
        }
        //setalc

Change $acllist to your actual list. Mine is just "default".

Have fun!

HostingFuze.com Smile
Find all posts by this user
Quote this message in a reply
08-12-2010, 08:56 PM
Post: #2
RE: Auto set ACL reseller list on creation.
Nice thanks for this
Find all posts by this user
Quote this message in a reply
03-04-2011, 03:35 PM
Post: #3
RE: Auto set ACL reseller list on creation.
Does this work with ZamFoo alpha reseller?
Find all posts by this user
Quote this message in a reply
03-19-2011, 04:24 AM
Post: #4
RE: Auto set ACL reseller list on creation.
Thanks you !

MobiHouse - Bring a new life to your phones
Website: http://www.mobihouse.co/

Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)