Example #1
0
 function sendRegistrationCode()
 {
     global $opt, $translate;
     $countriesList = new countriesList();
     $mail = new mail();
     $mail->name = 'register';
     $mail->to = $this->getEMail();
     $mail->subject = $translate->t('Registration confirmation', '', basename(__FILE__), __LINE__);
     $mail->assign('domain', $opt['page']['domain']);
     $mail->assign('activation_page', $opt['page']['absolute_url'] . 'activation.php');
     $mail->assign('short_activation_page', $opt['page']['absolute_url'] . 'a.php');
     $mail->assign('username', $this->getUsername());
     $mail->assign('userid', $this->getUserId());
     $mail->assign('last_name', $this->getLastName());
     $mail->assign('first_name', $this->getFirstName());
     $mail->assign('country', $countriesList->getCountryLocaleName($this->getCountryCode()));
     $mail->assign('code', $this->getActivationCode());
     if ($mail->send()) {
         return true;
     } else {
         return false;
     }
 }
Example #2
0
                $bReasonFound = false;
                // username or email already exists
                if ($user->existUsername($user->getUsername())) {
                    $tpl->assign('error_username_exists', 1);
                    $bReasonFound = true;
                }
                if ($user->existEMail($user->getEMail())) {
                    $tpl->assign('error_email_exists', 1);
                    $bReasonFound = true;
                }
                if ($bReasonFound == false) {
                    $tpl->assign('error_unkown', 1);
                }
            }
        }
    }
}
$rs = $countriesList->getRS($country == 'XX' ? null : $country, $show_all_countries);
$tpl->assign_rs('countries', $rs);
sql_free_result($rs);
if (!$countriesList->defaultUsed()) {
    $show_all_countries = 1;
}
$tpl->assign('show_all_countries', $show_all_countries);
$tpl->assign('country', $country);
$tpl->assign('country_full', $countriesList->getCountryLocaleName($country));
$tpl->assign('email', $email);
$tpl->assign('first_name', $first_name);
$tpl->assign('last_name', $last_name);
$tpl->assign('username', $username);
$tpl->display();
Example #3
0
 function sendRegistrationCode()
 {
     global $translate;
     $countriesList = new countriesList();
     $mail = new mail();
     $mail->name = 'register';
     $mail->to = $this->getEMail();
     $mail->subject = $translate->t('Registration confirmation', '', basename(__FILE__), __LINE__);
     $mail->assign('username', $this->getUsername());
     $mail->assign('last_name', $this->getLastName());
     $mail->assign('first_name', $this->getFirstName());
     $mail->assign('country', $countriesList->getCountryLocaleName($this->getCountryCode()));
     $mail->assign('code', $this->getActivationCode());
     if ($mail->send()) {
         return true;
     } else {
         return false;
     }
 }