@@ 99-109 (lines=11) @@ | ||
96 | $error = true; |
|
97 | ||
98 | $messageStack->add('create_account', OSCOM::getDef('entry_email_address_check_error')); |
|
99 | } else { |
|
100 | $Qcheck = $OSCOM_Db->prepare('select customers_id from :table_customers where customers_email_address = :customers_email_address limit 1'); |
|
101 | $Qcheck->bindValue(':customers_email_address', $email_address); |
|
102 | $Qcheck->execute(); |
|
103 | ||
104 | if ($Qcheck->fetch() !== false) { |
|
105 | $error = true; |
|
106 | ||
107 | $messageStack->add('create_account', OSCOM::getDef('entry_email_address_error_exists')); |
|
108 | } |
|
109 | } |
|
110 | ||
111 | if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) { |
|
112 | $error = true; |
@@ 38-47 (lines=10) @@ | ||
35 | ||
36 | $OSCOM_Db = Registry::get('Db'); |
|
37 | ||
38 | if ( (int)MODULE_CONTENT_CHECKOUT_SUCCESS_REDIRECT_OLD_ORDER_MINUTES > 0 ) { |
|
39 | $Qcheck = $OSCOM_Db->prepare('select 1 from :table_orders where orders_id = :orders_id and date_purchased < date_sub(now(), interval :limit_minutes minute) limit 1'); |
|
40 | $Qcheck->bindInt(':orders_id', $order_id); |
|
41 | $Qcheck->bindInt(':limit_minutes', MODULE_CONTENT_CHECKOUT_SUCCESS_REDIRECT_OLD_ORDER_MINUTES); |
|
42 | $Qcheck->execute(); |
|
43 | ||
44 | if ($Qcheck->fetch() !== false) { |
|
45 | OSCOM::redirect('account.php'); |
|
46 | } |
|
47 | } |
|
48 | } |
|
49 | ||
50 | function isEnabled() { |