ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > Computer Software > General Software

Reply
 
LinkBack Thread Tools Display Modes
Old 08-20-2006, 10:09 PM   #1 (permalink)
Platinum Member
 
Holiday's Avatar
 
Join Date: Jun 2005
Location: US, Maryland
Age: 17
Posts: 616
Question cPanel: email account creation. I need help making a PHP script.

Hey I have a website ( http://www.ppltalkin.com/ ) and the administration panel is powered by cPanel.
I want my members to be able to apply for an email address and have one automatically created for them on the spot!

I have squirrel mail installed and I have a cPanel password changer plug-in installed for squirrel mail.
I have tried to copy the code from the plug-in, change it a little and use it on a PHP/HTML page, however the script was heavy made to be integrated with squirrel mail, and sense my knowledge of PHP isn't that great, I'm having a hard time redesigning the script

Here's what the script does:

if I open my web browser and login to my cpanel account, then type
Code:
http://ppltalkin.com:2082/frontend/x3/mail/dopasswdpop.html?email=user1&domain=ppltalkin.com&password=123testing&quota=25
in the address bar, I have just created the email account user1, with the password 123testing and 25MB of mail space.

the script does the same thing accept instead of creating an email account, it will change the password of an existing account.

cPanel is located in a password protected directory of the server, so if I enter
Code:
http://ppltalkin.com:2082/frontend/x3/mail/dopasswdpop.html?email=user1&domain=ppltalkin.com&password=123testing&quota=25
in the address bar with out logging in first it will prompt me for a user name and password, and if I submit the username and password it will do the same has if I was logged in.
So what I need is a page that is a PHP html mix, that has a field for the new account name a password field, a password confirm field and a submit button.
The the php script would just collect the info from the fields, some how send
Code:
http://ppltalkin.com:2082/frontend/x3/mail/dopasswdpop.html?email=user1&domain=ppltalkin.com&password=123testing&quota=25
to the site and login.

However I'm not sure how to submit
Code:
http://ppltalkin.com:2082/frontend/x3/mail/dopasswdpop.html?email=user1&domain=ppltalkin.com&password=123testing&quota=25
to the site without actually taking the user to the site and I'm also not sure how to login with the php script.

HERE is the cPanel password changer plug-in http://www.squirrelmail.org/countdl....1.3-1.3.tar.gz (it is written in PHP)

Any and all help would be greatly appreciated!

Thanks,
Holiday.
__________________
OS: Win Vista Ultimate
3.00 GHz Intel Pentium 4 Processor With HT
NVIDIA GeForce FX 5200
1536MB(1.5GB) DDR PC2700 RAM 2x256+2x512
500GB WD HD + 250GB Maxtor HD + 160GB HD
BLASTER Live! 24.bit 96kHz/100dB SNR HD
SONY Double Layer DVD Writer DRU-720A
HP DVD+R\RW DVD Writer
LCD 19" Flat panel f1903

Last edited by Holiday; 08-20-2006 at 10:20 PM.
Holiday is offline   Reply With Quote


Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
automated email account creation Holiday General Software 2 07-17-2006 07:37 AM


All times are GMT +1. The time now is 10:38 AM.


Powered by: vBulletin Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Copyright © 2002-2007 Computer Forum and Web Design Forum