Permalink
Browse files

Major changes to access manager. Means modifying nearly every file

to add some access permissions. This needs to be finished, but there
is a good start.

Added a customer manager.

Removed the shipping SQL/Minivend database, no longer necessary.
  • Loading branch information...
1 parent 1b39630 commit d628b6e3d945ce2e4ef0f03e0095f686d55450bc @perusionmike perusionmike committed Jun 28, 2000
Showing with 2,425 additions and 506 deletions.
  1. +56 −4 MANIFEST
  2. +1 −6 dist/barry/catalog.cfg
  3. +1 −1 dist/barry/config/leftside
  4. +2 −1 dist/barry/etc/log_transaction
  5. +0 −7 dist/barry/etc/profiles.login
  6. 0 dist/barry/logs/.empty
  7. +0 −15 dist/barry/mysql/shipping.mysql
  8. +1 −1 dist/barry/mysql/transactions.mysql
  9. +0 −16 dist/barry/pgsql/shipping.pgsql
  10. +6 −0 dist/barry/products/access.asc
  11. +0 −4 dist/barry/products/minimate.asc
  12. +59 −38 dist/barry/products/mv_metadata.asc
  13. +0 −17 dist/barry/products/shipping.txt
  14. +1 −1 dist/barry/products/userdb.txt
  15. +1 −1 dist/barry/products/variable.txt
  16. +6 −4 dist/basic/products/minimate.asc
  17. +3 −0 dist/catalog_after.cfg
  18. +1 −1 dist/catalog_before.cfg
  19. +79 −18 dist/lib/UI/Primitive.pm
  20. +149 −0 dist/lib/UI/pages/admin/access.html
  21. +377 −0 dist/lib/UI/pages/admin/access_permissions.html
  22. +16 −6 dist/lib/UI/pages/admin/advanced.html
  23. +16 −4 dist/lib/UI/pages/admin/affiliates.html
  24. +254 −0 dist/lib/UI/pages/admin/customer.html
  25. +116 −0 dist/lib/UI/pages/admin/customer_change_pass.html
  26. +279 −0 dist/lib/UI/pages/admin/customer_view.html
  27. +1 −0 dist/lib/UI/pages/admin/dbdownload.html
  28. +1 −1 dist/lib/UI/pages/admin/export_table.html
  29. +1 −1 dist/lib/UI/pages/admin/flex_editor.html
  30. +28 −4 dist/lib/UI/pages/admin/flex_select.html
  31. +1 −1 dist/lib/UI/pages/admin/format_meta.html
  32. +1 −1 dist/lib/UI/pages/admin/genreport.html
  33. +6 −0 dist/lib/UI/pages/admin/genstats.html
  34. +74 −66 dist/lib/UI/pages/admin/group.html
  35. +102 −0 dist/lib/UI/pages/admin/group_edit.html
  36. +2 −2 dist/lib/UI/pages/admin/import_table.html
  37. +8 −1 dist/lib/UI/pages/admin/index.html
  38. +42 −30 dist/lib/UI/pages/admin/item.html
  39. +0 −11 dist/lib/UI/pages/admin/login.html
  40. +0 −10 dist/lib/UI/pages/admin/logout.html
  41. +30 −9 dist/lib/UI/pages/admin/order.html
  42. +56 −12 dist/lib/UI/pages/admin/order_view.html
  43. +42 −3 dist/lib/UI/pages/admin/quicklinks.html
  44. +7 −7 dist/lib/UI/pages/admin/reports/order/ByAffiliate.html
  45. +5 −4 dist/lib/UI/pages/admin/reports/order/Detail.html
  46. +7 −7 dist/lib/UI/pages/admin/reports/order/Monthly.html
  47. +1 −1 dist/lib/UI/pages/admin/reports/traffic/ByAffiliate.html
  48. +10 −10 dist/lib/UI/pages/admin/ship_data.html
  49. +7 −7 dist/lib/UI/pages/admin/ship_edit.html
  50. +5 −5 dist/lib/UI/pages/admin/special/key_violation.html
  51. +1 −1 dist/lib/UI/pages/admin/trafficstats.html
  52. +178 −0 dist/lib/UI/pages/admin/user_change_pass.html
  53. +138 −0 dist/lib/UI/pages/admin/user_edit.html
  54. +19 −0 dist/lib/UI/profiles/login
  55. +1 −0 dist/lib/UI/ui.cfg
  56. +49 −22 dist/lib/UI/usertag/if_mm
  57. +5 −2 dist/lib/UI/usertag/list_databases
  58. +18 −7 dist/lib/UI/vars/UI_STD_DBEDIT_TABLE
  59. +29 −8 dist/lib/UI/vars/UI_STD_HEAD
  60. +0 −7 dist/mvmall/etc/profiles.login
  61. +6 −4 dist/mvmall/products/minimate.asc
  62. +1 −3 dist/simple/catalog.cfg
  63. +2 −1 dist/simple/etc/log_transaction
  64. +0 −7 dist/simple/etc/profiles.login
  65. 0 dist/simple/logs/.empty
  66. +0 −15 dist/simple/mysql/shipping.mysql
  67. +1 −1 dist/simple/mysql/transactions.mysql
  68. +0 −16 dist/simple/pgsql/shipping.pgsql
  69. +6 −0 dist/simple/products/access.asc
  70. +0 −4 dist/simple/products/minimate.asc
  71. +58 −38 dist/simple/products/mv_metadata.asc
  72. +0 −17 dist/simple/products/shipping.txt
  73. +1 −1 dist/simple/products/userdb.txt
  74. +1 −1 dist/simple/products/variable.txt
  75. +12 −2 lib/Vend/Config.pm
  76. +3 −3 lib/Vend/DbSearch.pm
  77. +11 −2 lib/Vend/Interpolate.pm
  78. +24 −6 lib/Vend/UserDB.pm
