WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
if (!preg_match('#^[\p{Latin}'.$us.'0-9.+&\s\-]{0,50}$#u', $value)) {
if (!preg_match('#^[\p{Cyrillic}+|\p{Latin}'.$us.'0-9.+&\s\-]{0,50}$#u', $value)) {
if (!preg_match('#^[A-Z]{2}$#u', $value)) {
if (!preg_match (#^[a-zA-Z\p{Cyrillic}\d\s\-]+$/u', $value)) {
if (!preg_match('#^[\p{Cyrillic}+|\p{Latin}'.$us.'0-9.+&\s\-]{2}$#u', $value)) {
if (!empty($MOD_BAKERY['ADD_CHARSET'])) { switch (strtolower($MOD_BAKERY['ADD_CHARSET'])) { case 'cyrillic':// $us = '\p{Cyrillic}'; $us = '+|\p{Cyrillic}'; break; case 'greek':// $us = '\p{Greek}'; $us = '+|\p{Greek}'; break; case 'hebrew':// $us = '\p{Hebrew}'; $us = '+|\p{Hebrew}'; break; case 'arabic':// $us = '\p{Arabic}'; $us = '+|\p{Arabic}'; break; }}
$us = '';if (!empty($MOD_BAKERY['ADD_CHARSET'])) { switch (strtolower($MOD_BAKERY['ADD_CHARSET'])) { case 'cyrillic': $us = '\p{Cyrillic}'; break; case 'greek': $us = '\p{Greek}'; break; case 'hebrew': $us = '\p{Hebrew}'; break; case 'arabic': $us = '\p{Arabic}'; break; default: $us = '\p{Latin}'; break; }}// Check the textfieldsforeach ($_POST as $field => $value) { if ($field != 'pay_methods') { $field = strip_tags($field); $value = strip_tags($value); if (strpos($field, 'company') !== false) { if (!preg_match('/^[a-zA-Z'. $us .'0-9.+&\s\-]{1,50}+$/u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_NAME']; } } if (strpos($field, 'first_name') !== false) { if (!preg_match('/^[a-zA-Z'. $us .'0-9\s\-]{1,50}+$/u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_NAME']; } } if (strpos($field, 'last_name') !== false) { if (!preg_match('/^[a-zA-Z'. $us .'0-9\s\-]{1,50}+$/u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_NAME']; }else{echo "geht doch";} } if (strpos($field, 'cust_tax_no') !== false && strpos($setting_tax_group, $setting_shop_country) !== false) { include('check_vat.php'); $value = trim($value); if (!check_vat($value, $setting_tax_group)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_CUST_TAX_NO']; } } if (strpos($field, 'street') !== false) { if (!preg_match('/^[a-zA-Z'. $us .'0-9.+&\s\-]{1,50}$/u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_STREET']; } } if (strpos($field, 'city') !== false) { if (!preg_match('/^[a-zA-Z'. $us .'0-9.+&\s\-]{1,50}$/u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_CITY']; } } if (strpos($field, 'state') !== false) { if (!preg_match('/^[a-zA-Z'. $us .'0-9.+&\s\-]{1,50}$/u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_STATE']; } } if (strpos($field, 'country') !== false) { if (!preg_match('#^[A-Z]{2}$#u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_COUNTRY']; } } if (strpos($field, 'email') !== false) { if (!preg_match('#^.+@.+\..+$#u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_EMAIL']; } } if (strpos($field, 'zip') !== false) { if (!preg_match('#^[A-Za-z0-9\s\-]{4,10}$#u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_ZIP']; } } if (strpos($field, 'phone') !== false) { if (!preg_match('#^[0-9)(xX+./\s\-]{7,20}$#u', $value)) { $error_bg[] = $field; $errors[] = htmlspecialchars($value, ENT_QUOTES) . ' ' . $MOD_BAKERY['ERR_INVAL_PHONE']; } } $$field = strip_tags(trim($value)); }}
$MOD_BAKERY['ADD_CHARSET'] = 'Cyrillic';
Здравейте Румен ЗапряновБлагодарим Ви за поръчката от El Tempo.Ето детайли за вашата поръчка: Номер: 0002 Име: Пилешка супа Хляб: Без хляб Количество: 1 Цена: BGN 2.90 Доставка: BGN 1.00 Сума: BGN 2.90 ------------------------------------- Междинен сбор: BGN 2.90 Цена за доставката: BGN 1.00 Inclusive 0.0% Данък: BGN 0.00 ------------------------------------- ------------------------------------- Общо: BGN 3.90 -------------------------------------Поръчката ще бъде доставена на адрес: Румен Запрянов Бусманци ул Циклама 2 1520 София София +359876415004Вие избрахте да платите при доставката на куриера. Благодарим Ви за доверието в нас.Поздрави,El Tempo
just should not have , and . in the fields
again the same problem with the mail confirmation like before .... both e-mails not readable:
// Make email headers if (defined('DEFAULT_CHARSET')) { $charset = DEFAULT_CHARSET; } else { $charset = 'utf-8'; }
$charset = 'utf-8';
Is there a difference for WB if some of the tables are UTF8_unicode_ci other tables are UTF8_general_ci?
For any Unicode character set, operations performed using the _general_ci collation are faster than those for the _unicode_ci collation. For example, comparisons for the utf8_general_ci collation are faster, but slightly less correct, than comparisons for utf8_unicode_ci. The reason for this is that utf8_unicode_ci supports mappings such as expansions; that is, when one character compares as equal to combinations of other characters. For example, in German and some other languages “ß” is equal to “ss”. utf8_unicode_ci also supports contractions and ignorable characters. utf8_general_ci is a legacy collation that does not support expansions, contractions, or ignorable characters. It can make only one-to-one comparisons between characters.
define('DB_CHARSET', 'utf8mb4_unicode_ci');