| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Alexander 03.05.2002 14:30
но судя по http://www.parser.ru/forum/?id=380 должен был получить.|-cgi-bin
|-parser3.cgi
|-parser3.conf
|-etc (создал спец. для парсера)
|-parser3
|-parser3.charsets
|-koi8-r.cfg
|-windows-1250.cfg
|-windows-1251.cfg
|-windows-1257.cfg
|-www
|-parser
|-auto.p
|-index.html
|-sections.cfg
|-.htaccessна все (кроме www) дал доступ 755 (через SmartFTP)-> на каталоги автоматом давалось а на все файлы давал ручками.@auto[]
^if(def $env:HTTP_PARSER_ROOT_CONFIG){
$configdir[$env:HTTP_PARSER_ROOT_CONFIG/..]
$charsetsdir[$configdir/parser3.charsets]
$sqldriversdir[$configdir/lib]
}{
$charsetsdir[/home/username/etc/parser3.charsets]
$sqldriversdir[/home/username/]
}
$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]
]
#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)
]
@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>
}
}----------------------------------------@navigation[]
$sections[^table::load[sections.cfg]]
<table width="100%" border="1">
<tr>
^sections.menu{
<td align="middle">
<a href="$sections.uri"><nobr>$sections.name</nobr></a>
</td>
}
</tr>
</table> ----------------------------------------<html>
<body>
^navigation[]
</body>
</html>----------------------------------------section_id name uri 1 Главная / 2 Новости /news/ 3 Контакты /contacts/ 4 Цены /price/ 5 Ваше мнение /gbook/----------------------------------------
#PARSER3 settings #SetEnv HTTP_PARSER_ROOT_CONFIG /home/username/cgi-bin/parser3.conf #назначение обработчиком .html страниц AddHandler parsed-html html Action parsed-html /cgi-bin/parser3.cgi #запрет на доступ к .p файлам. основной: auto.p <Files ~ "\.p$"> Order allow,deny Deny from all </Files>----------------------------------------