re-work installation to use a bse.cfg style file
[bse.git] / site / cgi-bin / bse.cfg
CommitLineData
2eca61d5
TC
1[site]
2name=SomeSite
b19047a6
TC
3; url should not include a trailing /
4url=http://your.site.base
5secureurl=$(url)
2eca61d5 6
4ef01459
TC
7[basic]
8randomdata = /dev/urandom
9168c88c 9access_control=0
6430ee52 10file_handlers=flv
b62cae00 11preload_template=preload.tmpl
4ef01459 12
2eca61d5
TC
13[paths]
14; the following needs to be set to a path writable by the BSE processes
771ab646
TC
15; set [paths].siteroot
16downloads = $(siteroot)/uploads
17siteuser_images = $(downloads)
18dynamic_cache=$(siteroot)/cache
19backgroundlogs=$(siteroot)/backlogs
20public_html=$(siteroot)/htdocs
d980b7fa 21public_files=$(public_html)/managed_assets
771ab646 22images=$(public_html)/managed_assets
da24de93 23data=$(siteroot)/data
771ab646 24templates=$(siteroot)/templates
5bbf7309
TC
25cgi-bin=$(siteroot)/cgi-bin
26util=$(siteroot)/util
771ab646
TC
27
28[uri]
29images=/managed_assets
eb920c4d 30public_files=/managed_assets/
2eca61d5
TC
31
32[pregenerate]
33
34; the following are required by the system - don't modify them
3fb296b8
TC
35user/editbooking.tmpl = user,user/base_editbooking.tmpl
36user/bookingdetail.tmpl = user,user/base_bookingdetail.tmpl
37user/cancelbooking.tmpl = user,user/base_cancelbooking.tmpl
38user/bookinglist.tmpl = user,user/base_bookinglist.tmpl
ab2cd916 39user/orderdetail.tmpl = user,user/base_orderdetail.tmpl
492998c7 40user/orderdetaila.tmpl = user,user/base_orderdetail.tmpl
4ef01459
TC
41user/alreadyblacklisted.tmpl = user,user/alreadyblacklisted_base.tmpl
42user/blacklistdone.tmpl = user,user/blacklistdone_base.tmpl
43user/cantunsub.tmpl = user,user/cantunsub_base.tmpl
44user/confirmed.tmpl = user,user/confirmed_base.tmpl
45user/confsent.tmpl = user,user/confsent_base.tmpl
2a295ea9 46user/confsent_nop.tmpl = user,user/confsent_nop_base.tmpl
4ef01459 47user/email_conferror.tmpl = user,user/email_conferror_base.tmpl
2eca61d5 48user/logon.tmpl = user,user/logon_base.tmpl
2eca61d5 49user/lostemailsent.tmpl = user,user/lostemailsent_base.tmpl
4ef01459 50user/lostpassword.tmpl = user,user/lostpassword_base.tmpl
93be4a7b 51user/lost_prompt.tmpl = user,user/base_lost_prompt.tmpl
2a295ea9 52user/nopassword.tmpl = user,user/nopassword_base.tmpl
4ef01459 53user/options.tmpl = user,user/options_base.tmpl
2a295ea9 54user/options_saved.tmpl = user,user/options_saved_base.tmpl
b27af108 55user/options_delivery.tmpl = user,user/options_delivery_base.tmpl
3c32512d 56user/options_images.tmpl = user,user/options_images_base.tmpl
4ef01459 57user/register.tmpl = user,user/register_base.tmpl
b19047a6 58user/toomany.tmpl = user,user/toomany_base.tmpl
4ef01459 59user/toosoon.tmpl = user,user/toosoon_base.tmpl
531fb3bc
TC
60user/unsuball.tmpl = user,user/unsuball_base.tmpl
61user/unsubone.tmpl = user,user/unsubone_base.tmpl
4ef01459 62user/userpage.tmpl = user,user/userpage_base.tmpl
d49667a2 63user/userpage_wishlist.tmpl = user,user/base_userpage_wishlist.tmpl
32696f84
TC
64user/userpage_files.tmpl = user,user/base_userpage_files.tmpl
65user/userpage_orders.tmpl = user,user/base_userpage_orders.tmpl
d49667a2 66user/wishlist.tmpl = user,user/base_wishlist.tmpl
0eb78304
TC
67user/bookseminar.tmpl = user,user/base_bookseminar.tmpl
68user/bookconfirm.tmpl = user,user/base_bookconfirm.tmpl
69user/bookcomplete.tmpl = user,user/base_bookcomplete.tmpl
5af99440 70user/redirect.tmpl = user,user/base_redirect.tmpl
ee6577c3
TC
71interest/confirm.tmpl = interest,interest/confirm_base.tmpl
72interest/askagain.tmpl = interest,interest/askagain_base.tmpl
73interest/error.tmpl = interest,interest/error_base.tmpl
a5e3fc4b
TC
74formmail/defquery.tmpl = formmail,formmail/defquery_base.tmpl
75formmail/defdone.tmpl = formmail,formmail/defdone_base.tmpl
c2096d67 76error.tmpl = error,error_base.tmpl
0c2e7f7a
TC
77tellafriend/form.tmpl = user,tellafriend/base_form.tmpl
78tellafriend/done.tmpl = user,tellafriend/base_done.tmpl
2eca61d5
TC
79
80[user settings]
81title = My $(site/name)
82
ee6577c3
TC
83[interest settings]
84title = $(site/name) Interest Registration
85
a5e3fc4b
TC
86[formmail settings]
87title = Send us a comment
88
c2096d67
TC
89[error settings]
90title = Error
57d988af 91dynamic = 0
c2096d67 92
2eca61d5
TC
93[messages]
94user/notyourorder = Order $1 isn't your order
721cd24c 95shop/fileitems = You have products in your cart that include downloadable files. Please logon or register before checking out.
6e3d2da5 96shop/logonrequired = This site requires that you be logged on to make a purchase. Please logon or register before checking out.
2eca61d5 97
2404a911
TC
98[downloads]
99; if true, an order must be marked paid for before the user can download
100; the files attached to the products
101;must_be_paid = yes
102; if true, an order must be marked filled before the user can download the
103; files attached to the products
104;must_be_filled = yes
721cd24c
TC
105
106[children of 5]
107template=common/sidebar.tmpl
108template_dirs=sidebar
b19047a6
TC
109
110[extra tags]
b19047a6 111siteUrl = $(site/url)
2a295ea9
TC
112siteName = $(site/name)
113; You can add any static tag definitions you like here
114; salesEmail = someone@yoursite.com
115; salesPhoneNo = 61 2 9999 8888
531fb3bc
TC
116
117[datadump]
118# where to email the data dump
119#to = someone@somewhere
120# program to run to do the dump
121# must take the same parameters as mysqldump
d09682dd 122#mysqldump = /usr/local/mysql/bin/mysqldump
531fb3bc
TC
123
124[subscriptions]
125# if override is non-zero then the fields for the archiving and templates
126# will be available when sending a subscription
127override=1
128
ca9aa2bf
TC
129[level names]
1300=Your Site
918735d1
TC
1311=Page Lev1
1322=Page Lev2
1333=Page Lev3
1344=Page Lev4
1355=Page Lev5
ca9aa2bf
TC
136
137[articles]
138shop=3
caa7299c 139
08123550
TC
140[shop]
141payment_types=0,1,2
142address1=First address line in configuration
143address2=Second address line in configuration
144address3=Third address line in configuration
7b81711b 145enabled=1
08123550 146
caa7299c
TC
147[level 1]
148template=common/default.tmpl
149
150[level 2]
151template=common/default.tmpl
152
153[level 3]
154template=common/default.tmpl
155
156[level 4]
157template=common/default.tmpl
158
159[level 5]
160template=common/default.tmpl
161
162[catalogs]
163template=catalog.tmpl
164
165[products]
166template=shopitem.tmpl
08123550 167
cc9019d1
TC
168[templates]
169admin/edit_2=admin/edit_1
170admin/edit_3=admin/edit_1
171admin/edit_4=admin/edit_1
172admin/edit_5=admin/edit_1
173admin/edit_img=admin/article_img
174admin/edit_file=admin/filelist
175
2076966c
TC
176; this used to be handled via the edit target, but since CVS sucks
177; I won't rename the template
178admin/users/view_orders=admin/users/edit_orders
179
08123550 180[Global permissions]
de193691
TC
181change_body = 8
182change_body_no_shop = 9
183full_access = 0
184full_access_no_shop = 3
08123550 185shop_access = 1
de193691
TC
186shop_orders = 5
187subscriptions = 4
188users_and_groups = 6
6555857d
TC
189confirm_members = 12
190manage_members = 13
08123550
TC
191
192[Article permissions]
de193691 193change_body_doc = 2
7b81711b 194change_body_decendants = 10
de193691 195full_access_doc = 7
7b81711b 196full_access_decendants = 11
08123550 197
de193691
TC
198[permission change_body]
199brief=Title & body (Site)
200help=The user has permission to change only the title & body of all articles or products.
201permissions=edit_field_edit_body,edit_field_edit_title,edit_save
08123550 202descendants=1
de193691 203articles=-1
08123550 204
de193691
TC
205[permission change_body_no_shop]
206brief=Title & body except shop admin
207help=The user has permission to change only the title & body of all
208articles except for the shop.
abf5bbc6 209permissions=edit_field_edit_body,edit_field_edit_title,edit_save
de193691
TC
210descendants=1
211articles=not(3)
08123550 212
de193691
TC
213[permission full_access]
214brief=Full access (Site)
215help=Full access to the article. The user can modify all modifiable fields, delete and add articles at will.
74b3689a 216permissions=edit_*,regen_*,bse_*,admin_*
08123550 217descendants=1
de193691 218articles=-1
08123550 219
de193691
TC
220[permission full_access_no_shop]
221brief=Full access except shop admin
222help=The user has complete access to all articles except for the shop.
223permissions=edit_*,regen_*
08123550 224descendants=1
de193691
TC
225articles=not(3)
226
227[permission shop_access]
228brief=Shop administration
229help=The user has complete access to catalogs or products in the shop.
9168c88c 230permissions=not(admin_*)
de193691
TC
231descendants=1
232articles=3
08123550 233
de193691
TC
234[permission shop_orders]
235brief=Shop orders management
236help=The user can view the order list, order details, and mark orders filled.
237permissions=shop_order_*
da6bc286 238articles=-1
da6bc286 239
de193691
TC
240[permission subscriptions]
241brief=Subscriptions management
242help=The user can create, edit and send subscriptions.
243permissions=subs_*
da6bc286 244articles=-1
da6bc286
TC
245
246[permission users_and_groups]
da6bc286 247brief=User/Group management
de193691 248help=The user can manage users, groups and their permissions.
da6bc286 249permissions=admin_*
de193691
TC
250articles=-1
251
252[permission change_body_doc]
253brief=Title & body (Article)
254help=The user has permission to change only the title & body of this
255article or product.
256permissions=edit_field_edit_body,edit_field_edit_title,edit_save
257
7b81711b
TC
258[permission change_body_decendants]
259brief=Title & body (Article + Decendants)
260help=The user has permission to change only the title & body of this article or product and it's decendants.
261permissions=edit_field_edit_body,edit_field_edit_title,edit_save
262descendants=1
263
de193691
TC
264[permission full_access_doc]
265brief=Full access (Article)
266help=Full access to the article. The user can modify all modifiable
267fields for this article or product.
268permissions=edit_*,regen_*
da6bc286 269
7b81711b
TC
270[permission full_access_decendants]
271brief=Full access (Article + Decendants)
272help=Full access to the article and it's decendants. The user can modify all modifiable fields for this article or product.
273permissions=edit_*,regen_*
274descendants=1
918735d1 275
6555857d
TC
276[permission confirm_members]
277brief=Confirm member email address
278help=The user can manually mark a members email address as confirmed.
279permissions=bse_members_confirm
280articles=-1
281
282[permission manage_members]
283brief=Member management
284help=The user can manage site members
285permissions=bse_members_user_*,bse_members_group_*
286articles=-1
287
918735d1 288[article flags]
3f36e485
TC
289A=Disallow browser caching (default, dynamic articles only)
290B=Allow browser caching (dynamic articles only)
291C=Don't index this article or it's descendants
70c6e1e1 292D=Disable linking
3f36e485 293F=Descendants inherit Always Dynamic
918735d1 294I=Index even if hidden
cc9019d1 295N=Don't index even if listed
efcc5a30 296R=Regenerate even if we're using JIT regen (dynamic pages only)
538b7aee 297P=Link to parent
918735d1
TC
298
299[article 1]
300extra_templates=index.tmpl
301
302[article 2]
303extra_templates=index2.tmpl
b553afa2
TC
304
305[reports]
306sales_summ_by_product=Sales Summary By Product
307product_sales_over_time=Product Sales Over Time
2d873eb6
TC
308monthly_sales=Monthly Sales
309quarterly_sales=Quarterly Sales
310weekly_sales=Weekly Sales
311yearly_sales=Yearly Sales
312total_sales=Total Sales
313users_vs_orders=Users vs Orders
9063386f 314user_products=Products bought by User
988d8721 315bse_test=Test report
538b7aee 316bse_recent_regos=Recent registrations
b553afa2
TC
317
318[report sales_summ_by_product]
2d873eb6 319sql1=select pr.articleId as "Id", ar.title as "Product", count(*) as "Units" from article ar, product pr, order_item oi where ar.id = pr.articleId and pr.articleId = oi.productId group by pr.articleId, ar.title
9063386f
TC
320sql1link1=<a href="/cgi-bin/admin/report.pl?s_show=1&r=product_sales_over_time&p1=${Id}">Sales Over Time</a>
321sql1link2=<a href="/cgi-bin/admin/add.pl?id=${Id}">Edit</a>
9615cff6
TC
322sort1=-Units;By Unit from highest;order by 3 desc
323sort2=+Units;By Unit;order by 3
324sort3=+Product;Product name;order by 2
325sort4=-Product;Reverse product name;order by 2 desc
b553afa2
TC
326
327[report product_sales_over_time]
2d873eb6 328sql1=select year(od.orderDate) as "Year", month(od.orderDate) as "Month", count(*) as 'Units' from order_item oi, orders od where oi.orderId = od.id and productId = ? group by year(od.orderDate), month(od.orderDate) order by 1 DESC, 2 DESC
650a6188 329sql1params=1
b553afa2 330param1=product,Product
9615cff6
TC
331sort1=-Year;Reverse time order;order by 1 desc, 2 desc
332sort2=+Year;Time order;order by 1 asc, 2 asc
333sort3=-Units;By units desc;order by 3 desc
334sort4=+Units;By units asc;order by 3 asc
b553afa2 335
2d873eb6 336[report weekly_sales]
b27af108 337sql1=select year(od.orderDate) as "Year", week(od.orderDate) as "Week", count(*) as 'Orders', format(sum(od.total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join bse_siteusers su on od.userId =su.userId group by year(od.orderDate), week(od.orderDate) order by 1 DESC, 2 DESC
2d873eb6
TC
338
339[report monthly_sales]
b27af108 340sql1=select year(od.orderDate) as "Year", month(od.orderDate) as "Month", format(sum(od.total)/100.0,2) as 'Total', count(*) as 'Count', count(su.userId) as 'User Registered' from orders od left join bse_siteusers su on od.userId = su.userId group by year(od.orderDate), month(od.orderDate) order by 1 DESC, 2 DESC
2d873eb6
TC
341
342[report quarterly_sales]
343sql1=select year(od.orderDate) as "Year", quarter(od.orderDate) as "Quarter", format(sum(od.total)/100.0,2) as 'Total', count(*) as 'Count' from orders od group by year(od.orderDate), quarter(od.orderDate) order by 1 DESC, 2 DESC
344
345[report yearly_sales]
b27af108 346sql1=select year(od.orderDate) as "Year", count(*) as "Orders",format(sum(od.total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join bse_siteusers su on od.userId = su.userId group by year(od.orderDate) order by 1 DESC
2d873eb6
TC
347
348[report total_sales]
b27af108 349sql1=select count(*) as "Orders", format(sum(total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join bse_siteusers su on od.userId = su.userId
2d873eb6
TC
350
351[report user_products]
b27af108 352sql1=select pr.title, count(*) as 'Count' from orders od, order_item oi, article pr, bse_siteusers su where oi.orderId = od.id and oi.productId = pr.id and su.userId = od.userId and su.id = ? group by pr.id
9063386f
TC
353sql1params=1
354param1=site_user,User
2d873eb6
TC
355
356[report users_vs_orders]
357sql1=select delivFirstName as "First Name", delivLastName as "Last Name", userId as "Logon", format(sum(total)/100.0,2) as '$ Total', count(*) as "Orders" from orders group by delivFirstName, delivLastName order by 5 DESC, 2
358
b553afa2
TC
359[report datatype product]
360type=sql
361sql=select ar.id as "id", ar.title as "label" from article ar, product pr where ar.id = pr.articleId order by 2
650a6188
TC
362novalues=[ You don't have any products ]
363
538b7aee
TC
364[report bse_recent_regos]
365sql1=<<SQL
366select id, userId as "Logon", name1 as "First Name", name2 as "Last Name", whenRegistered as "When Registered"
b27af108 367from bse_siteusers
538b7aee
TC
368where whenRegistered > date_sub(now(), interval 7 day)
369order by whenRegistered desc
370SQL
371
372
650a6188
TC
373[report datatype article]
374type=sql
375sql=select id, concat(title, ' (', id, ')') as "label" from article
77804754 376
2d873eb6
TC
377[report datatype site_user]
378type=sql
b27af108 379sql=select id, userId as "label" from bse_siteusers
2d873eb6
TC
380novalues=[ There are no registered users ]
381
988d8721
TC
382[report bse_test]
383sql1=select id, title from article where id = ?
384hide=1
385param1=article,Article
386sql1params=1
387
77804754
TC
388[valid child types]
389Article=Article
390Catalog=Catalog,Product
391Product=
95989433
TC
392
393[protect link]
394; articles for which the link field should not be overwritten
395; the values are ignored, but you can include descriptions
3961=home page
3973=shop
3986=formatting guide
3997=RDF
2a295ea9 400
ab2cd916
TC
401[editor]
402;allow_thumbs=1
403;thumbs_class=BSE::Thumb::Imager
8aa7eb30 404file_display=small
ab2cd916 405
2a295ea9
TC
406[site users]
407display_name1=First Name
408display_name2=Last Name
b27af108 409display_street=Street
2a295ea9
TC
410display_postcode=Post code
411display_telephone=Phone
829c9ed9 412
2076966c 413[nonajax user agents]
9b3a5df0
TC
414ie4=MSIE 4
415ie5=MSIE 5.01
2076966c
TC
416
417[ajax user agents]
38de0036 418mozilla=^Mozilla/5\.0
9b3a5df0
TC
419ie5=MSIE 5.5
420ie6=MSIE 6
421ie7=MSIE 7
422ie8=MSIE 8
423safari=Safari
424khtml=KHTML
425opera=Opera
2076966c
TC
426
427[ajax definitions]
454cdabb
TC
428includes=<<INLINE
429inline:<script type="text/javascript" src="/js/prototype.js"></script>
430<script type="text/javascript" src="/js/scriptaculous.js"></script>
5f3a2963 431<script type="text/javascript" src="/js/scriptoverride.js"></script>
454cdabb 432INLINE
2076966c 433
0eb78304
TC
434[nuser controllers]
435user=BSE::UI::User
5af99440 436redirect=BSE::UI::Redirect
e7367b88
TC
437shop=BSE::UI::Shop
438search=BSE::UI::Search
439page=BSE::UI::Page
0c2e7f7a 440tellafriend=BSE::UI::Tellafriend
85aba847 441default=shop
e7367b88 442
4c4d3c3f 443[nadmin controllers]
95e517da 444shopadmin=BSE::UI::AdminShop
75b07edf 445modules=BSE::UI::AdminModules
95e517da 446log=BSE::UI::AdminAudit
e0946a86 447importer=BSE::UI::AdminImporter
74b3689a 448ipaddress=BSE::UI::AdminIPAddress
0eb78304 449
829c9ed9 450[includes]
2d42cf8f
TC
45100install=bse-install.cfg
45210bsecfg_d=cfg/
0c2e7f7a
TC
453
454[mail resources]
455stylesheet=email/email.css,text/css,1
456
457[targets]
458tellafriend=/cgi-bin/nuser.pl/tellafriend/TARGET
459tellafriend_n=/cgi-bin/nuser.pl/tellafriend
f40af7e2
TC
460
461[thumb geometries]
462editor=scale(200x200)
eac3131d 463sadmingall=scale(120x120),dropshadow(),canvas(140x140,bgalpha:0),format(png)
3f9c8a96 464search=scale(150x120)
6430ee52
TC
465
466[file handlers]
467flv=BSE::FileHandler::FLV
bf921eb7 468
fea96500 469[template descriptions]
bf921eb7 470common/default.tmpl=Default template
ebc63b18 471
c925a6af
TC
472[nightly work]
473bse_session_clean=1
474bse_audit_log_clean=1
fd737137
TC
475
476[undeletable articles]
4771=home page
4782=more home page
4795=sidebar
11af7272
TC
480
481[number money]
482divisor=100
483places=2