$newuser->srvrecords = 1; } } $newuser->nbrows = $config->defaultnbrows; if (isset($_REQUEST) && !empty($_REQUEST['nbrows'])) { $newuser->nbrows = intval($_REQUEST['nbrows']); } $newuser->lang = $config->defaultlanguage; $langlist = GetDirList('includes/strings'); if (in_array($newlang, $langlist, true)) { $newuser->lang = $newlang; } $options = sprintf('advanced=%d;ipv6=%d;nbrows=%d;grouprights=A;txtrecords=%d;srvrecords=%d;', $newuser->advanced, $newuser->ipv6, $newuser->nbrows, $newuser->txtrecords, $newuser->srvrecords); $newuser->grouprights = 'A'; $newuser->options = $options; $newuser->changeOptions(); // generate random ID $randomid = $newuser->generateIDEmail(); // insert ID in DB if (!$newuser->storeIDEmail($newuser->userid, $email, $randomid)) { $content .= $newuser->error; } else { include 'includes/createuser_mail.php'; // set $mailbody variable $result = mailer($config->emailfrom, $email, sprintf('%s %s', $config->sitename, $l['str_email_validation']), sprintf('Content-Type: text/plain; charset=%s', $l['str_content_type']), $mailbody); if ($result) { $content .= sprintf('<p>%s<br>%s</p>', $l['str_email_successfully_sent_explanation1'], $l['str_email_successfully_sent_explanation2']); } else { $content .= $l['str_email_error_error_occured']; $content .= sprintf($l['str_email_error_please_verify_address_x'], $email); $content .= sprintf($l['str_in_doubt_you_can_contact_us_at_x'], sprintf('<a href="mailto:%s" class="linkcolor">%s</a>', $config->contactemail, $config->contactemail));