Revision 2 admin/customers.php
customers.php | ||
---|---|---|
578 | 578 |
$sql_data_array['customers_dob'] = xtc_date_raw($customers_dob); |
579 | 579 |
} |
580 | 580 |
|
581 |
# TESTMODUS |
|
582 |
if(isset($_POST['ip_testmodus'])) { |
|
583 |
$sql_data_array['ip_testmodus'] = $_SERVER['REMOTE_ADDR']; |
|
584 |
} |
|
585 |
|
|
581 | 586 |
xtc_db_perform(TABLE_CUSTOMERS, $sql_data_array, 'update', "customers_id = '".$customers_id."' AND customers_default_address_id = '".$address_book_id."'"); |
582 | 587 |
|
588 |
# TESTMODUS |
|
589 |
$ip_query = xtc_db_query("select ip_testmodus from ".TABLE_CUSTOMERS." where ip_testmodus != ''"); |
|
590 |
if($fp = @fopen(DIR_FS_DOCUMENT_ROOT . "includes/testmodus.csv", "w")){ |
|
591 |
while($ips = xtc_db_fetch_array($ip_query)){ |
|
592 |
if(isset($_POST['ip_testmodus']) || $ips['ip_testmodus'] != $_SERVER['REMOTE_ADDR']) |
|
593 |
fwrite($fp, $ips['ip_testmodus']."\n"); |
|
594 |
} |
|
595 |
fclose($fp); |
|
596 |
} |
|
597 |
|
|
583 | 598 |
xtc_db_query("UPDATE ".TABLE_CUSTOMERS_INFO." |
584 | 599 |
SET customers_info_date_account_last_modified = now() |
585 | 600 |
WHERE customers_info_id = '".$customers_id."'"); |
Auch abrufbar als: Unified diff