PDA

View Full Version : Instant Account Setup Script


LegosJedi
January 30th, 2007, 12:10 PM
I run a hosting site for people who make brickfilms and need space to host their films. However, at this time, I have to go through and create every account everytime I get an e-mail/PM requesting an account. I just want a script that will make the account for me. I know there's a paid script out there, but I'm on a tight budget. Is there a cheap/free way to do this?

Geometric-sama
January 30th, 2007, 02:49 PM
Do you just want something that'll give them an FTP account, or a subdomain, or something like that?

Faltzer
January 30th, 2007, 09:48 PM
I require something like this as well, though at the moment I use Webmin.

LegosJedi
January 31st, 2007, 01:17 PM
I need to give them a FTP account and a sub-domain. I've found a script, but there seem to be tons of errors with it. I've found that by opening the page that creates the FTP account and subdomain, with each of the fields as GET statements, it'll get that info from them and create an FTP account or subdomain. Now, by using fopens() or whatever it is in PHP, will that execute the page if I give it the 'r' attribute? And, I forgot to mention this, but I'm using cPanel.

Geometric-sama
January 31st, 2007, 02:01 PM
In order to execute a script, you need to give it the x permission. Using POST is probably safer than GET, though. What kind of errors are you getting?

LegosJedi
January 31st, 2007, 06:34 PM
Just ones about incorrect use of functions, or missing parameters, things that are easily fixed.

I only use GET cause a) it's the easier, and b) I don't know how to send POST variables from a PHP script.

Would I give the 'x' permission to the function, or the file?

Geometric-sama
February 1st, 2007, 03:11 PM
You send POST requests from a form; I assume you're having your users fill out a form to create their accounts!

You can't set permissions on just a function. You need to have them on the whole file. And you'd need to give any script you wanted to run execute permissions, anyway.

LegosJedi
February 1st, 2007, 05:29 PM
Yeah, but I have the POST variables going from the form to a PHP script that processes it. Can I just set POST variables, like this: $_POST['user'] = $user; ?

I don't have access to the cPanel documents.

Okay. I have found another script that I am going to try. I got it from the forums of a hosting site that I use, and I'm going to see if it works (It should since they use it.).