Not working at all. I'v installed the module into the modules directory and enabled it also I enabled the creation of email accounts for each user and disabled the creation of ftp accounts and nothing happened.
I don't think it has something to do with my host because I previously used the following code and it worked well:
<?php
include 'config.php';
// if form has been submitted
if(isset($_POST['submit'])) {
$newmail_str = ""; // $newmail_str is the string we'll append entries to
if (!$_POST['fname'] | !$_POST['lname'] | !$_POST['password1'] | !$_POST['password2'] | !$_POST['altmail'] | !$_POST['newmail']) {
die('You did not fill in a required field.');
}
// check passwords match
if ($_POST['password1'] != $_POST['password2']) {
die('Passwords did not match.');
}
// check e-mail format
if (!preg_match("/.*@.*..*/", $_POST['altmail']) | preg_match("/(<|>)/", $_POST['altmail'])) {
die('Invalid e-mail address.');
}
// no HTML tags allowed
$_POST['fname'] = strip_tags($_POST['fname']);
$_POST['lname'] = strip_tags($_POST['lname']);
$_POST['newmail'] = strip_tags($_POST['newmail']);
$_POST['password2'] = strip_tags($_POST['password2']);
$_POST['altmail'] = strip_tags($_POST['altmail']);
if (!get_magic_quotes_gpc()) {
$_POST['fname'] = addslashes($_POST['fname']);
$_POST['lname'] = addslashes($_POST['lname']);
$_POST['username'] = addslashes($_POST['username']);
$_POST['password2'] = addslashes($_POST['password2']);
$_POST['altmail'] = addslashes($_POST['altmail']);
}
// Put post fields variable together for Curling....bad joke ;)
$postfields = "email=$eEmail&domain=$eDomain&password=$ePassword"a=$eQuota";
// initialise Curl
$popPost = curl_init();
// Set Curl Option: URL
$url="http://$domain:2082/frontend/$theme/mail/doaddpop.html";
curl_setopt($popPost, CURLOPT_URL, $url);
// Set Curl Option: Username:Password
curl_setopt($popPost, CURLOPT_USERPWD, "$username:$password");
// Set Curl Option: Post style request = true
curl_setopt($popPost, CURLOPT_POST, 1);
// Set Curl Option: Collect result from script
curl_setopt($popPost, CURLOPT_RETURNTRANSFER, 1);
// Set Curl Option: Set timeout to 15 seconds
curl_setopt($popPost, CURLOPT_TIMEOUT, 15);
// Set Curl Option: Post data
curl_setopt($popPost, CURLOPT_POSTFIELDS, $postfields);
//output results
$popPost_result = curl_exec ($popPost);
// Close Curl
curl_close ($popPost);
// Output Curl results
$start = strpos($popPost_result, 'Account');
$end = strpos($popPost_result, 'created.');
$subset = substr($popPost_result, $start, $end+8-$start);
$subset = str_replace('login ', "login
", $subset); //for neatness
//$subset=str_replace("
if (preg_match ('/Sorry/i', "$subset")) {
print "
Sorry that account already exists.
Back";
//print ($subset);
}
elseif(preg_match ('/You must specify/i', "$subset")) {
print "
You must specify a password.