asmer 14.03.2012 19:50 Psi+

бля, в коде одного говномагазина ТАКОЕ:
$sql_data_array = array ('customers_id' => $_SESSION['customer_id'], 'customers_name' => $order→customer['firstname'].' '.$order→customer['secondname'].' '.$order→customer['lastname'], 'customers_firstname' => $order→customer['firstname'], 'customers_secondname' => $order→customer['secondname'], 'customers_lastname' => $order→customer['lastname'], 'customers_cid' => $order→customer['csID'], 'customers_vat_id' => $_SESSION['customer_vat_id'], 'customers_company' => $order→customer['company'], 'customers_status' => $_SESSION['customers_status']['customers_status_id'], 'customers_status_name' => $_SESSION['customers_status']['customers_status_name'], 'customers_status_image' => $_SESSION['customers_status']['customers_status_image'], 'customers_status_discount' => $discount, 'customers_street_address' => $order→customer['street_address'], 'customers_suburb' => $order→customer['suburb'], 'customers_city' => $order→customer['city'], 'customers_postcode' => $order→customer['postcode'], 'customers_state' => $order→customer['state'], 'customers_country' => $order→customer['country']['title'], 'customers_telephone' => $order→customer['telephone'], 'customers_email_address' => $order→customer['email_address'], 'customers_address_format_id' => $order→customer['format_id'], 'delivery_name' => $order→delivery['firstname'].' '.$order→delivery['secondname'].' '.$order→delivery['lastname'], 'delivery_firstname' => $order→delivery['firstname'], 'delivery_secondname' => $order→delivery['secondname'], 'delivery_lastname' => $order→delivery['lastname'], 'delivery_company' => $order→delivery['company'], 'delivery_street_address' => $order→delivery['street_address'], 'delivery_suburb' => $order→delivery['suburb'], 'delivery_city' => $order→delivery['city'], 'delivery_postcode' => $order→delivery['postcode'], 'delivery_state' => $order→delivery['state'], 'delivery_country' => $order→delivery['country']['title'], 'delivery_country_iso_code_2' => $order→delivery['country']['iso_code_2'], 'delivery_address_format_id' => $order→delivery['format_id'], 'billing_name' => $order→billing['firstname'].' '.$order→billing['secondname'].' '.$order→billing['lastname'], 'billing_firstname' => $order→billing['firstname'], 'billing_secondname' => $order→billing['secondname'], 'billing_lastname' => $order→billing['lastname'], 'billing_company' => $order→billing['company'], 'billing_street_address' => $order→billing['street_address'], 'billing_suburb' => $order→billing['suburb'], 'billing_city' => $order→billing['city'], 'billing_postcode' => $order→billing['postcode'], 'billing_state' => $order→billing['state'], 'billing_country' => $order→billing['country']['title'], 'billing_country_iso_code_2' => $order→billing['country']['iso_code_2'], 'billing_address_format_id' => $order→billing['format_id'], 'payment_method' => $order→info['payment_method'], 'payment_class' => $order→info['payment_class'], 'shipping_method' => $order→info['shipping_method'], 'shipping_class' => $order→info['shipping_class'], 'cc_type' => $order→info['cc_type'], 'cc_owner' => $order→info['cc_owner'], 'cc_number' => $order→info['cc_number'], 'cc_expires' => $order→info['cc_expires'], 'cc_start' => $order→info['cc_start'], 'cc_cvv' => $order→info['cc_cvv'], 'cc_issue' => $order→info['cc_issue'], 'date_purchased' => 'now()', 'orders_status' => $tmp_status, 'currency' => $order→info['currency'], 'currency_value' => $order→info['currency_value'], 'customers_ip' => $customers_ip, 'language' => $_SESSION['language'], 'comments' => $order→info['comments'], 'orig_reference' => $order→customer['orig_reference'], 'login_reference' => $order→customer['login_reference']);

Это все в одну строчку, да. ~3700 символов.

1. 0xd34df00d 14.03.2012 19:50 Azoth_primary

Я думаю, это все кодогенерил очень умный человек на хаскеле.

2. asmer0xd34df00d /1 14.03.2012 19:51 Psi+

это просто массив без адекватных переносов.

3. asmer 14.03.2012 19:54 Psi+

156 — 91 = 65 переменных, бля.

Do you really want to delete ?