Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.65 and 1.360

version 1.65, 2001/03/27 17:12:24 version 1.360, 2001/10/05 16:12:40
Line 1 Line 1
 @auto[]  
 $html-typo[^table:set{user      html    comment  
 <<      &laquo^;        длинные user вперёд  
 >>      &raquo^;  
 \n\n    <p>     !эти есть в таблице по умолчанию  
 \n      <br>    !но т.к. заменяем, надо повторить.  
 <       &lt^;   !можно этим воспользоваться,  
 >       &gt^;   !и что-то сделать ДО обычных замен  
 "       &quot^; !например из << и >>  
 &       &amp^;  !сделать ёлочки-кавычки.  
 _       &nbsp^;  
 ^#AB    &laquo^;        windows коды ёлочек  
 ^#BB    &raquo^;        windows коды ёлочек  
 (c)     &copy^;  
 ^#A9    &copy^; windows (c)  
 }]  
   
 @dump[t]  
 ^t.menu{$n<BR>}  
 <HR>  
 @func[n2]  
 $n2  
 @main[]  @main[]
 $n3[234]  #^regexp2[]
 ^func{$n3}  #^ttablerem[]
   #^pcre[]
 $t[^table:set{n  #^regexp[]<hr>
 3  #^mail[]
 01.3  #^exec[]
 1.2  #^fori[]
 2  #^tconnect[]
 }]  #^xslt[]
 ^$t:<BR>  #^xml[]
 ^dump[$t]  ^header[]
 ^t.sort($n)  OK
 ^^t.sort(^$n):<BR>  
 ^dump[$t]  @xslt[]
 ^t.sort{^:func($n)}  ^xdata[]
 ^^t.sort{^^:func(^$n)}:<BR>  ^show-xdoc2[^xdoc.transform[global.xsl]]
 ^dump[$t]  
 ^t.sort{$n}  @regexp2[]
 ^^t.sort{^$n}:<BR>  $s[  select]
 ^dump[$t]  $s[^s.match[^^\s*][]{!}]
 ^t.sort{$n}[desc]  $s
 ^^t.sort{^$n}[desc]:<BR>  
 ^dump[$t]  @header[]
 <HR>  $response:refresh[
           $.value[0]
 ^if(-f index.html){y}{n}<BR>          $.url[http://design.ru?a=$form:a]
 ^taint[html-typo;не знаю  
 я ничего  
   
 <<слово длинное>>  
   
 (c) by Я  
 ]<HR>  
 $t[^table:load[/test.cfg]]  
 ^process[@b[]  
 f  
 ]  ]
 ^b[]<BR>  
   
 ^$t.a=$t.a<BR>  @ttablerem[]
 ^t.offset[2]  $table[^table::load[a.cfg]]
 #$r[^t.record[]]  ^table.menu{$table.a}
 #^$r.a=$r.a<BR>  
   @tconnect[]
 ^$request:uri=$request:uri<BR>  ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
 ^$env:PATH_INFO=$env:PATH_INFO<BR>  $tables[^table::sql{show tables}]
 ^$env:REMOTE_ADDR=$env:REMOTE_ADDR<BR>  #$cols[^tables.columns[]]
   #$cols.column
 ^rem{  ^tables.menu{
 $response:body[]          $tables.[Tables_in_test]<br>
 $response:location[http://parser3/123]  
 }  }
   }
   
   @pcre[]
   $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= ...}
   
   @xdata[]
   #$response:content-type[$.value[text/html] $.charset[windows-1251]]
   $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" имя="word слово"
                   <name>P&#171^;AF        B</name>
           </man>
           ^for[i](2;3){
                   <man id="$i">
                           <name>ПИФ$i</name>
                   </man>
           }
   </people>
   }]
   
   @xml[]
   ^xdata[]
   
 <HR>  ^show-xdoc2[$xdoc]<hr>
 ^^auto_test[]:<BR>  #^show-xnode1[$xdoc]<hr>
 <ol>  $people[^xdoc.select[*/man]]
 ^auto_test[]  #^show1[]
 </ol>  ^show-xnodes1[$people]<hr>
 <HR>  #^people.0.owner.hren[]
   
 ^${cookie:вот}=${cookie:вот}?<BR>  ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
 ^$request:query=$request:query<BR>  
 ^$request:uri=$request:uri<BR>  by id:
   ^show-xnode1[^xdoc.getElementById[1];0;1]
 <form method=post>  <hr>
 <table border=1 width=250><tr><td>$form:name</td></tr></table>  
 <textarea name=name rows=5 cols=40>^untaint[html]{^default[$form:name;не знаю]}</textarea><BR>  @show1[array]
 <input type=submit>  ^for[i](0;^array._count[]-1){
 </form>      $x[$array.$i]
           $x.firstChild.nodeValue: 
 @default[test;def]                  $pattributes[$x.parentNode.attributes]
 $result[^if(^test.length[]){$test}{$def}]                  ^if(^pattributes._count[]){
                           $pattributes.id.name=$pattributes.id.nodeValue
 @exception[origin;source;comment;type;code]                  }
 <body bgcolor=black>          <br>
 <font color=white>  }
 ERROR:          
 ^if(def $source){$origin '$source'}  @show-xnodes1[array][i]
 ${comment}.  ^for[i](0;^array._count[]-1){
 ^if(def $type){type=$type}          ^show-xnode1[$array.$i;0;1]
 ^if(def $code){code=$code}  }
   
 @auto_test[]  
 ^BASE.auto_test[]  
 <li>${request:uri}!  
   
   @show-xnode1[x;level;single][l]
   ^if(def $x){
       ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
       ^if($x.nodeType == $xnode:ELEMENT_NODE){
           &lt^;$x.nodeName
               $pairs[$x.attributes]
               ^if(def $pairs){
                   $names[^pairs._keys[]]
                   ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
               }
               &gt^;
       }{
           [$x.nodeType]
       }
       
       ^if(def $x.nodeValue){$x.nodeValue}<br>
       ^show-xnode1[$x.firstChild]($level+1)
       ^if(!$single){
               ^show-xnode1[$x.nextSibling]($level)
       }
   
       ^if($x.nodeType == $xnode:ELEMENT_NODE){
       ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
       }
   }
   
   @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]
   <pre>^taint[^xdoc.string[]]</pre>
   #       $.encoding[windows-1251]
   #       $.method[xml]
   #]]

Removed from v.1.65  
changed lines
  Added in v.1.360


E-mail: