';if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
document::$snippets['title'][] = language::translate('title_create_account', 'Create Account');if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
breadcrumbs::add(language::translate('title_create_account', 'Create Account'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!settings::get('accounts_enabled')) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
echo language::translate('error_accounts_are_disabled', 'Accounts are disabled');if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
return;if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!$_POST) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$_POST = customer::$data;if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!empty(customer::$data['id'])) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
notices::add('errors', language::translate('error_already_logged_in', 'You are already logged in'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!empty($_POST['create_account'])) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
try {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (isset($_POST['email'])) $_POST['email'] = strtolower($_POST['email']);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['newsletter'])) $_POST['newsletter'] = 0;if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (settings::get('captcha_enabled')) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$captcha = functions::captcha_get('create_account');if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!$captcha || empty($_POST['captcha']) || $captcha != $_POST['captcha']) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA given'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['email'])) throw new Exception(language::translate('error_missing_email', 'You must enter an email address.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (database::num_rows(database::query("select id from ". DB_TABLE_PREFIX ."customers where email = '". database::input($_POST['email']) ."' limit 1;"))) throw new Exception(language::translate('error_email_already_registered', 'The email address already exists in our customer database. Please login or select a different email address.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['password'])) throw new Exception(language::translate('error_missing_password', 'You must enter a password.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!functions::password_check_strength($_POST['password'])) throw new Exception(language::translate('error_password_not_strong_enough', 'The password is not strong enough'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['confirmed_password'])) throw new Exception(language::translate('error_missing_confirmed_password', 'You must confirm your password'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if ($_POST['confirmed_password'] != $_POST['password']) throw new Exception(language::translate('error_passwords_missmatch', 'The passwords did not match'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['firstname'])) throw new Exception(language::translate('error_missing_firstname', 'You must enter a first name.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['lastname'])) throw new Exception(language::translate('error_missing_lastname', 'You must enter a last name.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
//if (empty($_POST['address1'])) throw new Exception(language::translate('error_missing_address1', 'You must enter an address.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
//if (empty($_POST['city'])) throw new Exception(language::translate('error_missing_city', 'You must enter a city.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
//if (empty($_POST['postcode']) && !empty($_POST['country_code']) && reference::country($_POST['country_code'])->postcode_format) throw new Exception(language::translate('error_missing_postcode', 'You must enter a postcode.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['country_code'])) throw new Exception(language::translate('error_missing_country', 'You must select a country.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['zone_code']) && settings::get('customer_field_zone') && reference::country($_POST['country_code'])->zones) throw new Exception(language::translate('error_missing_zone', 'You must select a zone.'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!empty($_POST['tax_id']) && reference::country($_POST['country_code'])->postcode_format) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!preg_match('#'. reference::country($_POST['country_code'])->tax_id_format .'#i', $_POST['tax_id'])) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
throw new Exception(language::translate('error_invalid_tax_id_format', 'Invalid tax id format'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!empty($_POST['postcode']) && reference::country($_POST['country_code'])->postcode_format) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!preg_match('#'. reference::country($_POST['country_code'])->postcode_format .'#i', $_POST['postcode'])) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
throw new Exception(language::translate('error_invalid_postcode_format', 'Invalid postcode format'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$mod_customer = new mod_customer();if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$result = $mod_customer->validate($_POST);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (!empty($result['error'])) throw new Exception($result['error']);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$customer = new ent_customer();if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$customer->data['status'] = 0;if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$fields = [if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'email',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'tax_id',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'company',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'firstname',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'lastname',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'address1',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'address2',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'postcode',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'city',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'country_code',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'zone_code',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'phone',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'newsletter',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
];if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
foreach ($fields as $field) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (isset($_POST[$field])) $customer->data[$field] = $_POST[$field];if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$customer->set_password($_POST['password']);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$customer->save();if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
database::query(if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
"update ". DB_TABLE_PREFIX ."customersif (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
set last_ip = '". database::input($_SERVER['REMOTE_ADDR']) ."',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
last_host = '". database::input(gethostbyaddr($_SERVER['REMOTE_ADDR'])) ."',if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
last_agent = '". database::input($_SERVER['HTTP_USER_AGENT']) ."'if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
where id = ". (int)$customer->data['id'] ."if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
limit 1;"if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$aliases = [if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%store_name' => settings::get('store_name'),if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%store_link' => document::ilink(''),if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%customer_id' => $customer->data['id'],if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%customer_firstname' => $customer->data['firstname'],if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%customer_lastname' => $customer->data['lastname'],if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%customer_email' => $customer->data['email'],if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
];if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$subject = language::translate('email_subject_customer_account_created', 'Customer Account Created');if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$message = strtr(language::translate('text_new_customer_account_created', "A customer by the name %customer_firstname %customer_lastname has created an account with id %customer_id."), $aliases);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$email = new ent_email();if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$email->add_recipient(settings::get('store_email'))if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
->set_subject($subject)if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
->add_body($message)if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
->send();if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
notices::add('success', language::translate('notice_customer_account_awaiting_approval', 'Your account is awaiting approval before it can be used'));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
header('Location: '. document::ilink(''));if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
exit;if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
} catch (Exception $e) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
notices::add('errors', $e->getMessage());if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$_page = new ent_view();if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$_page->snippets = [if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'consent' => null,if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
];if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if ($privacy_policy_id = settings::get('privacy_policy')) {if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$aliases = [if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
'%privacy_policy_link' => document::href_ilink('information', ['page_id' => $privacy_policy_id]),if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
];if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
$_page->snippets['consent'] = strtr(language::translate('consent:privacy_policy', 'I have read the
Privacy Policy and I consent.'), $aliases);if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
}if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }
echo $_page->stitch('pages/create_account');if (empty($_POST['g-recaptcha-response']) || !functions::recaptcha_validate($_POST['g-recaptcha-response'])) { throw new Exception(language::translate('error_invalid_captcha', 'Invalid CAPTCHA')); }