Annotation of parser3/bin/auto.p.dist.in, revision 1.3
1.3 ! paf 1: #$Id: auto.p.dist.in,v 1.2 2002/06/20 14:06:21 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.3 ! paf 64: ^fatal_error[Unhandled Exception;
! 65:
! 66: <p>The server encountered an unhandled exception
! 67: and was unable to complete your request.</p>
! 68: <p>Please contact the server administrator,
! 69: $env:SERVER_ADMIN
! 70: and inform them of the time the error occurred,
! 71: and anything you might have done that may have caused the error.</p>
! 72: <p>More information about this error may be available in the Parser error log.</p>
! 73:
1.1 paf 74: ]
75:
1.3 ! paf 76: @unhandled_exception_debug[exception;stack]
! 77: ^fatal_error[Unhandled Exception (Debug);
! 78:
1.1 paf 79: <pre>^untaint[html]{$exception.comment}</pre>
80: ^if(def $exception.source){
81: <b>$exception.source</b><br>
82: <pre>^untaint[html]{$exception.file^($exception.lineno^)}</pre>
83: }
84: ^if(def $exception.type){exception.type=$exception.type}
85: ^if($stack){
86: <hr>
87: ^stack.menu{
88: <tt>$stack.name</tt> $stack.file^($stack.lineno^)<br>
89: }
90: }
1.3 ! paf 91:
! 92: ]
! 93:
! 94: @fatal_error[title;body]
! 95: $response:status(500)
! 96: $response:content-type[
! 97: $.value[text/html]
! 98: $.charset[$response:charset]
! 99: ]
! 100: <html>
! 101: <head><title>$title</title></head>
! 102: <body>
! 103: <H1>$title</H1>
! 104: $body
! 105: #for [x] MSIE friendly
! 106: ^for[i](0;512/8){<!-- -->}
! 107: </body>
1.1 paf 108:
109: @auto[]
110: #source/client charsets
111: $request:charset[windows-1251]
112: $response:charset[windows-1251]
113:
114: $response:content-type[
115: $.value[text/html]
116: $.charset[$response:charset]
117: ]
118:
119: #$SQL.connect-string[mysql://user:pass@host/db?charset=cp1251_koi8]
120: #$SQL.connect-string[pgsql://user:pass@host/db]
121: #$SQL.connect-string[oracle://user:pass@service?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
122: #$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]
E-mail: