[TEP-COMMIT] [CVS catalog] Store the IP address for all orders and customer accounts as standard
anonymous-OfajU3CKLf1/[email protected] 3 Apr 2004 10:27:46 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog on MAIN checkout_process.php +1 1.130 -> 1.131 create_account.php +2 1.70 -> 1.71 install/oscommerce.sql +2 1.91 -> 1.92 /oscommerce_sample_data.sql +1 -1 1.1 -> 1.2 +6 -1 4 modified files Store the IP address for all orders and customer accounts as standard ---------- catalog /catalog checkout_process.php 1.130 -> 1.131 diff -u -r1.130 -r1.131 --- checkout_process.php 2003/12/18 23:52:14 1.130 +++ checkout_process.php 2004/04/03 10:27:42 1.131 @@ -65,6 +65,7 @@ 'customers_telephone' => $order->customer['telephone'], 'customers_email_address' => $order->customer['email_address'], 'customers_address_format_id' => $order->customer['format_id'], + 'customers_ip_address' => tep_get_ip_address(), 'delivery_name' => $order->delivery['firstname'] . ' ' . $order->delivery['lastname'], 'delivery_company' => $order->delivery['company'], 'delivery_street_address' => $order->delivery['street_address'], ---------- catalog /catalog create_account.php 1.70 -> 1.71 diff -u -r1.70 -r1.71 --- create_account.php 2004/03/28 17:36:36 1.70 +++ create_account.php 2004/04/03 10:27:42 1.71 @@ -187,6 +187,8 @@ 'customers_telephone' => $telephone, 'customers_fax' => $fax, 'customers_newsletter' => $newsletter, + 'customers_status' => '1', + 'customers_ip_address' => tep_get_ip_address(), 'customers_password' => tep_encrypt_password($password)); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; ---------- catalog /catalog /install oscommerce.sql 1.91 -> 1.92 diff -u -r1.91 -r1.92 --- oscommerce.sql 2004/02/16 06:59:32 1.91 +++ oscommerce.sql 2004/04/03 10:27:43 1.92 @@ -172,6 +172,7 @@ customers_password varchar(40) NOT NULL, customers_newsletter char(1), customers_status int(1) DEFAULT '0', + customers_ip_address varchar(15), PRIMARY KEY (customers_id) ); @@ -269,6 +270,7 @@ customers_telephone varchar(32) NOT NULL, customers_email_address varchar(96) NOT NULL, customers_address_format_id int(5) NOT NULL, + customers_ip_address varchar(15), delivery_name varchar(64) NOT NULL, delivery_company varchar(32), delivery_street_address varchar(64) NOT NULL, ---------- catalog /catalog /install oscommerce_sample_data.sql 1.1 -> 1.2 diff -u -r1.1 -r1.2 --- oscommerce_sample_data.sql 2004/02/16 06:59:33 1.1 +++ oscommerce_sample_data.sql 2004/04/03 10:27:43 1.2 @@ -105,7 +105,7 @@ INSERT INTO osc_categories_description VALUES ( '19', '3', 'Accion'); INSERT INTO osc_categories_description VALUES ( '20', '3', 'Estrategia'); -INSERT INTO osc_customers VALUES ( '1', 'm', 'John', 'doe', '2001-01-01 00:00:00', '[email protected]', '1', '12345', '', 'd95e8fa7f20a009372eb3477473fcd34:1c', '0', '1'); +INSERT INTO osc_customers VALUES ( '1', 'm', 'John', 'doe', '2001-01-01 00:00:00', '[email protected]', '1', '12345', '', 'd95e8fa7f20a009372eb3477473fcd34:1c', '0', '1', '127.0.0.1'); INSERT INTO osc_customers_info VALUES('1', '', '0', now(), '', '0'); CVSspam 0.2.8 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click