View
@@ -1,3 +1,4 @@
+2
LICENSE
MANIFEST
MANIFEST.SKIP
@@ -153,6 +154,7 @@ dist/barry/images/wtb.ssk.gif
dist/barry/images/xtr.cassette.jpg
dist/barry/images/xtrcrank.jpg
dist/barry/images/zinn.gif
+dist/barry/logs/.empty
dist/barry/mysql/affiliate.mysql
dist/barry/mysql/area.mysql
dist/barry/mysql/cat.mysql
@@ -231,14 +233,14 @@ dist/barry/products/GroundComm.csv
dist/barry/products/GroundRes.csv
dist/barry/products/NextDayAir.csv
dist/barry/products/NextDayAirSaver.csv
+dist/barry/products/access.asc
dist/barry/products/affiliate.txt
dist/barry/products/area.txt
dist/barry/products/banner.txt
dist/barry/products/cat.txt
dist/barry/products/country.txt
dist/barry/products/inventory.txt
dist/barry/products/locale.txt
-dist/barry/products/minimate.asc
dist/barry/products/mv_metadata.asc
dist/barry/products/orderline.txt
dist/barry/products/pricing.txt
@@ -373,6 +375,7 @@ dist/basic/tmp/.empty
dist/basic/upload/.empty
dist/build/makecat.redhat
dist/build/makedirs.redhat
+dist/catalog_after.cfg
dist/catalog_before.cfg
dist/compat/body
dist/compat/buttonbar
@@ -387,10 +390,15 @@ dist/lib/UI/locales/fr_FR.cfg
dist/lib/UI/locales/it_IT.cfg
dist/lib/UI/locales/pt_BR.cfg
dist/lib/UI/locales/ru_RU.cfg
+dist/lib/UI/pages/admin/access.html
+dist/lib/UI/pages/admin/access_permissions.html
dist/lib/UI/pages/admin/advanced.html
dist/lib/UI/pages/admin/affiliates.html
dist/lib/UI/pages/admin/button_builder.html
dist/lib/UI/pages/admin/config.html
+dist/lib/UI/pages/admin/customer.html
+dist/lib/UI/pages/admin/customer_change_pass.html
+dist/lib/UI/pages/admin/customer_view.html
dist/lib/UI/pages/admin/dbdownload.html
dist/lib/UI/pages/admin/env_vars.html
dist/lib/UI/pages/admin/error.html
@@ -406,12 +414,15 @@ dist/lib/UI/pages/admin/genstats.html
dist/lib/UI/pages/admin/gentable.html
dist/lib/UI/pages/admin/genxport.html
dist/lib/UI/pages/admin/group.html
+dist/lib/UI/pages/admin/group_edit.html
dist/lib/UI/pages/admin/header
dist/lib/UI/pages/admin/import_table.html
dist/lib/UI/pages/admin/index.html
dist/lib/UI/pages/admin/item.html
dist/lib/UI/pages/admin/item_edit.html
dist/lib/UI/pages/admin/layout.html
+dist/lib/UI/pages/admin/layout_create.html
+dist/lib/UI/pages/admin/layout_subcat.html
dist/lib/UI/pages/admin/layoutdownload.html
dist/lib/UI/pages/admin/layoutupload.html
dist/lib/UI/pages/admin/login.html
@@ -432,15 +443,24 @@ dist/lib/UI/pages/admin/report_save.html
dist/lib/UI/pages/admin/reports/order/ByAffiliate.html
dist/lib/UI/pages/admin/reports/order/Detail.html
dist/lib/UI/pages/admin/reports/order/Monthly.html
+dist/lib/UI/pages/admin/reports/traffic/ByAffiliate.html
dist/lib/UI/pages/admin/search_builder.html
+dist/lib/UI/pages/admin/search_builder_results.html
dist/lib/UI/pages/admin/ship.html
+dist/lib/UI/pages/admin/ship_data.html
dist/lib/UI/pages/admin/ship_edit.html
dist/lib/UI/pages/admin/ship_range.html
dist/lib/UI/pages/admin/special/key_violation.html
dist/lib/UI/pages/admin/spread.html
dist/lib/UI/pages/admin/table_editor.html
dist/lib/UI/pages/admin/tax.html
+dist/lib/UI/pages/admin/trafficstats.html
+dist/lib/UI/pages/admin/user_change_pass.html
+dist/lib/UI/pages/admin/user_edit.html
+dist/lib/UI/profiles/login
+dist/lib/UI/profiles/order_button_build
dist/lib/UI/ui.cfg
+dist/lib/UI/usertag/available_ups_internal
dist/lib/UI/usertag/available_www_shipping
dist/lib/UI/usertag/backup-database
dist/lib/UI/usertag/base_url
@@ -469,6 +489,7 @@ dist/lib/UI/usertag/list_pages
dist/lib/UI/usertag/mm_value
dist/lib/UI/usertag/newer
dist/lib/UI/usertag/quick_table
+dist/lib/UI/usertag/randit
dist/lib/UI/usertag/read_serial
dist/lib/UI/usertag/read_shipping
dist/lib/UI/usertag/rotate_database
@@ -492,7 +513,6 @@ dist/lib/UI/vars/UI_STD_DBEDIT_HEAD
dist/lib/UI/vars/UI_STD_DBEDIT_TABLE
dist/lib/UI/vars/UI_STD_FOOTER
dist/lib/UI/vars/UI_STD_HEAD
-dist/lib/UI/vars/UI_STD_HEADER
dist/locale.error
dist/minivend.cfg.dist
dist/simple/backup/.empty
@@ -613,6 +633,7 @@ dist/simple/images/yellow1/go.png
dist/simple/images/yellow1/logo.png
dist/simple/images/yellow1/menu.png
dist/simple/images/yellow1/submit.png
+dist/simple/logs/.empty
dist/simple/mysql/affiliate.mysql
dist/simple/mysql/area.mysql
dist/simple/mysql/cat.mysql
@@ -699,14 +720,14 @@ dist/simple/products/GroundComm.csv
dist/simple/products/GroundRes.csv
dist/simple/products/NextDayAir.csv
dist/simple/products/NextDayAirSaver.csv
+dist/simple/products/access.asc
dist/simple/products/affiliate.txt
dist/simple/products/area.txt
dist/simple/products/banner.txt
dist/simple/products/cat.txt
dist/simple/products/country.txt
dist/simple/products/inventory.txt
dist/simple/products/locale.txt
-dist/simple/products/minimate.asc
dist/simple/products/mv_metadata.asc
dist/simple/products/orderline.txt
dist/simple/products/pricing.txt
@@ -760,12 +781,15 @@ dist/usertag/reconfig_time
dist/usertag/reconfig_wait
dist/usertag/summary
dist/usertag/title_bar
+dist/usertag/ups_query
+dist/usertag/usertrack
dist/usertag/var
dist/usertag/xml_generator
eg/check
eg/checkstat.sh
eg/compact
eg/globalsub/signio
+eg/grant.sql
eg/ifdef
eg/make_gnumeric.sh
extra/Business/UPS.pm
@@ -812,12 +836,40 @@ lib/Vend/Table/LDAP.pm
lib/Vend/Tagref.pm
lib/Vend/Tags.pm
lib/Vend/TextSearch.pm
+lib/Vend/Track.pm
lib/Vend/UserDB.pm
lib/Vend/Util.pm
+minivend-4.5.1/dist/barry/html/index.html
+minivend-4.5.1/dist/barry/images/dirk_anim_blue_trn.gif
+minivend-4.5.1/dist/barry/images/standard_images/topfade.gif
+minivend-4.5.1/dist/barry/pages/browse1.html
+minivend-4.5.1/dist/barry/products/GroundComm.csv
+minivend-4.5.1/dist/barry/special_pages/cc_not_valid.html
+minivend-4.5.1/dist/barry/special_pages/confirmation.html
+minivend-4.5.1/dist/basic/catalog.cfg
+minivend-4.5.1/dist/basic/images/loose_hair.jpg
+minivend-4.5.1/dist/build/makecat.redhat
+minivend-4.5.1/dist/lib/UI/pages/admin/matrix_edit.html
+minivend-4.5.1/dist/lib/UI/pages/admin/orderstats.html
+minivend-4.5.1/dist/lib/UI/pages/admin/reports/order/Monthly.html
+minivend-4.5.1/dist/lib/UI/usertag/e
+minivend-4.5.1/dist/simple/etc/report
+minivend-4.5.1/dist/simple/html/.empty
+minivend-4.5.1/dist/simple/images/items/00-0011a.png
+minivend-4.5.1/dist/simple/images/items/21-221.jpg
+minivend-4.5.1/dist/simple/images/items/magnificat.jpg
+minivend-4.5.1/dist/simple/images/items/pol2.jpg
+minivend-4.5.1/dist/simple/pages/feedback.html
+minivend-4.5.1/dist/simple/pages/nothing.html
+minivend-4.5.1/dist/simple/pages/reconfig/do_upload.html
+minivend-4.5.1/dist/simple/products/access.asc
+minivend-4.5.1/dist/src/mvctl.c
+minivend-4.5.1/eg/checkstat.sh
+minivend-4.5.1/extra/File/CounterFile.pm
+minivend-4.5.1/lib/Vend/Parse.pm
pod/mvdocs.pod
pod/mvfaq.pod
pod/mvrpm.pod
-pod/mvtags.pod
scripts/compile_link.PL
scripts/config_prog.PL
scripts/configdump.PL
View
@@ -169,8 +169,6 @@ Database pricing KEY sku
Database pricing NUMERIC q2
Database products HOT 1
Database products INDEX category:c
-Database shipping shipping.txt TAB
-Database shipping AUTO_NUMBER 1
Database orderline orderline.txt TAB
Database transactions transactions.txt TAB
Database userdb userdb.txt TAB
@@ -211,10 +209,7 @@ Message Using PostgreSQL, DSN=__SQLDSN__.
#endif
# We are always keeping these in DBM, can be in SQL if you wish
-Variable MINIMATE_META mv_metadata
-Variable MINIMATE_TABLE minimate
-Variable MM_BASE tally
-Database minimate minimate.asc TAB
+Database access access.asc TAB
Database mv_metadata mv_metadata.asc TAB
Database variable variable.txt TAB
Database banner banner.txt TAB
@@ -148,7 +148,7 @@ Customer Services
</font>
</td>
</tr>
-[if type=data term="minimate::username::[data session username]"]
+[if type=data term="access::username::[data session username]"]
<tr>
<td align="left" COLSPAN=2>
<font size=-1>
@@ -1,6 +1,6 @@
#### begin [value mv_order_number] #####
[seti transaction_record]
-[tag flag write]transactions orderline userdb[/tag]
+[tag flag write]transactions orderline userdb inventory[/tag]
[if !session logged_in]
[set auto_create]1[/set]
[if type=explicit compare=|
@@ -88,6 +88,7 @@ affiliate: [data session source]
campaign: [value campaign]
status: pending
[/import]
+Inventory now: [data table=inventory col=quantity key="[item-code]" increment=1 value="-[item-quantity]"]
[/item-list][/try]
[catch] There was an error adding to the transaction log. [/catch]
[if scratch auto_create]
@@ -14,13 +14,6 @@ __NAME__ Login
[if type=explicit compare="[userdb login]"]
mv_nextpage=[either][cgi mv_successpage][or][cgi mv_nextpage][/either]
-[perl minimate]
- $Session->{mm_username} = tag_data( '__MINIMATE_TABLE__',
- 'username',
- $Session->{username},
- );
- return;
-[/perl]
[else]
mv_nextpage=[either][cgi mv_failpage][or][cgi mv_nextpage][/either]
[/else]
View
No changes.
@@ -1,15 +0,0 @@
-Database shipping shipping.txt __SQLDSN__
-#ifdef SQLUSER
-Database shipping USER __SQLUSER__
-#endif
-#ifdef SQLPASS
-Database shipping PASS __SQLPASS__
-#endif
-Database shipping COLUMN_DEF "code=char(18) NOT NULL PRIMARY KEY"
-Database shipping COLUMN_DEF "description=VARCHAR(64)"
-Database shipping COLUMN_DEF "criteria=VARCHAR(128)"
-Database shipping COLUMN_DEF "min=CHAR(7)"
-Database shipping COLUMN_DEF "max=CHAR(9)"
-Database shipping COLUMN_DEF "formula=VARCHAR(128)"
-Database shipping COLUMN_DEF "query=TEXT"
-Database shipping COLUMN_DEF "opt=TEXT"
@@ -49,5 +49,5 @@ Database transactions COLUMN_DEF "update_date=timestamp"
Database transactions COLUMN_DEF "status=VARCHAR(32)"
Database transactions COLUMN_DEF "parent=CHAR(9)"
Database transactions COLUMN_DEF "archived=CHAR(1)"
-Database transactions COLUMN_DEF "deleted=CHAR(1)"
+Database transactions COLUMN_DEF "deleted=CHAR(1) DEFAULT ''"
Database transactions COLUMN_DEF "complete=CHAR(1)"
@@ -1,16 +0,0 @@
-Database shipping shipping.txt __SQLDSN__
-#ifdef SQLUSER
-Database shipping USER __SQLUSER__
-#endif
-#ifdef SQLPASS
-Database shipping PASS __SQLPASS__
-#endif
-Database shipping COLUMN_DEF "code=VARCHAR(18) NOT NULL PRIMARY KEY"
-Database shipping COLUMN_DEF "description=VARCHAR(64)"
-Database shipping COLUMN_DEF "criteria=VARCHAR(128)"
-Database shipping COLUMN_DEF "min=VARCHAR(7)"
-Database shipping COLUMN_DEF "max=VARCHAR(9)"
-Database shipping COLUMN_DEF "formula=VARCHAR(128)"
-Database shipping COLUMN_DEF "query=TEXT"
-Database shipping COLUMN_DEF "opt=TEXT"
-Database shipping ChopBlanks 1
@@ -0,0 +1,6 @@
+username password name last_login super yes_tables no_tables upload acl export edit pages files config reconfig groups meta no_functions yes_functions table_control
+__MVC_SUPERUSER__ ceJq5Qwc3ApHQ Super User 1
+test sSPI6dOz/ciLg Papa Bear 962090612 0 2ndDayAir=vi Ground=vi NextDayAir=vix affiliate=vix area=vix country=vix inventory=vix locale=veix orderline=veix pricing=veix products=veix shipping=veix transactions=veix userdb=ex variable=ex mv_metadata access inventory pricing products cat pricing products inventory orderline pricing products ind* news* about* privacy* error.log etc/* 0 1 :orders products item=lvecd group=lv group=lv order=lvecau dbdownload laydownload orderstats userdb=lvep {'pricing' => {'no_fields' => "price_group",},'products' => {'no_keys' => "00-342",'no_fields' => "weight nontaxable",'yes_keys' => "00-0011 00-0011a 00-342 00-343 00-404",'yes_fields' => "sku artist title description comment price",},}
+shipping ceJq5Qwc3ApHQ Shipping User 962075741 0 orderline transactions orderline transactions NONE etc/tracking.asc orders/* 0 0 :orders orderline transactions order=d access=vl group=vl {'transactions' => {'yes_fields' => "code status",},'orderline' => {'yes_fields' => "code status",},}
+:backup Backup
+:orders * Order admin 0 orderline transactions userdb userdb transactions orderline orderline transactions userdb order=d
@@ -1,4 +0,0 @@
-username super yes_tables no_tables upload acl export edit pages files config reconfig meta no_functions yes_functions table_control
-test 0 2ndDayAir Ground NextDayAir locale minimate mv_metadata inventory pricing products cat pricing products inventory orderline pricing products ind* news* about* privacy* error.log etc/* 0 1 products files change_db spreadsheet display_configure entities error config home search report {'pricing' => {'no_fields' => "price_group",},'products' => {'no_keys' => "00-342",'no_fields' => "weight nontaxable",'yes_keys' => "00-0011 00-0011a 00-342 00-343 00-404",'yes_fields' => "sku artist title description comment price",},}
-shipping 0 orderline transactions orderline transactions NONE etc/tracking.asc orders/* 0 0 orderline transactions pages add_field journal_update display_configure entities error config home sql none {'transactions' => {'yes_fields' => "code status",},'orderline' => {'yes_fields' => "code status",},}
-__MVC_SUPERUSER__ 1 products 0 1
Oops, something went wrong.

0 comments on commit d628b6e

Please sign in to comment.