Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
egr 19.09.2002 11:17
только не путай конфигурационный auto.p и корневой для сайта, подробнее об этом в доке написано. А конфигурационный может выглядеть так:@conf[/path/to/auto.p] $confdir[^file:dirname[$filespec]] $charsetsdir[$confdir/charsets] $sqldriversdir[$confdir/lib] $CHARSETS[ $.koi8-r[$charsetsdir/koi8-r.cfg] # $.windows-1250[$charsetsdir/windows-1250.cfg] $.windows-1251[$charsetsdir/windows-1251.cfg] # $.windows-1257[$charsetsdir/windows-1257.cfg] ] #change your client libraries paths to those on your system $SQL[ $.drivers[^table::set{protocol driver client mysql $sqldriversdir/libparser3mysql.so libmysqlclient.so }] ] #for ^file::load[name;user-name] mime-type autodetection $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 }] $LIMITS[ $.post_max_size(10*0x400*0x400) ] $MAIL[ $.prog1[/usr/sbin/sendmail -t] $.prog2[/usr/lib/sendmail -t] ] @fatal_error[title;body] $response:status(500) $response:content-type[ $.value[text/html] $.charset[$response:charset] ] <html> <head><title>$title</title></head> <body> <H1>$title</H1> $body #for [x] MSIE friendly ^for[i](0;512/8){<!-- -->} </body> @unhandled_exception_debug[exception;stack] ^fatal_error[Unhandled Exception (Debug); <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> } } ] @unhandled_exception_release[exception;stack] ^fatal_error[Unhandled Exception; <p>????????? ?????? ??????? ??-?? ??????? ?????????? ????????? ??? ??????.</p> <p>?????????? ????????? ? ??????????????? ???????, <a href="mailto:egr@yandex.ru">egr@yandex.ru</a> ? ???????????? ??? ? ??????? ????? ????????? ??????, ? ? ?? ????????.</p> ] @unhandled_exception[exception;stack] ^unhandled_exception_release[$exception;$stack] @auto[] #source/client charsets $request:charset[windows-1251] $response:charset[windows-1251] $response:content-type[ $.value[text/html] $.charset[$response:charset] ] $CLASS_PATH[^table::create{path /classes}]