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!

Create user script?

Discussion in 'General Discussion' started by killerguy, Aug 13, 2004.

  1. killerguy

    killerguy Active Member

    Joined:
    Feb 21, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    Is there any script that I can put on my webhost site so people can register their account and cpanel automaticly create it so they can login to cpanel with it? and some special package from cpanel like 25 mb package i created or something.

    Please help!

    [sorry for bad english :p ]


    Greetings,

    Robin
     
  2. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    166
    You first need a reseller account, without that you can't create accounts with cPanel logins.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. killerguy

    killerguy Active Member

    Joined:
    Feb 21, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    151
    sure i have a reseller account! its my own damn server.. :rolleyes:
     
  4. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    166
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. killerguy

    killerguy Active Member

    Joined:
    Feb 21, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    151
    I don't get that doc. can't you just give the (php) script?
     
  6. br3ach

    br3ach Active Member

    Joined:
    Feb 21, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    UK
    #!/usr/local/cpanel/3rdparty/bin/php


    <?php

    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host = "localhost";
    $user = "";
    $accesshash = '';

    $accts = listaccts($host,$user,$accesshash,0);
    print_r($accts);
    $pkgs = listpkgs($host,$user,$accesshash,0);
    print_r($pkgs);
    ?>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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