* @subpackage functions */ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See below for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details. // assign next step in installation process $gBitSmarty->assign('next_step', $step); if (!empty($_REQUEST['admin_submit'])) { $mail = $errors = array(); if (empty($_REQUEST['login'])) { $errors['login'] = "******"; } if (empty($_REQUEST['email'])) { $errors['email'] = "You must specify an email address."; } else { BitUser::verifyAnonEmail($_REQUEST['email'], $errors); } if ($_REQUEST['password'] != $_REQUEST['pass_confirm']) { $errors['password'] = "******"; $_REQUEST['password'] = ''; } elseif (strlen($_REQUEST['password']) < 4) { $errors['password'] = "******"; $_REQUEST['password'] = ''; } if (empty($errors)) { $app = '_done'; $gBitSmarty->assign('next_step', $step + 1); $gBitSmarty->assign('pass_disp', preg_replace('/./i', '•', $_REQUEST['password'])); // do a mailer check as well - we need to remove trailing options for the sendmail_path check if (!empty($_REQUEST['testemail'])) { if (($mail_path = trim(preg_replace("#\\s+\\-[a-zA-Z]+.*\$#", "", ini_get('sendmail_path')))) && is_file($mail_path)) {