auto.p
Cep}|{ 24.09.2002 12:00
@conf[filespec]
$confdir[^file:dirname[$filespec]]
$charsetsdir[$confdir/charsets]
$sqldriversdir[$confdir/lib]
#кодировки
$CHARSETS[
$.windows-1251[C:/windows/parser3/etc/charsets/windows-1251.cfg]
$.koi8-r[C:/windows/parser3/etc/charsets/koi8-r.cfg]
]
#SQL дровишки
$SQL[
$.drivers[^table::set{protocol driver client
odbc c:/windows/parser3/lib/parser3odbc.dll
mysql c:/windows/parser3/lib/parser3mysql.dll c:/windows/parser3/lib/libmySQL.dll}]
]
#файл, создаваемый ^file::load[…],
#при выдаче в $response:body задаст этот $response:content-type
$MIME-TYPES[^table::set{ext mime-type
zip application/zip
doc application/msword
xls application/vnd.ms-excel
pdf application/pdf
ppt application/powerpoint
rtf application/rtf
gif image/gif
jpg image/jpeg
png image/png
tif image/tiff
html text/html
htm text/html
txt text/plain
mts application/metastream
mid audio/midi
midi audio/midi
mp3 audio/mpeg
ram audio/x-pn-realaudio
rpm audio/x-pn-realaudio-plugin
ra audio/x-realaudio
wav audio/x-wav
au audio/basic
mpg video/mpeg
avi video/x-msvideo
mov video/quicktime
swf application/x-shockwave-flash
}]
#максимальный размер POST данных
$LIMITS[
$.post_max_size(10*0x400*0x400)
]
#работа над ошибками
@unhandled_exception[exception;stack]
$response:content-type[
$.value[text/html]
$.charset[$response:charset]
]
<title>UNHANDLED EXCEPTION (root)</title>
<body bgcolor=white>
<font color=black>
<pre>^untaint[html]{$exception.comment}</pre>
^if(def $exception.source){
<b>$exception.source</b><br>
<pre>^untaint[html]{$exception.file^($exception.lineno^)}</pre>
}
^if(def $exception.type){exception.type=$exception.type}
^if($stack){
<hr>
^stack.menu{
<tt>$stack.name</tt> $stack.file^($stack.lineno^)<br>
}
}
@auto[]