|
|
| version 1.41, 2001/03/23 13:27:56 | version 1.171, 2001/05/08 06:08:46 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| #^OP:eval(1<2) | |
| $t[^table:load[/test.cfg]] | $filelist[^table:dir[.]] |
| ^$t.a=$t.a<BR> | <hr> |
| $path[/news/tululu/] | |
| ^$env:REQUEST_URI=$env:REQUEST_URI<BR> | #^path.flip[] |
| ^$env:PATH_INFO=$env:PATH_INFO<BR> | <hr> |
| $branches[^table:set{name val | |
| index.cgihtml 123 | |
| ^$env:REMOTE_ADDR=$env:REMOTE_ADDR<BR> | }] |
| ^$env:REQUEST_URI=$env:REQUEST_URI<BR> | $splitURI[^request:uri.lsplit[/]] |
| name ^if(^branches.locate[name;$splitURI.1]){found;not found}: | |
| ^rem{ | $branches.name |
| $response:body[] | <HR> |
| $response:location[http://parser3/123] | $splitURI[^request:uri.lsplit[/]] |
| $splitURI.0!$splitURI.1 | |
| <HR> | |
| $t2[^table:set{dir title | |
| /here Here | |
| }] | |
| $t2{^menu{${dir}-$title}[,]} | |
| <HR> | |
| $dir[news] | |
| $list[^table:dir[$dir]] | |
| ^list.menu{ | |
| $subdir[$dir/$list.name] | |
| $sublist[^table:dir[$subdir]] | |
| ${list.name}/ $sublist{^menu{$name}[,]}<br> | |
| } | } |
| <HR> | |
| ^t[x] | |
| ^$root_test=$root_test !<BR> | <HR> |
| ^$site_test=$site_test !<BR> | ^if(in "/otherdeeper"){y;n} |
| ^${cookie:вот}=${cookie:вот}?<BR> | <HR> |
| ^$request:query=$request:query<BR> | ^$form:проверка_имя=$form:проверка_имя<BR> |
| ^$request:uri=$request:uri<BR> | |
| <form method=post> | <form method=post> |
| (^$form:name=$form:name)<BR> | <input name=проверка_имя value=проверка_значение> |
| <input name=name value="^default[$form:name;не знаю]"> | |
| <input type=submit> | <input type=submit> |
| </form> | </form> |
| <HR> | |
| ^^table:dir[/]:<BR> | |
| $d[^table:dir[/]] | |
| $d{^menu{$name  ^; ^; ^; ^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}} | |
| <HR> | |
| $files[^table:set{name}] | |
| $d{^menu{ | |
| ^if(-d "$name"){ | |
| ^:files.append{$name} | |
| } | |
| }} | |
| @default[test;def] | $files{^menu{$name}[,]} |
| ^if(^test.length[]){$test}{$def} | <HR> |
| @exception[origin;source;comment;type;code] | @exception[origin;source;comment;type;code][i;j] |
| <body bgcolor=black> | <body bgcolor=black> |
| <font color=white> | <font color=white> |
| ERROR: | ERROR: |
| Line 39 ERROR: | Line 64 ERROR: |
| ${comment}. | ${comment}. |
| ^if(def $type){type=$type} | ^if(def $type){type=$type} |
| ^if(def $code){code=$code} | ^if(def $code){code=$code} |
| @auto_test[] | |
| ^BASE.auto_test[] | |
| <li>${request:uri}! | |
| @t[a] | |
| -${a}- | |
| @end | |