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!

Need a little help

Discussion in 'General Discussion' started by volumeserver, May 13, 2003.

  1. volumeserver

    volumeserver Registered

    Mar 5, 2003
    Likes Received:
    Trophy Points:
    I purchased PHPManager
    and i keep submitting support requests that go ignored
    I can not get the program to create the account in WHM

    It doesnt give me any error just says

    "DONE WHM"

    This is the create code to do it

    $sql "SELECT * FROM whm WHERE package='$package'";
    $result mysql_query($sql);
    $myrow mysql_fetch_array($result);
    $ip $myrow["ip"];
    $cgi $myrow["cgi"];
    $quota $myrow["quota"];
    $frontpage $myrow["frontpage"];
    $cpmod $myrow["cpmod"];
    $ftp $myrow["ftp"];
    $num_sql $myrow["num_sql"];
    $pop $myrow["pop"];
    $emaillists $myrow["emaillists"];
    $subdomains $myrow["subdomains"];
    $bandwidth $myrow["bandwidth"];
    $shellaccess $myrow["shellaccess"];
    $whm_package $myrow["whm_package"];

    $msel ",$cgi,$quota,$frontpage,$cpmod,$ftp,$num_sql,$pop,$emaillists,$subdomains,$bandwidth,$shellaccess,$whm_package";

    if (
    $ip "1";
    } else {
    $ip "0";

    if (
    $cgi "1";
    } else {
    $cgi "0";

    if (
    $frontpage "1";
    } else {
    $frontpage "0";

    if (
    $shellaccess "1";
    } else {
    $shellaccess "0";

    $url "";
    $url .= "sign=&submit=yes&domain=$domainname$domain&username=$username&password=$password";
    $url .= "&quota=$quota&ip=$ip&cgi=$cgi&hasshell=$shellaccess&frontpage=$frontpage&maxftp=$ftp&maxpop=$pop";
    $url .= "&maxlst=$emaillists&maxsql=$num_sql&maxsub=$subdomains&bwlimit=$bandwidth&cpmod=$cpmod&msel=$msel";

    if (!

    $lines_array file($url);
    while (list (
    $line_num$line) = each ($lines_array)) {
       if (
    preg_match("/[0-9]{1,3}([.][0-9]{1,3}){3}/",$line,$regmatch) ) {
    $sql "SELECT * FROM clients WHERE username='$username' AND domainname='$domainname'";
    $result mysql_query($sql);
    $myrow mysql_fetch_array($result);
    $id $myrow["id"];
    $sql "UPDATE clients SET ipaddress='$ip_addr' WHERE id=$id";
    $result mysql_query($sql);
    end ($lines_array);



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