-
cPanel Email Acc maker
Saw Dave wanted something to make accounts so I thought i'd code this up if he liked it or not looool. Customize it to your wants and needs.
PHP Code:
<?php
/**
* @author James Rozee
* @desc cPanel acc maker
*/
/* You need to edit the configurations below */
$cPanelVersion = 'x'; // eg :2082/frontend/x/ <-- version X skin for example.
$cPanelLogin = 'Name'; // Your cpanel login (username)
$cPanelPassword = 'Password'; // Your cpanel login (password)
$cPanelDomain = '92.48.100.21'; // your site or IP
$emailDomain = 'jamesrozee.com'; // if you want to make more available, you'll have to customize.
$emailQuota = 10; // in Meg
/* Im using GET to get the information this can be changed etc. */
if( $_GET[ 'username' ] == '' || $_GET[ 'password' ] == '' )
{
echo( 'Please go back and fill in all the details...' );
}
elseif( $_GET[ 'username' ] != '' || $_GET[ 'password' ] != '' )
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://' . $cPanelDomain . ':2082/frontend/' . $cPanelVersion . '/mail/doaddpop.html');
curl_setopt($ch, CURLOPT_USERPWD, $cPanelLogin . ':' . $cPanelPassword);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'email=' . $_GET[ 'username' ] . '&domain=' . $emailDomain . '&password=' . $_GET[ 'password' ] . '"a=' . $emailQuota);
$result = curl_exec($ch);
if( preg_match( '/exists/i', $result ) == true )
{
echo( 'Account taken' );
} else {
header( 'Location: wearedoneetc.html' );
}
curl_close($ch);
}
?>
-
Thanks for your cpanel info ;)
-
Lol, i loged onto ur cpanel a min ago
-
sure there was a script posted on the forum before that did that, i don't plan on checking to see if this one works
but +Rep for helping out the community
-
I blame my mum for that, shes been ******** me all day and I just posted it forgetting to remove it. At least you didn't **** with my **** lool
http://www.habboxforum.com/search.php?searchid=2561940
-
I've removed your Cpanel name and Password for you ;).
Also nice script , will come handy, a shame someone will end up leeching it ^^.
-
-
Thanks man lol, yea and likely
@Jamie
It does. You need to configure it to work for your cPanel my version is put down to X as I don't like the other versions lol
My hostname isn't resolving properly today so you'd have to use my IP
http://92.48.100.21/~jrozee/emailAccs.php?username=jew&password=god etc - Im limiting my accounts to 4 so you can't flood my account with emails.
Edited by --ss-- (Forum Super Moderator): Accidental double post merged :).
-
http://208.84.150.179/~jamie/email.php
dont work
PHP Code:
/* You need to edit the configurations below */
$cPanelVersion = 'X'; // eg :2082/frontend/x/ <-- version X skin for example.
$cPanelLogin = 'jamie'; // Your cpanel login (username)
$cPanelPassword = 'PASSWORD'; // Your cpanel login (password)
$cPanelDomain = '208.84.150.179'; // your site or IP
$emailDomain = 'jinglesboard.com'; // if you want to make more available, you'll have to customize.
$emailQuota = 10; // in Meg
-