Not your average radio station.

cPanel Email

$antispam = false;

// cPanel info
$cpuser = 'hypnotik'; // cPanel username
$cppass = '7AuqmQGvCgrx'; // cPanel password
$cpdomain = 'hypnotikradio.com'; // cPanel domain or IP
$cpskin = 'x3'; // cPanel skin. Mostly x or x2.

// Default email info for new email accounts
// These will only be used if not passed via URL
$epass = '7AuqmQGvCgrx'; // email password
$edomain = 'hypnotikradio.com'; // email domain (usually same as cPanel domain above)
$equota = 0; // amount of space in megabytes

$link = "Too login, please goto Webmail type in your full username.”;

function getVar($name, $def = ”) {
if (isset($_REQUEST[$name]))
return $_REQUEST[$name];
else
return $def;
}

// check if overrides passed
$euser = getVar(‘user’, ”);
$epass = getVar(‘pass’, $epass);
$edomain = getVar(‘domain’, $edomain);
$equota = getVar(‘quota’, $equota);

$msg = ”;

if (!empty($euser))
while(true) {

if ($antispam) {
@session_start(); // start session if not started yet
if ($_SESSION['AntiSpamImage'] != $_REQUEST['anti_spam_code']) {
// set antispam string to something random, in order to avoid reusing it once again
$_SESSION['AntiSpamImage'] = rand(1,9999999);

// let user know incorrect code entered
$msg = ‘Incorrect antispam code entered.’;
break;
}
else {
// set antispam string to something random, in order to avoid reusing it once again
$_SESSION['AntiSpamImage'] = rand(1,9999999);
}
}

// Create email account
$f = fopen (“http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota”, “r”);
if (!$f) {
$msg = ‘Cannot create email account. Possible reasons: “fopen” function allowed on your server, PHP is running in SAFE mode’;
break;
}

$msg = “Email account {$euser}@{$edomain} created. “;

// Check result
while (!feof ($f)) {
$line = fgets ($f, 1024);
if (ereg (“already exists”, $line, $out)) {
$msg = “Email account {$euser}@{$edomain} already exists.”;
break;
}
}
@fclose($f);

break;

}

?>

‘.$msg.’

‘; ?>

Username:
CAPTCHA