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

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

E-mail: