Diff for /parser3/bin/Attic/auto.p.dist.in between versions 1.10 and 1.19

version 1.10, 2003/11/11 09:41:25 version 1.19, 2013/10/19 11:34:33
Line 1 Line 1
 #$Id$  #$Id$
   
 @conf[]  @conf[filespec]
 $charsetsdir[@charsetsdir@]  $confdir[^file:dirname[$filespec]]
 $sqldriversdir[@sqldriversdir@]  $charsetsdir[$confdir/charsets]
   $sqldriversdir[$confdir/lib]
   
 $CHARSETS[  $CHARSETS[
 @commentcharset_koi8r@    $.koi8-r[$charsetsdir/koi8-r.cfg]  #       $.cp866[$charsetsdir/cp866.cfg]
 @commentcharset_windows1250@    $.windows-1250[$charsetsdir/windows-1250.cfg]  #       $.koi8-r[$charsetsdir/koi8-r.cfg]
 @commentcharset_windows1251@    $.windows-1251[$charsetsdir/windows-1251.cfg]  #       $.koi8-u[$charsetsdir/koi8-u.cfg]
 @commentcharset_windows1257@    $.windows-1257[$charsetsdir/windows-1257.cfg]  #       $.windows-1250[$charsetsdir/windows-1250.cfg]
   #       $.windows-1251[$charsetsdir/windows-1251.cfg]
   #       $.windows-1254[$charsetsdir/windows-1254.cfg]
   #       $.windows-1257[$charsetsdir/windows-1257.cfg]
   #       $.x-mac-cyrillic[$charsetsdir/x-mac-cyrillic.cfg]
 ]  ]
   
 #change your client libraries paths to those on your system  #change your client libraries paths to those on your system
 $SQL[  $SQL[
         $.drivers[^table::set{protocol  driver  client          $.drivers[^table::create{protocol       driver  client
 mysql   $sqldriversdir/libparser3mysql.@dll_extension@  @mysql_client@  mysql   $sqldriversdir/libparser3mysql.@dll_extension@  libmysqlclient.@dll_extension@
 pgsql   $sqldriversdir/libparser3pgsql.@dll_extension@  @pgsql_client@  #sqlite $sqldriversdir/libparser3sqlite.@dll_extension@ sqlite3.@dll_extension@
 oracle  $sqldriversdir/libparser3oracle.@dll_extension@ @oracle_client@  #pgsql  $sqldriversdir/libparser3pgsql.@dll_extension@  libpq.@dll_extension@
   #oracle $sqldriversdir/libparser3oracle.@dll_extension@ libclntsh.@dll_extension@
 }]  }]
 ]  ]
   
 #for ^file:load[name;user-name] mime-type autodetection  #for ^file::load[name;user-name] mime-type autodetection
 $MIME-TYPES[^table::set{ext     mime-type  $MIME-TYPES[^table::create{ext  mime-type
 zip     application/zip  7z      application/x-7z-compressed
   au      audio/basic
   avi     video/x-msvideo
   css     text/css
   cvs     text/csv
 doc     application/msword  doc     application/msword
 xls     application/vnd.ms-excel  docx    application/vnd.openxmlformats-officedocument.wordprocessingml.document
 pdf     application/pdf  dtd     application/xml-dtd
 ppt     application/powerpoint  
 rtf     application/rtf  
 gif     image/gif  gif     image/gif
 jpg     image/jpeg  gz      application/x-gzip
 jpeg    image/jpeg  
 png     image/png  
 tif     image/tiff  
 html    text/html  
 htm     text/html  htm     text/html
 txt     text/plain  html    text/html
 xml     text/xml  ico     image/x-icon
 mts     application/metastream  jpeg    image/jpeg
   jpg     image/jpeg
   js      application/javascript
   log     text/plain
 mid     audio/midi  mid     audio/midi
 midi    audio/midi  midi    audio/midi
   mov     video/quicktime
 mp3     audio/mpeg  mp3     audio/mpeg
   mpg     video/mpeg
   mpeg    video/mpeg
   mts     application/metastream
   pdf     application/pdf
   png     image/png
   ppt     application/powerpoint
   ra      audio/x-realaudio
 ram     audio/x-pn-realaudio  ram     audio/x-pn-realaudio
   rar     application/x-rar-compressed
   rdf     application/rdf+xml
 rpm     audio/x-pn-realaudio-plugin  rpm     audio/x-pn-realaudio-plugin
 ra      audio/x-realaudio  rss     application/rss+xml
 wav     audio/x-wav  rtf     application/rtf
 au      audio/basic  svg     image/svg+xml
 mpg     video/mpeg  
 avi     video/x-msvideo  
 mov     video/quicktime  
 swf     application/x-shockwave-flash  swf     application/x-shockwave-flash
   tar     application/x-tar
   tgz     application/x-gzip
   tif     image/tiff
   txt     text/plain
   wav     audio/x-wav
   xls     application/vnd.ms-excel
   xlsx    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
   xml     text/xml
   xsl     text/xml
   zip     application/zip
 }]  }]
   
 $LIMITS[  $LIMITS[
         $.post_max_size(10*0x400*0x400)          $.post_max_size(10*0x400*0x400)
 ]         ]
   
 #$MAIL[  #$MAIL[
 #       $.sendmail[your sendmail command goes here]  #       $.sendmail[your sendmail command goes here]
 #       these are tried when no 'sendmail' specified:  #       these are tried when no 'sendmail' specified:
 #           /usr/sbin/sendmail -t -i -f postmaster  #               /usr/sbin/sendmail -t -i -f postmaster
 #           /usr/lib/sendmail -t -i -f postmaster  #               /usr/lib/sendmail -t -i -f postmaster
 #]  #]
   
   
 @fatal_error[title;subtitle;body]  @fatal_error[title;subtitle;body]
 $response:status(500)  $response:status(500)
 $response:content-type[  $response:content-type[
         $.value[text/html]          $.value[text/html]
         $.charset[$response:charset]          $.charset[$response:charset]
 ]  ]
 <html>  <html>
 <head><title>$title</title></head>  <head><title>$title</title></head>
