Annotation of parser3/bin/auto.p.dist.in, revision 1.3.4.1

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

E-mail: