[TEP-COMMIT] CVS: admin/admin backup.php,1.60,1.61

cvs-OfajU3CKLf1/[email protected]
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Update of /pack/cvsroots/oscommerce/admin/admin
In directory sunsite.dk:/tmp/cvs-serv15171

Modified Files:
	backup.php 
Log Message:
Remove hardcoded table names (bug 976)

Index: backup.php
===================================================================
RCS file: /pack/cvsroots/oscommerce/admin/admin/backup.php,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- backup.php	2003/06/29 22:50:51	1.60
+++ backup.php	2004/02/14 18:00:34	1.61
@@ -244,7 +244,7 @@
             }
           }
 
-          tep_db_query("drop table if exists address_book, address_format, banners, banners_history, categories, categories_description, configuration, configuration_group, counter, counter_history, countries, currencies, customers, customers_basket, customers_basket_attributes, customers_info, languages, manufacturers, manufacturers_info, orders, orders_products, orders_status, orders_status_history, orders_products_attributes, orders_products_download, products, products_attributes, products_attributes_download, prodcts_description, products_options, products_options_values, products_options_values_to_products_options, products_to_categories, reviews, reviews_description, sessions, specials, tax_class, tax_rates, geo_zones, whos_online, zones, zones_to_geo_zones");
+          tep_db_query("drop table if exists " . TABLE_ADDRESS_BOOK . ", " . TABLE_ADDRESS_FORMAT . ", " . TABLE_BANNERS . ", " . TABLE_BANNERS_HISTORY . ", " . TABLE_CATEGORIES . ", " . TABLE_CATEGORIES_DESCRIPTION . ", " . TABLE_CONFIGURATION . ", " . TABLE_CONFIGURATION_GROUP . ", " . TABLE_COUNTRIES . ", " . TABLE_CURRENCIES . ", " . TABLE_CUSTOMERS . ", " . TABLE_CUSTOMERS_BASKET . ", " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . ", " . TABLE_CUSTOMERS_INFO . ", " . TABLE_LANGUAGES . ", " . TABLE_MANUFACTURERS . ", " . TABLE_MANUFACTURERS_INFO . ", " . TABLE_NEWSLETTERS . ", " . TABLE_ORDERS . ", " . TABLE_ORDERS_PRODUCTS . ", " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . ", " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . ", " . TABLE_ORDERS_STATUS . ", " . TABLE_ORDERS_STATUS_HISTORY . ", " . TABLE_ORDERS_TOTAL . ", " . TABLE_PRODUCTS . ", " . TABLE_PRODUCTS_ATTRIBUTES . ", " . TABLE_PRODUCTS_ATTRIBUTES_
 DOWNLOAD . ", " . TABLE_PRODUCTS_DESCRIPTION . ", " . TABLE_PRODUCTS_NOTIFICATIONS . ", " . TABLE_PRODUCTS_OPTIONS . ", " . TABLE_PRODUCTS_OPTIONS_VALUES . ", " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . ", " . TABLE_PRODUCTS_TO_CATEGORIES . ", " . TABLE_REVIEWS . ", " . TABLE_REVIEWS_DESCRIPTION . ", " . TABLE_SESSIONS . ", " . TABLE_SPECIALS . ", " . TABLE_TAX_CLASS . ", " . TABLE_TAX_RATES . ", " . TABLE_GEO_ZONES . ", " . TABLE_ZONES_TO_GEO_ZONES . ", " . TABLE_WHOS_ONLINE . ", " . TABLE_ZONES . "");
 
           for ($i=0, $n=sizeof($sql_array); $i<$n; $i++) {
             tep_db_query($sql_array[$i]);



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.