Annotation of parser3/bin/auto.p.dist.in, revision 1.2
1.2 ! paf 1: #$Id: auto.p.dist.in,v 1.1 2002/06/20 13:39:56 paf Exp $
1.1 paf 2:
3: @conf[]
4: $charsetsdir[@charsetsdir@]
5: $sqldriversdir[@sqldriversdir@]
6:
7: $CHARSETS[
8: @commentcharset_koi8r@ $.koi8-r[$charsetsdir/koi8-r.cfg]
9: @commentcharset_windows1250@ $.windows-1250[$charsetsdir/windows-1250.cfg]
10: @commentcharset_windows1251@ $.windows-1251[$charsetsdir/windows-1251.cfg]
11: @commentcharset_windows1257@ $.windows-1257[$charsetsdir/windows-1257.cfg]
12: ]
13: #change your client libraries paths to
those on your system
14: $SQL[
15: $.drivers[^table::set{protocol driver client
16: mysql $sqldriversdir/libparser3mysql.so @mysql_client@
17: pgsql $sqldriversdir/libparser3pgsql.so @pgsql_client@
18: oracle $sqldriversdir/libparser3oracle.so @oracle_client@
19: }]
20: ]
21:
22: #for ^file:load[name;user-name] mime-type autodetection
23: $MIME-TYPES[^table::set{ext mime-type
24: zip application/zip
25: doc application/msword
26: xls application/vnd.ms-excel
27: pdf application/pdf
28: ppt application/powerpoint
29: rtf application/rtf
30: gif image/gif
31: jpg image/jpeg
32: png image/png
33: tif image/tiff
34: html text/html
35: htm text/html
36: txt text/plain
37: mts application/metastream
38: mid audio/midi
39: midi audio/midi
40: mp3 audio/mpeg
41: ram audio/x-pn-realaudio
42: rpm audio/x-pn-realaudio-plugin
43: ra audio/x-realaudio
44: wav audio/x-wav
45: au audio/basic
46: mpg video/mpeg
47: avi video/x-msvideo
48: mov video/quicktime
49: swf application/x-shockwave-flash
50: }]
51:
52: $LIMITS[
53: $.post_max_size(10*0x400*0x400)
54: ]
55:
56: #$MAIL[
57: # $.sendmail[your sendmail command goes here]
58: # these are tried when no 'sendmail' specified:
59: # /usr/sbin/sendmail -ti
60: # /usr/lib/sendmail -ti
61: #]
62:
63: @unhandled_exception[exception;stack]
1.2 ! paf 64: <noindex>
1.1 paf 65: $response:content-type[
66: $.value[text/html]
67: $.charset[$response:charset]
68: ]
69:
70: <title>UNHANDLED EXCEPTION (root)</title>
71: <body bgcolor=white>
72: <font color=black>
73: <pre>^untaint[html]{$exception.comment}</pre>
74: ^if(def $exception.source){
75: <b>$exception.source</b><br>
76: <pre>^untaint[html]{$exception.file^($exception.lineno^)}</pre>
77: }
78: ^if(def $exception.type){exception.type=$exception.type}
79: ^if($stack){
80: <hr>
81: ^stack.menu{
82: <tt>$stack.name</tt> $stack.file^($stack.lineno^)<br>
83: }
84: }
1.2 ! paf 85: </noindex>
1.1 paf 86:
87: @auto[]
88: #source/client charsets
89: $request:charset[windows-1251]
90: $response:charset[windows-1251]
91:
92: $response:content-type[
93: $.value[text/html]
94: $.charset[$response:charset]
95: ]
96:
97: #$SQL.connect-string[mysql://user:pass@host/db?charset=cp1251_koi8]
98: #$SQL.connect-string[pgsql://user:pass@host/db]
99: #$SQL.connect-string[oracle://user:pass@service?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
100: #$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]
E-mail: