Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default WHM Hosting Acc Maker PHP SCRIPT

    I'll give this away since I can't use it no more. (
    PHP Code:
    <?php
    session_start
    ();
    $whm_username "root";
    $whm_password "changeme";
    $formarray = array("username""password""domain""address""name""image""email");
    // check fields.
    $number 0;
    for(
    $x 0$x sizeof($formarray); $x++) {
        if(
    $_POST[$formarray[$x]] == "") {
            
    $result $result."Your missing data for ".$formarray[$x]."<br>";
        } elseif(
    $_POST[$formarray[$x]] != "") {
            
    $number++;
        }
    }
    // check all fields correct, then check the imagevars
    if($number == sizeof($formarray)) {
        if(
    $_SESSION['img'] == $_POST['image']) {
            
    $ch curl_init(); // INIT Curl
            
    $domains = array(".driftpanzy.co.uk"".jamesrozee.com"".kg-hosting.co.uk""");
            for(
    $i 0$i sizeof($domains); $i++) {
                if(
    $_POST["domainEXT"] == $i) {
                    
    $domain $_POST["domain"].$domains[$i];
                }
            }
            
    $whm "http://kg-hosting.co.uk:2086/scripts/wwwacct?plan=FREEHOSTING&domain=".$domain."&username=".$_POST['username']."&password=".$_POST['password']."&contactemail=".$_POST["email"];
            
    curl_setopt($chCURLOPT_URL$whm);
            
    curl_setopt($chCURLOPT_USERPWD$whm_username.":".$whm_password);
            
    curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
            
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
            
    $clean curl_exec($ch);
            if(
    preg_match("/Account Creation Status: failed/i"$clean) == true) {
                echo(
    '<font face="tahoma" size="2">'."Either, your username was taken or invalid (over 8 chars) or the server doesn't like what you entered."."</font>");
            } elseif(
    preg_match("/sorry thats not a valid domain/i"$clean) == true) {
                echo(
    '<font face="tahoma" size="2">'."The domain you provided wasn't valid."."</font>");
                exit;
            } elseif(
    preg_match("/New Account Info/i"$clean) == true) {
                echo(
    '<font face="tahoma" size="2">'."The account was created successfully!"."</font>");
            } else {
                echo(
    '<font face="tahoma" size="2">'."An error happened across the line and can't be identified. If your account info is listed below, it was a successful account build else you need to contact me [email protected]"."</font>");
            }
            
    $lastbit explode('+===================================+'$clean);
            
    $clean str_replace("| ""<br>"$lastbit[2]);
            echo(
    '<font face="tahoma" size="2">'.$clean."</font>");
            
    curl_close($ch);
            
    session_destroy();
        } else {
            echo(
    '<font face="tahoma" size="2">'.$result."Your image verification wasn't correct, please try again.<br>"."</font>");
        }
    } else {
        echo(
    '<font face="tahoma" size="2">'.$result."</font>");
    }
    ?>
    HTML below 4 form.
    HTML Code:
    <form name="submitAcc" action="process.php" method="post">
    <div class="tag">Username:<input maxlength="8" class="dpbox" type="text" name="username"></div><br>
    <div class="tag">Password:<input class="dpbox" type="password" name="password"></div><br>
    <div class="tag">Domain:<input class="dpbox" type="text" name="domain"><select class="dpbox1" name="domainEXT">
    <option value="x">Select Domain Option</option>
    <option value="0">.DriftPanzy.co.uk</option>
    <option value="1">.JamesRozee.com</option>
    <option value="2">.KG-Hosting.co.uk</option>
    <option value="3">Parked Domain</option>
    </select></div><br>
    <div class="tag">Valid Email:<input class="dpbox" type="text" name="email"></div><br>
    <div class="tag">Real Name:<input class="dpbox" type="text" name="name"></div><br>
    <div class="tag">Home Address:<textarea class="dpboxx" name="address"></textarea></div><br><br><br>
    <div class="tag">Image Verification:<input class="dpbox" type="text" name="image"><img style="position: absolute; left: 325px;" src="http://www.jamesrozee.com/img.php"></div><br>
    <input class="dpbox" type="submit" value="Create Account!"><br>
    </form>
    Yeah I receive there Name/Address and my script e-mailed it to my inbox, but you can mess around. Can only created SHARED hosting accounts, works on ROOT WHM and Resellers.

    Yeah criticize my code you tards I don't care.
    Last edited by Protege; 20-04-2008 at 09:37 PM.
    Hi, names James. I am a web developer.

  2. #2
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    I have no need for it but nice of you to give it away +rep

  3. #3
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    3 thanks.
    Hi, names James. I am a web developer.

  4. #4
    Join Date
    Jun 2008
    Posts
    134
    Tokens
    0

    Default

    You coded this yourself? It looks familiar, tis' all.

    Good script either way.

    Repped.

  5. #5
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Yes, I did code it myself. Show me what you think is familiar, thanks.
    Hi, names James. I am a web developer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •