Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Кирилл 24.05.2013 07:43
Здравствуйте.@conf[filespec] $confdir[^file:dirname[$filespec]] $charsetsdir[$confdir/charsets] $sqldriversdir[/usr/lib/parser3] $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] ] $SQL[ $.drivers[^table::set{protocol driver client mysql $sqldriversdir/libparser3mysql.so libmysqlclient.so.18 pgsql $sqldriversdir/libparser3pgsql.so libpq.so oracle $sqldriversdir/libparser3oracle.so /u01/app/oracle/product/8.1.5/lib/libclntsh.so?ORACLE_HOME=/u01/app/oracle/product/8.1.5&ORA_NLS33=/u01/app/oracle/product/8.1.5/ocommon/nls/admin/data }] ] #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(100*0x400*0x400) ] @fatal_error[title;subtitle;body] $response:status(500) $response:content-type[ $.value[text/html] $.charset[$response:charset] ] <html> <head><title>$title</title></head> <body> <h1>^if(def $subtitle){$subtitle;$title}</h1> $body #for [x] MSIE friendly ^for[i](0;512/8){<!-- -->} </body> </html> @unhandled_exception_debug[exception;stack] ^fatal_error[Unhandled Exception^if(def $exception.type){ ($exception.type)};$exception.source; <pre>^untaint[html]{$exception.comment}</pre> ^if(def $exception.file){ ^untaint[html]{<tt>$exception.file^(${exception.lineno}:$exception.colno^)</tt>} } ^if($stack){ <hr/> <table> ^stack.menu{ <tr><td>$stack.name</td><td><tt>$stack.file^(${stack.lineno}:$stack.colno^)</tt></td></tr> } </table> } ] @unhandled_exception_release[exception;stack] ^fatal_error[Ошибка!;; <p>Ваш запрос не может быть выполнен в результате ошибки на сервере.</p> ] @unhandled_exception[exception;stack] #use debug version to see problem details #^if(^MAIN:bDebug.int(0) || $form:sje eq kefjdladf){ ^unhandled_exception_debug[$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 /classes/operators /classes/common /classes/pclass /classes/common/pclass}] $db[mysql] $site_domain[site.test] # connect to db $cs[mysql://root:root@localhost/site] $csNew[mysql://root:root@localhost/site]Что за ошибка Cord too long? И куда копать.