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.

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:
    1
    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:
    16
    You first need a reseller account, without that you can't create accounts with cPanel logins.
     
  3. killerguy

    killerguy Active Member

    Joined:
    Feb 21, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
  5. killerguy

    killerguy Active Member

    Joined:
    Feb 21, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    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:
    6
    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);
    ?>
     
Loading...

Share This Page