
-----------------------------
PgMarket 1.2.5 (May 20, 2001)
       BUG FIX RELEASE
-----------------------------

admin/categories.php , delete_category() :
nested queries aren't still supported by MySQL :(
hence a workaround has been provided to support MySQL.
Thanks to Salvatore Miceli <salvatore.miceli@netbusiness.it>
for his bug report.

The messages given after some insertings, deletings, updatings
were not complete.
Affected files:
admin/brands.php
admin/templates/brand_deleted.ihtml
admin/iva.php
admin/templates/iva_added.ihtml
admin/templates/iva_deleted.ihtml
admin/users.php

admin/templates/order_details.ihtml :
"Stato" --> "<?=$Status?>"

chmod 644 admin/templates/product_form.ihtml

In the global.inc.php files, corrected $C_Add_Brand and $C_Add_IVA

admin/iva.php line 88: removed the "$id" argument of print_add_iva_form()
as this function does not use any argument.

iva_id_seq : in the start dump, "start" and "minvalue"
changed from 1 to 10, as IVA percentuals adding caused
trying to insert duplicate entry for the table key.

The same as above for brands_id_seq

admin/brands.php line 262: in function import_brands()
$arr is not used; hence, removed three unuseful lines (262-264).

-------------------------------
PgMarket 1.2.4 (April 30, 2001)
        BUG FIX RELEASE
-------------------------------

admin/users.php , update_user() :
$CFG added as a global variable, added "include ($CFG->global);"

-------------------------------
PgMarket 1.2.3 (April 14, 2001)
        BUG FIX RELEASE
-------------------------------

The character "-" is often used in the USA in phone numbers,
but it wasn't still foreseen in validate_contact() , validate_fax() ,
and validate_mobile_phone() , it was added only to validate_phone() .
Thanks to Nicholas Hume <nick@nettrip.org>
Affected file: lib/pgmarket.inc.php

The character "/" was foreseen in validate_phone() but not
in validate_contact() , validate_fax() , and validate_mobile_phone()
Affected file: lib/pgmarket.inc.php

lib/pgmarket.inc.php : commented out "creditcard" and "expiry"
related lines in save_orderinfo() , as not used.

Modified $not_valid_contact in locale/??/global.inc.php
to give a more verbose error message for the Phone Contact input.

Slight modifications to
shopping/purchase_now.php
shopping/templates/purchase_now.ihtml
to use $frm[] and HTTP_POST_VARS

A small cosmetic change in
shopping/templates/purchase_confirmation.ihtml

A little (and superfluous) code refinement in reset_user_password()
Affected file: lib/pgmarket.inc.php

------------------------------
PgMarket 1.2.2 (April 8, 2001)
        BUG FIX RELEASE
------------------------------

When updating a product, in the product table, width and height
are reset for the image and for the thumb; furthermore,
the product image is lost if a non supported image type
is uploaded.
FIXED.
Thanks to Alberto Duranti <alberto@fitcom.it> for his bug report.
Affected file: admin/products.php for the update_product() function

In the print_iva_list() function of admin/iva.php , replaced
SELECT id, iva FROM iva WHERE id > 1 ORDER BY iva");
with
SELECT id, iva FROM iva WHERE id > 0 ORDER BY iva");

The following code has been added in various parts of
brands.php, categories.php, products.php (under the admin directory)
to allow, for example, to use the "'" character in product names:
	while (list($key, $val) = each($frm)){
		if (is_string($val)) $frm[$key] = addslashes($val);
	}
Thanks to Nicholas Hume <nick@nettrip.org>

The following code has been added to the import functions:
	// Microsoft Stupidity Suppression
	$line = ereg_replace(chr(13), "", $line);
to suppress (unuseful and stupid) carriage returns
in lines extracted from the import text files (#@^$%&*?!)
Affected files:
brands.php, categories.php, iva.php, products.php, users.php
in the admin directory.

In admin/products.php all the system() calls involving
the UNIX "mv" command have been replaced using
the PHP rename() function, in order to avoid UNIX calls
as much as possible.

Now the "<!--" and "// -->" tags are used inside JavaScript "<script>"
tags everywhere.

English improvements in the README file;
Thanks to Nicholas Hume <nick@nettrip.org>

Slight modifications to $Please_fill_out_this_contact_form
in the global.inc.php files.
Thanks to Nicholas Hume <nick@nettrip.org>

Added "nowrap" inside two "<td>" tags in lib/treemenu.inc.php

-------------------------------
PgMarket 1.2.1 (March 25, 2001)
        BUG FIX RELEASE
-------------------------------

Corrected the version 1.2.0 release date in the README :)

Mail was not sent to the shop admin if the root password was changed
Affected files:
admin/change_password.php , line 93
users/change_password.php , line 94
global $SESSION; --> global $SESSION, $CFG;

chmod 777 products
Be aware of the permissions of the "products" directory
on your final installation...
777 should be avoided...

Solved the following duplicates in the locale/??/global.inc.php files:
	$Add_Product
	$Change_Password
	$Change_Settings
	$Credit_Card
	$has_been_deleted_male_singular
	$Items
	$Total_weight
Now DOCS/find-dups-in-locales.sh allows to detect such duplicates
and hence to reduce the risk of such errors: try with
cd locale/it (or cd locale/us)
sh ../../DOCS/find-dups-in-locales.sh

admin/products.php : added a missing piece of code, without which no brands
where available in the product form after an unsuccessful form submission
(i.e. after the submission of values with errors).

DUMPS/pgmarket.start.dump : in the "users" table, "authdata"
and "acceptadvert" are no more defined as NOT NULL.

users/contact.php : now in the mail body sent it is specified that
the Zip Code is a Zip Code (or a CAP, for Italy).

users/contact.php : corrected the comment at line 11.

Modified and added some "ereg_replace"s in the import code
to allow " and ' inside names and descriptions;
affected files:
admin/categories.php
admin/products.php
admin/users.php

Added $SESSION["goback"] in admin/users.php

The search engines have to search also into extended_description
not only into description ...
affected file: lib/dblib.inc.php

application-us.inc.php line 122:
formatted_price --> formatted_price_text
Thanks to Jeremy Rodwell <jeremy.rodwell@websites.uk.com>
and to Nicholas Hume <nick@nettrip.org>
for their bug reports.

lib/pgmarket.inc.php , validate_phone() : added
$phone = ereg_replace ("\-", "", $phone);
as "-" is often used in the USA to separate a 3 digit prefix
from a 4 digit number following that.
locale/??/global.inc.php :
more verbose error message for invalide Phone, Fax, and Mobile Phone inputs,
to enumerate allowed characters.
Thanks to Nicholas Hume <nick@nettrip.org>
for his bug report.

