FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Any WHM experts? 300$FRIH





cr3ativ3
Offering 300 $FRIH for someone that can solve my problem.

Hopefully one of you is familiar with WHM anyways I have a reseller account and I am trying to get an automated account creation script working the only thing I wasn't coding myself was the part that requests WHM to create an account so I found this script:

Code:

<?php
if (isset($_POST['submitted'])) {
   $plan = $_POST['plan'];
   $domain = $_POST['domain'];
   $username = $_POST['username'];
   $password = $_POST['password'];
   $contactemail = $_POST['email'];
   
   $url = "http://*WHMusername*:*WHMpassword*@255.255.255.255:2086/scripts/wwwacct?plan=$plan&domain=$domain&username=$username&password=$password&contactemail=$contactemail";
   $result = file_get_contents($url);
   echo $result;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

</head>
<body>
<form method="post" action="">
Plan<input type="text" name="plan" value="oysolut_Starter Plan" /><br />
Domain<input type="text" name="domain" /><br />
Username<input type="text" size="5" name="username" /><br />
Password<input type="password" name="password" /><br />
Email<input type="text" name="email" /><br />
<input type="submit" name="submitted" value="Submit" />
</form>
</body>
</html>


I have replaced certain information to protect confidential information but anyways. When I execute the script like this I get the response and it says this:

Quote:

Create a new Account

Account Creation Status: failed (Sorry unable to proceed. Too little information *user? *domain? *pass?.)
Sorry unable to proceed. Too little information *user? *domain? *pass?.


When I run the url in my browser it asks me twice to login with the apache .htaccess login window twice I input the username and password and then it works and succeeds at creating the account.

So is this an extra security feature?

Because, as I can see a lot of people were happy with it only one person I can see had the same problem as me, I am wonder is there a way to fix it?

http://www.zubrag.com/scripts/create-cpanel-whm-account.php

Thanks[/b]
cr3ativ3
nvm, I have solved this problem this topic can be closed now.
Related topics
Banners,avatars needed Paying 300 FRIH$.
Giving out 300 FRIH$ for somone to help me.
~*~*~300 FRIH$ for a logo~*~*~
need CODE TWEAKING on my PAGE & GRAPHIC ... 300+FRIH$'S
Super fast script mod (300 frih)
Make Me A Nice Small (80x80) Avatar for *300* FRIH$
Sig required.. urgent.. 300 FRIH$
Up to 300 frih$ for Flash Player Images + Question for frih$
New avatar wanted - 300 frih (CLOSED)
Big brother - photoshop contest - 300 frih (Closed)
my new nickname - 300 Frih$
100 web templates for 300 Frih$
Need a header designing + Logo. 50frih + 300 frih.
300 Frih$ for logo
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.