User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,616 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,673 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3360 | Replies: 1
Reply
Join Date: Aug 2006
Posts: 1
Reputation: SirHoliday is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SirHoliday SirHoliday is offline Offline
Newbie Poster

Help cPanel: email account creation. I need help making a PHP script.

  #1  
Aug 20th, 2006
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
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
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
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
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Posts: 6
Reputation: joelgreen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
joelgreen joelgreen is offline Offline
Newbie Poster

Re: cPanel: email account creation. I need help making a PHP script.

  #2  
Aug 29th, 2006
I'm using one php script to create email accounts on my cpanel. It does not have user interface, anyway it is easy to use. I'm running it from browser:

cpemail.php?user=newuser&pass=password&quota=50

Here is the script:
http://www.zubrag.com/scripts/cpanel...il-account.php
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 12:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC