Annotation of parser3/bin/auto.p.dist.in, revision 1.4
1.4 ! paf 1: #$Id: auto.p.dist.in,v 1.3 2002/06/25 13:36:43 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
1.4 ! paf 32: jpeg image/jpeg
1.1 paf 33: png image/png
34: tif image/tiff
35: html text/html
36: htm text/html
37: txt text/plain
38: mts application/metastream
39: mid audio/midi
40: midi audio/midi
41: mp3 audio/mpeg
42: ram audio/x-pn-realaudio
43: rpm audio/x-pn-realaudio-plugin
44: ra audio/x-realaudio
45: wav audio/x-wav
46: au audio/basic
47: mpg video/mpeg
48: avi video/x-msvideo
49: mov video/quicktime
50: swf application/x-shockwave-flash
51: }]
52:
53: $LIMITS[
54: $.post_max_size(10*0x400*0x400)
55: ]
56:
57: #$MAIL[
58: # $.sendmail[your sendmail command goes here]
59: # these are tried when no 'sendmail' specified:
60: # /usr/sbin/sendmail -ti
61: # /usr/lib/sendmail -ti
62: #]
63:
64: @unhandled_exception[exception;stack]
1.3 paf 65: ^fatal_error[Unhandled Exception;
66:
67: <p>The server encountered an unhandled exception
68: and was unable to complete your request.</p>
69: <p>Please contact the server administrator,
70: $env:SERVER_ADMIN
71: and inform them of the time the error occurred,
72: and anything you might have done that may have caused the error.</p>
73: <p>More information about this error may be available in the Parser error log.</p>
74:
1.1 paf 75: ]
76:
1.3 paf 77: @unhandled_exception_debug[exception;stack]
78: ^fatal_error[Unhandled Exception (Debug);
79:
1.1 paf 80: <pre>^untaint[html]{$exception.comment}</pre>
81: ^if(def $exception.source){
82: <b>$exception.source</b><br>
83: <pre>^untaint[html]{$exception.file^($exception.lineno^)}</pre>
84: }
85: ^if(def $exception.type){exception.type=$exception.type}
86: ^if($stack){
87: <hr>
88: ^stack.menu{
89: <tt>$stack.name</tt> $stack.file^($stack.lineno^)<br>
90: }
91: }
1.3 paf 92:
93: ]
94:
95: @fatal_error[title;body]
96: $response:status(500)
97: $response:content-type[
98: $.value[text/html]
99: $.charset[$response:charset]
100: ]
101: <html>
102: <head><title>$title</title></head>
103: <body>
104: <H1>$title</H1>
105: $body
106: #for [x] MSIE friendly
107: ^for[i](0;512/8){<!-- -->}
108: </body>
1.1 paf 109:
110: @auto[]
111: #source/client charsets
112: $request:charset[windows-1251]
113: $response:charset[windows-1251]
114:
115: $response:content-type[
116: $.value[text/html]
117: $.charset[$response:charset]
118: ]
119:
120: #$SQL.connect-string[mysql://user:pass@host/db?charset=cp1251_koi8]
121: #$SQL.connect-string[pgsql://user:pass@host/db]
122: #$SQL.connect-string[oracle://user:pass@service?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
123: #$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]
E-mail: