|
@@ 1349-1353 (lines=5) @@
|
| 1346 |
|
} |
| 1347 |
|
} |
| 1348 |
|
|
| 1349 |
|
if ($check_session == true) { |
| 1350 |
|
if ( (tep_session_is_registered('customer_id') == false) || ($id != $customer_id) ) { |
| 1351 |
|
return 0; |
| 1352 |
|
} |
| 1353 |
|
} |
| 1354 |
|
|
| 1355 |
|
$orders_check_query = tep_db_query("select count(*) as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$id . "' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and s.public_flag = '1'"); |
| 1356 |
|
$orders_check = tep_db_fetch_array($orders_check_query); |
|
@@ 1372-1376 (lines=5) @@
|
| 1369 |
|
} |
| 1370 |
|
} |
| 1371 |
|
|
| 1372 |
|
if ($check_session == true) { |
| 1373 |
|
if ( (tep_session_is_registered('customer_id') == false) || ($id != $customer_id) ) { |
| 1374 |
|
return 0; |
| 1375 |
|
} |
| 1376 |
|
} |
| 1377 |
|
|
| 1378 |
|
$addresses_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$id . "'"); |
| 1379 |
|
$addresses = tep_db_fetch_array($addresses_query); |