--- parser3/bin/Attic/auto.p.dist.in 2002/08/12 08:11:06 1.5 +++ parser3/bin/Attic/auto.p.dist.in 2013/07/07 16:40:13 1.17 @@ -1,26 +1,33 @@ -#$Id: auto.p.dist.in,v 1.5 2002/08/12 08:11:06 paf Exp $ +#$Id: auto.p.dist.in,v 1.17 2013/07/07 16:40:13 moko Exp $ -@conf[] -$charsetsdir[@charsetsdir@] -$sqldriversdir[@sqldriversdir@] +@conf[filespec] +$confdir[^file:dirname[$filespec]] +$charsetsdir[$confdir/charsets] +$sqldriversdir[$confdir/lib] $CHARSETS[ -@commentcharset_koi8r@ $.koi8-r[$charsetsdir/koi8-r.cfg] -@commentcharset_windows1250@ $.windows-1250[$charsetsdir/windows-1250.cfg] -@commentcharset_windows1251@ $.windows-1251[$charsetsdir/windows-1251.cfg] -@commentcharset_windows1257@ $.windows-1257[$charsetsdir/windows-1257.cfg] +# $.cp866[$charsetsdir/cp866.cfg] +# $.koi8-r[$charsetsdir/koi8-r.cfg] +# $.koi8-u[$charsetsdir/koi8-u.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[ - $.drivers[^table::set{protocol driver client -mysql $sqldriversdir/libparser3mysql.so @mysql_client@ -pgsql $sqldriversdir/libparser3pgsql.so @pgsql_client@ -oracle $sqldriversdir/libparser3oracle.so @oracle_client@ + $.drivers[^table::create{protocol driver client +mysql $sqldriversdir/libparser3mysql.@dll_extension@ libmysqlclient.@dll_extension@ +#sqlite $sqldriversdir/libparser3sqlite.@dll_extension@ sqlite3.@dll_extension@ +#pgsql $sqldriversdir/libparser3pgsql.@dll_extension@ libpq.so.@dll_extension@ +#oracle $sqldriversdir/libparser3oracle.@dll_extension@ libclntsh.@dll_extension@ }] ] -#for ^file:load[name;user-name] mime-type autodetection -$MIME-TYPES[^table::set{ext mime-type +#for ^file::load[name;user-name] mime-type autodetection +$MIME-TYPES[^table::create{ext mime-type zip application/zip doc application/msword xls application/vnd.ms-excel @@ -35,6 +42,7 @@ tif image/tiff html text/html htm text/html txt text/plain +xml text/xml mts application/metastream mid audio/midi midi audio/midi @@ -57,67 +65,86 @@ $LIMITS[ #$MAIL[ # $.sendmail[your sendmail command goes here] # these are tried when no 'sendmail' specified: -# /usr/sbin/sendmail -t -i -f postmaster -# /usr/lib/sendmail -t -i -f postmaster +# /usr/sbin/sendmail -t -i -f postmaster +# /usr/lib/sendmail -t -i -f postmaster #] -@unhandled_exception[exception;stack] -^fatal_error[Unhandled Exception; - -
The server encountered an unhandled exception -and was unable to complete your request.
-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.
-More information about this error may be available in the Parser error log.
+@fatal_error[title;subtitle;body] +$response:status(500) +$response:content-type[ + $.value[text/html] + $.charset[$response:charset] ] + +^untaint[html]{$exception.comment}
-^if(def $exception.source){
-$exception.source^untaint[html]{$exception.file^($exception.lineno^)}
+^if(def $exception.file){
+ ^untaint[html]{$exception.file^(${exception.lineno}:$exception.colno^)}
}
-^if(def $exception.type){exception.type=$exception.type}
^if($stack){
- | $stack.name | $stack.file^(${stack.lineno}:$stack.colno^) |
The server encountered an unhandled exception and was unable to complete your request.
+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.
+More information about this error may be available in the Parser error log or in debug version of unhandled_exception.
+ ] - -