
------------------------------------
PgMarket 1.0.3 (February 11th, 2001)
           Bug fix release
------------------------------------

If both the product id and image was changed,
the old image and thumb where not removed. Fixed.

Removed a piece of unseful code from admin/products.php

Fixed a bug that prevented a non italian customer from
changing his settings without providing the (italian :)
Fiscal Code.

users/contact.php : the "labels" of the e-mail sent were
not internationalized. Fixed.

-----------------------------------
PgMarket 1.0.2 (January 14th, 2001)
          Bug fix release
-----------------------------------

locale/it/global.inc.php line 382:
"Il Prezzo deve essere maggiore zero" -->
"Il Prezzo deve essere maggiore di zero"

DUMPS/pgmarket.start.dump line 95:
"1234567890" --> "12345678901"
(the Partita IVA must consist of 11 ciphers :)

shopping/templates/search_results.ihtml
Elimina prodotto --> <?=$Delete_Product?>
Modifica prodotto --> <?=$Edit_Product?>

shopping/complete_order.php :
	$SESSION["wantsurl"] = "";
added after line 77

----------------------------------
PgMarket 1.0.1 (January 7th, 2001)
          Bug fix release
----------------------------------

An e-mail was not sent to the shop administrator each time
the "root" password was changed.
users/change_password.php line 94:
global $SESSION; --> global $SESSION, $CFG;

locale/it/global.inc.php line 350:
&egrave --> &egrave;

DUMPS/pgmarket.demo_data.dump line 21:
Bird --> Birds

The "Search !" button was only in Italian, now it is internationalized.
Affected files:
templates/header.ihtml (line 105)
locale/??/global.inc.php

Now it is possible to insert a product without specifying the on_special field.
Affected file:
lib/pgmarket.inc.php	function validate_on_special()

Default file access permissions for the "products" directory.
didn't allow the web server to upload product images
chmod 777 products

application*inc.php line 144:
"(admin orders page)" --> "(admin categories page)"
inside the comment

admin/templates/category_list.ihtml line 25:
<td class=normal> --> <td class=normal align=center>

------------------------------------
PgMarket 1.0.0 (December 27th, 2000)
------------------------------------

PostgreSQL 6.5 does not support JOIN: updated the documentation
to explain how to replace it with the cartesian product.

Renamed .inc files as .inc.php , to reduce the risk
of security problems.

Eliminated images/back.gif

A little code cleanup in build_category_tree() (pgmarket.inc)

Some colspan fixes in shopping_cart.ihtml

Replaced pgmarket.dump with pgmarket.demo_data.dump, which contains
only data to be added after importing pgmarket.start.dump

Reorganization of the PostgreSQL dumps.

Demo categories renumbered to start with id=2 instead of id=10.

Cut away "::text" from the PostgreSQL dumps to provide
compatibility with PostgreSQL 6.5
(thanks to Fabio Molinari <fabio.m@mclink.it> for his report).

-------------------------------------
PgMarket 1.0rc2 (December 10th, 2000)
-------------------------------------

Now an e-mail is sent to the shop administrator each time
the "root" password is changed.

Added the $SESSION["price_must_be_integer"] flag and modified
the validate_price function to allow the price to be a float
instead of an integer (for US Dollars, as an example).

Added a blank space in category_updated.ihtml

header.ihtml files: added "body" tags as internet explorer
didn't understand that the body must not have any border.

products.php (list): now a link to the details page and a corresponding
comment are provided also for products without any image.

application-it.php and application-us.php are provided as now
application.inc contains many country-dependent settings.

complete_order.php still contained some Italian words as
"Cliente", "Indirizzo", and so on.
Now complete_order.php is internationalized by defining
the corresponding strings in application.inc

$subject_contrassegno renamed as $subject_cash_on_delivery

orders??.php , the delete_order function: $CFG->global was missing.

Now validate_phone accepts also "/" as a valid character.

MySQL still doesn't support "UNION"; updated the MySQL module documentation
to point out that "LEFT JOIN" can be used instead
(thanks to Giulio Scarpetti <pedromoro@yahoo.com> for his bug report).

Some corrections needed to avoid that signup.php and purchase_now.php
are resubmitted when reloaded by clicking on the menu bar
(thanks to Fabio Molinari <fabio.m@mclink.it> for his patch).
it.php and us.php have been modified and header-lang.ihtml
is no more needed now.

-------------------------------------
PgMarket 1.0rc1 (November 12nd, 2000)
-------------------------------------

"si" --> $yes = "si" (= "yes"); $yes is set up in application.inc now.
Affected files:
application.inc
users/signup.php
users/contact.php
users/templates/change_settings_form-az.ihtml
users/templates/change_settings_form-pf.ihtml
users/templates/contact_form.ihtml
users/templates/signup_form-az.ihtml
users/templates/signup_form-pf.ihtml
admin/users.php
admin/templates/user_form-az.ihtml

Modified the templates to appropriately consider the case discqty = 1
(or discqty=0, discount>0; in this case discqty has not to be shown);
updated the DB dumps to show the feature in the demo.
Affected files:
templates/on_special.ihtml
shopping/templates/catalog.ihtml
shopping/templates/product_details.ihtml
shopping/templates/product_details_thumb.ihtml
shopping/templates/search_results.ihtml
admin/templates/product_details.ihtml
DUMPS/pgmarket.dump

"Non &egrave; stata scelta nessuna immagine" --> $no_product_image_chosen
"upload dell'immagine fallito" --> $image_upload_failed
in admin/products.php
Affected files: admin/products.php, global.inc

Now products without images can be inserted, as products images
are shown only if they exist.
Affected files:
admin/templates/product_list.ihtml
admin/templates/product_details.ihtml
shopping/templates/catalog.ihtml
shopping/templates/product_details.ihtml
shopping/templates/product_details_thumb.ihtml
shopping/templates/search_results.ihtml
shopping/templates/shopping_cart.ihtml

Bug fix: last line in admin/templates/product_details.ihtml
<?=string_cleanup($product_id)?> --> <? pv(string_cleanup($product_id)) ?>

Bug fix:
"!==" --> "!=" in header.ihtml and search.php
(thanks to Juraj Kurimsky <kurimsky@ktvn1.tuke.sk> for his report)

PostgreSQL and MySQL dumps moved to the new DUMPS directory;
documentation moved to the new DOCS directory; added README
to redirect to the DOCS directory.

MySQL support added as a separate module (mysqllib.inc, while dblib.inc
is for PostgreSQL) and the MySQL dumps.
Code clean-up in dblib.inc.
The find_products() function is placed in dblib.inc, as it is DBMS dependent.
A little improvement to the indentation in stdlib.inc (lines 85-86).
Affected files: dblib.inc, mysqllib.inc, search.php, stdlib.inc.

-------------------------------------
PgMarket 0.99.8b (November 7th, 2000)
-------------------------------------

Patched a bad bug found adding a product not discounted:
some quotes where missing in admin/products.php at line 293 :(
Sorry, I beg forgiveness.

------------------------------------
PgMarket 0.99.8 (November 5th, 2000)
------------------------------------

Images caching problems solved for the shop admin
(the product images can be changed by the admin,
and the admin wants to immediately detect the image change :)
Thanks to Massimiliano Hofer <max@bbs.cc.uniud.it>
for his useful suggestions.

Many little undocumented changes

Templates look changed to improve the browser window utilization
and to substitute the grey with some colors :)

Discount support added

------------------------------------
PgMarket 0.99.7 (November 1st, 2000)
            not released
------------------------------------

A better search engine (by Oleg Kalashnikov <oleg@ok.gnu.zp.ua>)

Bug fixes, code cleanup

Complete restructuring to provide i18n support

------------------------------------
PgMarket 0.99.6 (October 25th, 2000)
            not released
------------------------------------

header.ihtml and header_lang.ihtml :
<?=$CFG->wwwroot?>/admin --> <?=$CFG->wwwroot?>/admin/
The "/" added requires an http request less

The admin categories page is split in "fixed length" pages.
Affected files:
(pages_link.ihtml)
application.inc
categories.php
category_list.ihtml

Fixed the italian template category_list.ihtml :
"Edit this category" --> "Modifica questa categoria"

The admin orders pages are split in "fixed length" pages.
Affected files:
(pages_link.ihtml)
application.inc
ordersca.php
orderscc.php
order_list.ihtml --> orderca_list.ihtml , ordercc_list.ihtml

The admin users page is split in "fixed length" pages.
Affected files:
(pages_link.ihtml)
application.inc
users.php
user_list.ihtml

------------------------------------
PgMarket 0.99.5 (October 22nd, 2000)
------------------------------------
PgMarket 0.99.5 is released mainly
to immediately provide a version
usable with PHP 4.0.3pl1
------------------------------------

PgMarket 0.99.4 does not work with PHP 4.0.3pl1:
the shopping cart always remains empty.
To obtain a correct behaviour with PHP 4.0.3pl1
$SESSION["cart"] has been substituted by $CART (i.e.,
another session variable registered in application.inc).
Moreover, $CART has been declared "global"
in pgmarket.inc (line 200), cart_view.php (line 58)
and in all the functions in complete_order.php

Now the order status is significant; it is shown
in the order list and in the order details
and it can be edited through the related form.
Orders are listed ordered by status and ID.
Affected files:
ordersca.php
orderscc.php
order_details.ihtml
order_form.ihtml
order_list.ihtml

The admin products page is split in "fixed length" pages.
Affected files:
(application.inc)
products.php
pages_link.ihtml
product_list.ihtml

Pages resulting from searches returning many products
are subdivided in "fixed length" pages, or rejected
if too many products are found.
For the sake of programming simplicity,
the products cannot be edited directly
from the search results pages anymore.
Affected files:
application.inc
search.php
search_results.ihtml
pages_links.ihtml
too_many_results.ihtml

The on_special field is shown to the admin while
browsing the catalog; this is useful each time
the store admin has to rapidly decide about new
on_special values to change the order the products
are shown by.
Affected file: catalog.ihtml

-----------------------------------
PgMarket 0.99.4 (October 8th, 2000)
-----------------------------------

IMPROVEMENTS
------------

Added an administration form to allow the admin to edit
the order details for the foreseen payment methods
(cash on delivery, credit card).
Affected files: ordersca.php , orderscc.php , order_details.ihtml ,
order_list.ihtml , order_form.ihtml

Added an elementary search engine.
Affected files: header.ihtml , shopping/search.php ,
shopping/templates/LANG/search_results.ihtml

BUG FIXES
---------

LANG/global.inc : where the fax number is concerned,
phone_length has been replaced by fax_length , and
phone_length_min has been replaced by fax_length_min

admin/templates/us/header.ihtml :
"Add product" --> "Add Product"
"Contrassegno" --> "Cash On Delivery"

validate_email : improved the eregi regexpr to make it work
under Linux Red Hat 7.0 (first I only tested it on Linux
Red Hat 6.2 with PHP 4.0.1pl2).

The Top level category is not removable now ;)
Affected files: categories.php , category_list.ihtml

When a category is eliminated, products are assigned to the
parent category; this could violate the primary key constraint
if a product in the eliminated category already belongs
also to the parent category; hence, now such products are deleted
from the category to be eliminated before assigning the products
to the parent category.  Affected file: categories.php

login_form.ihtml : the links immediately below the login box
have been removed, as only a signup method was foreseen there;
moreover, they were unusefully redundant.

reset_user_password() did not work :(
Affected files: pgmarket.inc ( reset_user_password() uncommented
and modified , generate_password() uncommented ) , wordlist.txt readded,
application.inc (uncommented the line related to wordlist.txt),
reset_password.ihtml readded and modified, user_password_reset.ihtml
readded, admin_not_reset.ihtml readded, renamed password_not_reset.ihtml
and modified, users.php, admin_not_deleted.ihtml readded

-----------------------------------
PgMarket 0.99.3 (October 1st, 2000)
   This is only a bug fix release
-----------------------------------

The fiscal code (or the enterprise identification number)
and the e-mail address of the purchaser have to be shown
on the purchase detail page (admin).

In application.inc , $SESSION["message_length"] has to be defined,
to avoid that no message can be sent: the length of any message
is larger than zero, and, if $SESSION["message_length"] is not
defined, it is considered null, hence any message is too much long
and no one will contact you :(

validate_email in pgmarket.inc : underscores are allowed in usernames
(and not in domain names).

Someone has reported problems in the fiscalcode validation:
on some platforms, valid fiscal codes are considered not valid.
The problem seems to be solved by eliminating the "+" chars
from the regexpr matching used in the validate_fiscalcode function
of pgmarket.inc .

Fixed a typo in user_list.ihtml (admin) : a "]" has been eliminated
at the end of line 26.

admin/users.php , mode=insert and mode=update : the fiscalcode
(usertype="pf") has to be validated only if it is not empty;
in fact, the admin can handle also non-italian users ;)
and, hence, without any Fiscal Code.

Login Page: links to all types of signup have to be provided,
i.e. Italy, outside of Italy, Enterprises.

Cleaned up the PostgreSQL dumps, now unuseful commands should
have been eliminated and categories_id_seq should not cause
any problem, as the corresponding CREATE SEQUENCE command
is issued later.

------------------------------------
PgMarket 0.99.2 (September 17, 2000)
------------------------------------

Now products properties can be edited while browsing the catalog

Now the name of money and the weight unity are parametrized

Some bug fixes

Added support for non italian persons signup (the Fiscal Code
is used only in Italy :)

Better administration interface: now products and categories
can be managed while browsing the catalog

Added the weight of products and the handling of delivery price
based on the total weight

------------------------------
PgMarket 0.99.1 (not released)
------------------------------

Added functions to pgmarket.inc to do a more strict check
of inputs in purchase_now.php

Added a "Contact us !" form

Some bug fixes