Line 78  $body Line 104  $body
 </body>  </body>
 </html>  </html>
   
   
 @unhandled_exception_debug[exception;stack]  @unhandled_exception_debug[exception;stack]
 ^fatal_error[Unhandled Exception^if(def $exception.type){ ($exception.type)};$exception.source;  ^fatal_error[Unhandled Exception^if(def $exception.type){ ($exception.type)};$exception.source;
 <pre>^untaint[html]{$exception.comment}</pre>  <pre>^untaint[html]{$exception.comment}</pre>
 ^if(def $exception.file){  ^if(def $exception.file){
 ^untaint[html]{<tt>$exception.file^(${exception.lineno}:$exception.colno^)</tt>}          ^untaint[html]{<tt>$exception.file^(${exception.lineno}:$exception.colno^)</tt>}
 }  }
 ^if($stack){  ^if($stack){
         <hr/>          <hr/>
Line 94  $body Line 121  $body
 }  }
 ]  ]
   
   
 @unhandled_exception_release[exception;stack]  @unhandled_exception_release[exception;stack]
 ^fatal_error[Unhandled Exception;;  ^fatal_error[Unhandled Exception;;
   
 <p>The server encountered an unhandled exception   <p>The server encountered an unhandled exception and was unable to complete your request.</p>
 and was unable to complete your request.</p>  <p>Please contact the server administrator, $env:SERVER_ADMIN and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
 <p>Please contact the server administrator, $env:SERVER_ADMIN  <p>More information about this error may be available in the Parser error log or in debug version of unhandled_exception.</p>
 and inform them of the time the error occurred,   
 and anything you might have done that may have caused the error.</p>  
 <p>More information about this error may be available in the Parser error log  
 or in debug version of unhandled_exception.</p>  
   
 ]  ]
   
   
   @is_developer[]
   #change mask to your ip address
   $result(def $env:REMOTE_ADDR && ^env:REMOTE_ADDR.match[^^127\.0\.0\.1^$])
   
   
 @unhandled_exception[exception;stack]  @unhandled_exception[exception;stack]
 #use debug version to see problem details  #developer? use debug version to see problem details
 ^unhandled_exception_release[$exception;$stack]  ^if(^is_developer[]){
 #^unhandled_exception_debug[$exception;$stack]          ^unhandled_exception_debug[$exception;$stack]
   }{
           ^if($exception.type eq "file.missing"){
   #               ^log404[]
   #               ^location[/404/]
                   $response:status(404)
           }{
                   ^unhandled_exception_release[$exception;$stack]
           }
   }
   
   
 @auto[]  @auto[]
 #source/client charsets  #source/client charsets
 $request:charset[windows-1251]  $request:charset[utf-8]
 $response:charset[windows-1251]  $response:charset[utf-8]
   
 $response:content-type[  $response:content-type[
         $.value[text/html]          $.value[text/html]
         $.charset[$response:charset]          $.charset[$response:charset]
 ]  ]
   
 #$SQL.connect-string[mysql://user:pass@host/db?charset=cp1251_koi8]  #$SQL.connect-string[mysql://user:pass@host/db?charset=utf8]
   #$SQL.connect-string[sqlite://db]
 #$SQL.connect-string[pgsql://user:pass@host/db]  #$SQL.connect-string[pgsql://user:pass@host/db]
 #$SQL.connect-string[oracle://user:pass@service?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]  
 #$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]  #$SQL.connect-string[odbc://DSN=datasource^;UID=user^;PWD=password]

Removed from v.1.10  
changed lines
  Added in v.1.19


E-mail: