Annotation of win32/dist/config/auto.p, revision 1.1

1.1     ! misha       1: @conf[filespec][confdir;charsetsdir;sqldriversdir]
        !             2: 
        !             3: $confdir[^file:dirname[$filespec]]
        !             4: $charsetsdir[$confdir/charsets]
        !             5: $sqldriversdir[$confdir/lib]
        !             6: 
        !             7: $CHARSETS[
        !             8: #      $.cp866[$charsetsdir/cp866.cfg]
        !             9:        $.koi8-r[$charsetsdir/koi8-r.cfg]
        !            10: #      $.koi8-u[$charsetsdir/koi8-u.cfg]
        !            11: #      $.windows-1250[$charsetsdir/windows-1250.cfg]
        !            12:        $.windows-1251[$charsetsdir/windows-1251.cfg]
        !            13: #      $.windows-1254[$charsetsdir/windows-1254.cfg]
        !            14: #      $.windows-1257[$charsetsdir/windows-1257.cfg]
        !            15: #      $.x-mac-cyrillic[$charsetsdir/x-mac-cyrillic.cfg]
        !            16: ]
        !            17: 
        !            18: #change your client libraries paths to those on your system
        !            19: $SQL[
        !            20:        $.drivers[^table::create{protocol       driver  client
        !            21: #mysql $sqldriversdir/parser3mysql.dll $sqldriversdir/libmySQL.dll
        !            22: sqlite $sqldriversdir/parser3sqlite.dll        $sqldriversdir/sqlite3.dll
        !            23: #pgsql $sqldriversdir/parser3pgsql.dll $sqldriversdir/libpq.dll
        !            24: #odbc  $sqldriversdir/parser3odbc.dll
        !            25: #oracle        $sqldriversdir/parser3oracle.dll        c:\Oracle\Ora81\BIN\oci.dll?PATH+=^;C:\Oracle\Ora81\bin
        !            26: }]
        !            27: ]
        !            28: 
        !            29: #for ^file::load[name;user-name] mime-type autodetection
        !            30: $MIME-TYPES[^table::create{ext mime-type
        !            31: 7z     application/x-7z-compressed
        !            32: au     audio/basic
        !            33: avi    video/x-msvideo
        !            34: css    text/css
        !            35: cvs    text/csv
        !            36: doc    application/msword
        !            37: docx   application/vnd.openxmlformats-officedocument.wordprocessingml.document
        !            38: dtd    application/xml-dtd
        !            39: gif    image/gif
        !            40: gz     application/x-gzip
        !            41: htm    text/html
        !            42: html   text/html
        !            43: ico    image/x-icon
        !            44: jpeg   image/jpeg
        !            45: jpg    image/jpeg
        !            46: js     application/javascript
        !            47: json   application/json
        !            48: log    text/plain
        !            49: mid    audio/midi
        !            50: midi   audio/midi
        !            51: mov    video/quicktime
        !            52: mp3    audio/mpeg
        !            53: mpg    video/mpeg
        !            54: mpeg   video/mpeg
        !            55: mts    application/metastream
        !            56: pdf    application/pdf
        !            57: png    image/png
        !            58: ppt    application/powerpoint
        !            59: ra     audio/x-realaudio
        !            60: ram    audio/x-pn-realaudio
        !            61: rar    application/x-rar-compressed
        !            62: rdf    application/rdf+xml
        !            63: rpm    audio/x-pn-realaudio-plugin
        !            64: rss    application/rss+xml
        !            65: rtf    application/rtf
        !            66: svg    image/svg+xml
        !            67: swf    application/x-shockwave-flash
        !            68: tar    application/x-tar
        !            69: tgz    application/x-gzip
        !            70: tif    image/tiff
        !            71: txt    text/plain
        !            72: wav    audio/x-wav
        !            73: xls    application/vnd.ms-excel
        !            74: xlsx   application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        !            75: xml    text/xml
        !            76: xsl    text/xml
        !            77: zip    application/zip
        !            78: }]
        !            79: 
        !            80: $LIMITS[
        !            81:        $.post_max_size(10*0x400*0x400)
        !            82: ]      
        !            83: 
        !            84: $MAIL[
        !            85:        $.SMTP[smtp.domain.ru]
        !            86: ]
        !            87: 
        !            88: 
        !            89: @fatal_error[title;subtitle;body]
        !            90: $response:status(500)
        !            91: $response:content-type[
        !            92:        $.value[text/html]
        !            93:        $.charset[$response:charset]
        !            94: ]
        !            95: <html>
        !            96: <head><title>$title</title></head>
        !            97: <body>
        !            98: <h1>^if(def $subtitle){$subtitle;$title}</h1>
        !            99: $body
        !           100: #for [x] MSIE friendly
        !           101: ^for[i](0;512/8){<!-- -->}
        !           102: </body>
        !           103: </html>
        !           104: 
        !           105: 
        !           106: @unhandled_exception_debug[exception;stack]
        !           107: ^fatal_error[Unhandled Exception^if(def $exception.type){ ($exception.type)};$exception.source;
        !           108: <pre>^untaint[html]{$exception.comment}</pre>
        !           109: ^if(def $exception.file){
        !           110: ^untaint[html]{<tt>$exception.file^(${exception.lineno}:$exception.colno^)</tt>}
        !           111: }
        !           112: ^if($stack){
        !           113:        <hr/>
        !           114:        <table>
        !           115:        ^stack.menu{
        !           116:                <tr><td>$stack.name</td><td><tt>$stack.file^(${stack.lineno}:$stack.colno^)</tt></td></tr>
        !           117:        }
        !           118:        </table>
        !           119: }
        !           120: ]
        !           121: 
        !           122: 
        !           123: @unhandled_exception_release[exception;stack]
        !           124: ^fatal_error[Unhandled Exception;;
        !           125: 
        !           126: <p>The server encountered an unhandled exception 
        !           127: and was unable to complete your request.</p>
        !           128: <p>Please contact the server administrator, $env:SERVER_ADMIN
        !           129: and inform them of the time the error occurred, 
        !           130: and anything you might have done that may have caused the error.</p>
        !           131: <p>More information about this error may be available in the Parser error log
        !           132: or in debug version of unhandled_exception.</p>
        !           133: 
        !           134: ]
        !           135: 
        !           136: 
        !           137: @is_developer[]
        !           138: #change mask to your ip address
        !           139: $result(def $env:REMOTE_ADDR && ^env:REMOTE_ADDR.match[^^127\.0\.0\.1^$])
        !           140: 
        !           141: 
        !           142: @unhandled_exception[exception;stack]
        !           143: #developer? use debug version to see problem details
        !           144: ^if(^is_developer[]){
        !           145:        ^unhandled_exception_debug[$exception;$stack]
        !           146: }{
        !           147:        ^if($exception.type eq "file.missing"){
        !           148:                $response:status(404)
        !           149:        }{
        !           150:                ^unhandled_exception_release[$exception;$stack]
        !           151:        }
        !           152: }
        !           153: 
        !           154: 
        !           155: @auto[]
        !           156: #source/client charsets
        !           157: $request:charset[UTF-8]
        !           158: $response:charset[UTF-8]
        !           159: 
        !           160: $response:content-type[
        !           161:        $.value[text/html]
        !           162:        $.charset[$response:charset]
        !           163: ]
        !           164: 
        !           165: #$SQL.connect-string[mysql://user:password@host/db]
        !           166: #$SQL.connect-string[pgsql://user:password@host/db]
        !           167: #$SQL.connect-string[oracle://user:password@service?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS&ClientCharset=windows-1251]
        !           168: #$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]
        !           169: #$SQL.connect-string[sqlite://db]
        !           170: 

E-mail: