Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.184 and 1.349

version 1.184, 2001/05/17 15:20:15 version 1.349, 2001/10/02 11:12:56
Line 1 Line 1
 @main[]  @main[]
 ^main[]  $response:content-type[$.value[text/html] $.charset[windows-1251]]
 ^use[$form:file]  #^pcre[]
   #^regexp[]<hr>
 $строка[васяЗдЕсЬ]  #^mail[]
 ^^строка.upper[]=^строка.upper[]<br>  #^exec[]
 ^^строка.lower[]=^строка.lower[]<br>  #^fori[]
 <hr>  #^connect[mysql://hren]{^void:sql{nothing}}
   ^xslt[]
   OK
 $a[12]  
 ^a.int[]  @pcre[]
 <hr>  $s[1 2]
   ^s.match[\s;ig]{!}
   #^s.match[\d;ig]{!}
   
   
   @regexp[]
   $s[abcАБВ]
   ^if(^s.match[б][i]){y}{n}
   
   @mail[]
   #$ORIGINS(1)
   ^mail:send[
           $.from[paf@design.ru]
           $.to[paf@design.ru]
           $.body[1
           
           2
           
           
                   3]
   ]
   
   @exec[]
   $a[^file::exec[fc.exe;a;b]]
   $a.status|$a.stderr<hr>
   
   @fori[][i]
   ^for[i](1;3){... =$i= ...}
   
   @xslt[]
   $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
   #<!DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd">
   
   <people>
           <man id="1">
                   <name>P&#171^;AFB</name>
           </man>
           <man id="2">
                   <name>ПИФ</name>
           </man>
   </people>
   }]
   
 $t[^table:set{key       value  ^show-xdoc2[$xdoc]<hr>
 1       v1  #^show-xnode1[$xdoc]<hr>
 2       v2}]  $people[^xdoc.select[*/man]]
 $h[^t.hash[key]]  #^show1[]
   ^show-xnodes1[$people]<hr>
   #^people.0.owner.hren[]
 #^rem{  
 ^connect[$SQL.connect-string]{  ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
         $shit[^taint[our's]]  
 #       $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]  by id:
         $paf[^table:sql{select * from paf order by id desc}(5)]  ^show-xnode1[^xdoc.getElementById[1];0;1]
         $paf{  <hr>
         ^if(^empty[]){query result is empty}{  
         <table border=1>  @show1[array]
                 <tr><td>id</td><td>name</td><td>age</td></tr>  ^for[i](0;^array._count[]-1){
                 ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}      $x[$array.$i]
         </table>          $x.firstChild.nodeValue: 
         }}                  $pattributes[$x.parentNode.attributes]
                   ^if(^pattributes._count[]){
                           $pattributes.id.name=$pattributes.id.nodeValue
                   }
           <br>
 }  }
 #}          
   @show-xnodes1[array][i]
 <HR>  ^for[i](0;^array._count[]-1){
 $abc{}          ^show-xnode1[$array.$i;0;1]
 $tn[^table:set[nameless]{a1     b1  
 a2      b2  
 }]  
 $x[^tn.locate[0;a2]]  
 ^$tn.1=$tn.1  
 <hr>  
 $t0[^table:set{key      a       b  
 1       a1  
 2       a2      b2  
 }]  
 ^if(^t0.locate[key;2] && "a" ne "b"){y;n}  
 <hr>  
 $currentFolder[/a/b]  
 $path[^currentFolder.lsplit[/]]  
 ^path.flip[]  
 $path{  
 ^menu{$0}{,}  
 }  }
 <hr>  
 $t1[^table:set{key      value  
 1       v1  
 2       v2}]  
 $h1[^t1.hash[key]]  
 ^h1.default[$value[nothing]]  
 ^$h1.2.value=$h1.2.value<br>  
 ^$h1.2x.value=$h1.2x.value<br>  
 <hr>  
 $t2[^table:set{key      a       b  
 1       a1  
 2       a2      b2  
 }]  
 t2 ^if(^t2.empty[]){empty}{not empty}<br>  
 ^t2.offset(1)  
 $t2.b  
 $r[^t2.record[]]  
 <hr>  
 $th[^t2.hash[b]]  
 ^$th.b2.a=$th.b2.a<br>  
 <hr>  
 $th[^t2.hash[key;a]]  
 ^$th.2.a=$th.2.a<br>  
 <hr>  
 #^OP:eval(1<2)  
   
 $filelist[^table:dir[.]]  
 <hr>  
 $path[/news/tululu/]  
 #^path.flip[]  
 <hr>  
 $branches[^table:set{name       val  
 index.cgihtml   123  
 }]  
 $splitURI[^request:uri.lsplit[/]]  
 name ^if(^branches.locate[name;$splitURI.1]){found;not found}:  
 $branches.name  
 <HR>  
 $splitURI[^request:uri.lsplit[/]]  
 $splitURI.0!$splitURI.1  
 <HR>  
   
 $t2[^table:set{dir      title  @show-xnode1[x;level;single][l]
 /here   Here  ^if(def $x){
 }]      ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
 $t2{^menu{${dir}-$title}[,]}      ^if($x.nodeType == $xnode:ELEMENT_NODE){
 <HR>          &lt^;$x.nodeName
 $dir[news]              $pairs[$x.attributes]
 $list[^table:dir[$dir]]              ^if(def $pairs){
 ^list.menu{                  $names[^pairs._keys[]]
     $subdir[$dir/$list.name]                  ^names.menu{$names.key=$pairs.[$names.key].nodeValue }
         $sublist[^table:dir[$subdir]]              }
         ${list.name}/ $sublist{^menu{$name}[,]}<br>              &gt^;
 }      }{
 <HR>          [$x.nodeType]
 ^if(in "/otherdeeper"){y;n}      }
 <HR>      
 ^$form:проверка_имя=$form:проверка_имя<BR>      ^if(def $x.nodeValue){$x.nodeValue}<br>
 <form method=post action=index.html>      ^show-xnode1[$x.firstChild]($level+1)
 <input name=проверка_имя value=проверка_значение>      ^if(!$single){
 <input type=submit>              ^show-xnode1[$x.nextSibling]($level)
 </form>  
 <HR>  
   
 ^^table:dir[/]:<BR>  
 $d[^table:dir[/]]  
 $d{^menu{$name &nbsp^;&nbsp^;&nbsp^;&nbsp^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}  
 <HR>  
   
 $files[^table:set{name}]  
 $d{^menu{  
     ^if(-d "$name"){  
         ^:files.append{$name}  
     }      }
 }}  
   
 $files{^menu{$name}[,]}  
 <HR>  
   
 @exception[origin;source;comment;type;code][i;j]  
 <body bgcolor=black>  
 <font color=white>  
 ERROR:  
 ^if(def $source){$origin '$source'}  
 ${comment}.  
 ^if(def $type){type=$type}  
 ^if(def $code){code=$code}  
   
 @auto_test[]  
 ^BASE.auto_test[]  
 <li>${request:uri}!  
 @end  
   
       ^if($x.nodeType == $xnode:ELEMENT_NODE){
       ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
       }
   }
   
 @a[]  @show-xdoc2[xdoc]
   ^xdoc.save[save.xml;
   #       $.encoding[windows-1251]
           $.method[xml]
   ]
   $file[^xdoc.file[
   #       $.encoding[windows-1251]
           $.method[html]
   ]]
   ^file.save[text;save_file.html]
   ^taint[^xdoc.string[]]
   #       $.encoding[windows-1251]
   #       $.method[xml]
   #]]

Removed from v.1.184  
changed lines
  Added in v.1.349


E-mail: