1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60:
<?php
function message_activation($obj) {
$obj->set('user_key', $obj->user_status);
$obj->set('user_mail', PHPShopSecurity::TotalClean($_POST['mail_new'], 3));
$obj->set('user_name', PHPShopSecurity::TotalClean($_POST['name_new'], 4));
$obj->set('user_login', $_POST['login_new']);
$obj->set('user_password', $_POST['password_new']);
$admin_mail = $obj->PHPShopSystem->getParam('adminmail2');
$title = $obj->lang('activation_title') . " " . PHPShopSecurity::TotalClean($_POST['name_new']);
if ($obj->PHPShopSystem->ifSerilizeParam('admoption.user_mail_activate')) {
$PHPShopMail = new PHPShopMail($_POST['mail_new'], $admin_mail, $title, '', true, true);
$content = ParseTemplateReturn('./phpshop/lib/templates/users/mail_user_activation.tpl', true);
$PHPShopMail->sendMailNow($content);
$obj->set('formaContent', ParseTemplateReturn('phpshop/lib/templates/users/message_activation.tpl', true));
} elseif ($obj->PHPShopSystem->ifSerilizeParam('admoption.user_mail_activate_pre')) {
$PHPShopMail = new PHPShopMail($_POST['mail_new'], $admin_mail, $title, '', true, true);
$content = ParseTemplateReturn('./phpshop/lib/templates/users/mail_user_activation_by_admin.tpl', true);
$PHPShopMail->sendMailNow($content);
$title = $obj->lang('activation_admin_title') . " " . $_POST['name_new'];
$PHPShopMail = new PHPShopMail($admin_mail, $admin_mail, $title, '', true, true);
$content = ParseTemplateReturn('./phpshop/lib/templates/users/mail_admin_activation.tpl', true);
$PHPShopMail->sendMailNow($content);
$obj->set('formaContent', ParseTemplateReturn('phpshop/lib/templates/users/message_admin_activation.tpl', true), true);
}
$obj->set('formaTitle', $obj->lang('user_register_title'));
$obj->ParseTemplate($obj->getValue('templates.users_page_list'));
}
?>