Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.97 and 1.156

version 1.97, 2001/04/03 17:01:04 version 1.156, 2001/04/25 11:03:01
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]  @dump[t]
 ^t.menu{$n<BR>}  ^t.menu{$n<BR>}
 <HR>  <HR>
Line 23  $n Line 6  $n
 @twop[a;b]  @twop[a;b]
 ($a,$b)  ($a,$b)
   
 @post-process[data]  @Zpostprocess[data]
 #(<BR>$data)<BR>  #(<BR>$data)<BR>
 ^data.match[1][g]{X}  ^data.match[1][g]{X}
   
 @mt[s;m]  @mt[s;m]
 $m ^if(^s.match[$:m][i]){matches}{do not match} $s<BR>  $m ^if(^s.match[$:m;i]){matches}{does not match} $s<BR>
   
 @main[]  @main[]
 first chars!<BR>  <form action=post.html method=post>
   <input name=name value=çíà÷åíèå>
   <input type=submit>
   </form>
   <HR>
   match xmg:<BR>
   $s[2
   2]
   $r[^s.match[(2^$ #comment
   
   
   )][xmg]]
   ^r.menu{$match}[,]
   <HR>
   
   image:create<BR>
   $itext[^image:create(300;100)]
   $itext{
   ^font[ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ0123456789-+=!\"%:,.^^^;<>?@()[]'&*/;font.gif](13)
   ^^text(10;10)[ÏÀÔ ñäåëàë ýòî]<BR>
   ^text(10;10)[ÏÀÔ ñäåëàë ýòî]
   ^font[ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ0123456789-+=!\"%:,.^^^;<>?@()[]'&*/;font.gif](13;8)
   ^^text(10;30)[ÏÀÔ ñäåëàë ýòî fixed]<BR>
   ^text(10;30)[ÏÀÔ ñäåëàë ýòî fixed]
   }
   $ff[^itext.gif[]]
   ^ff.save[i/itext.gif]
   ^rem{
   ^ff.save[i2/itext.gif]
   ^file:delete[i2/itext.gif]
   }
   ^itext.html[$src[i/itext.gif]]
   
   
   <HR>
   $t[^table:set{id}]
   ^^t.id.int[]=^t.id.int[]<BR>
   ^^hren.double[]=^hren.double[]<BR>
   <HR>
   #image:create<BR>
   #$drawing[^image:create(300;100)]
   drawing:load<BR>
   $drawing[^image:load[001004paf(c)lena_karin.gif]]
   $drawing{
   ^$drawing.width=$width<BR>
   ^$drawing.height=$height<BR>
   ^for[i](0;$width/4){
   ^line(0;0)($:i*4;$height-1)(0x00FF00)
   }
   
   ^rectangle(100;10)(180;40)(0xFF0000)
   ^bar(100+20;10+20)(180+20;40+20)(0xFFFF00)
   ^fill(0;0)(0x0000FF)
   ^replace(0xFFffFF;0x00FF00)(30;0)(150;99)(200;50)
   ^polybar(0x00FFFF)(200;100)(170;99)(280;50)
   ^polygon(0xFFFF00)(210;100)(160;90)(250;50)
   
   }
   <HR>
   #$response:body[^drawing.gif[]]
   $ff[^drawing.gif[]]
   ^ff.save[drawing.gif]
   ^drawing.html[$src[drawing.gif]]
   <HR>
   image:load<BR>
   $face[^image:load[001004paf(c)lena_karin.gif]]
   ^$face.src=$face.src<BR>
   ^$face.width=$face.width<BR>
   ^$face.height=$face.height<BR>
   <HR>
   
   ^if($form:photo){
   upload file:<BR>
   $face[^image:measure[$form:photo]]
   $face.src=$face.src<BR>
   ^$face.width=$face.width<BR>
   ^$face.height=$face.height<BR>
   <HR>
   }
   gif file class:<BR>
   $face[^image:measure[^file:load[001004paf(c)lena_karin.gif]]]
   ^$face.src=$face.src<BR>
   ^$face.width=$face.width<BR>
   ^$face.height=$face.height<BR>
   ^^face.html[]=^face.html[]<BR>
   <HR>
   gif:<BR>
   $face[^image:measure[001004paf(c)lena_karin.gif]]
   ^$face.src=$face.src<BR>
   ^$face.width=$face.width<BR>
   ^$face.height=$face.height<BR>
   ^^face.html[]=^face.html[]<BR>
   <HR>
   jpeg:<BR>
   $face[^image:measure[001004paf(c)lena_karin.jpg]]
   ^$face.src=$face.src<BR>
   ^$face.width=$face.width<BR>
   ^$face.height=$face.height<BR>
   <a href=$request:uri>^^face.html[^$border(1) ^$ismap(-1)]=^face.html[$border(1) $ismap(-1)]</a>
   <HR>
   
 ^rem{  ^rem{
   ^mail:send[
           $from[paf@design.ru]
           $to[paf@design.ru]
           $subject[test ïðîâåðêà]
           $body[test]
           $content-type[$value[text/plain] $charset[windows-1251]]
   ]
   <HR>
   }
   
   env.pl<BR>
   $e[^file:cgi[env.pl;$t[<b>1</b>]]]
   ^$e.exit-code=$e.exit-code<BR>
   ^$e.stderr="$e.stderr"<BR>
   ^$e.header="$e.header"<BR>
   $e.text
   <HR>
   
   ^rem{^mail:send[
       $to[paf@design.ru]
       $from[paf@design.ru]
           $body[
                   $1[
                           $content-type[
                               $value[text/plain]
                           $charset[windows-1251]
                           ]
                           $body[ïðèâåò, PAF.
   
   sincerily yours,
   PAF
   ]
                   ]
                   $attach[
                           $value[^file:load[test.zip]]
                           $type[uue]
                           $file-name[retest.zip]
                   ]
           ]
   ]
   }
   
   ^rem{^mail:send[
           $content-type[
               $value[text/plain]
           $charset[windows-1251]
           ]
       $to[paf@design.ru]
       $from[paf@design.ru]
           $body[ïðèâåò, PAF.
   
   sincerily yours,
   PAF
   ]
   ]
   }
   
   ^rem{^mail:send[
       $to[paf@design.ru]
       $from[paf@design.ru]
       $body[
           $2[
                   $content-type[$value[message/rfc822] $name[letter.eml]]
                   $body[to: paul
   from: paf
   subject: 2
   
   2.body
                   ]
           ]
           $1[
                           $to[paul]
                   $from[paf]
                   $subject[1]
                   $content-type[text/plain]
                   $body[image]
           ]
       ]
   ]}
   
   
   ^^table:dir[/]:<BR>
   $d[^table:dir[/]]
   ^d.menu{$name &nbsp^;&nbsp^;&nbsp^;&nbsp^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}
   <HR>
   
   ^^table:dir[/;html^$]<BR>
   $d[^table:dir[/;html^$]]
   ^d.menu{$name;<BR>}
   <HR>
   
   #^rem{
   ^connect[$SQL.connect-string]{
           $shit[^taint[our's]]
   #       $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]
           $paf[^table:sql{select * from paf order by id desc}(5)]
           $paf{
           ^empty{query result is empty}{
           <table border=1>
                   <tr><td>id</td><td>name</td><td>age</td></tr>
                   ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}
           </table>
           }}
   }
   #}
   
   <HR>
   
   $with-cr[^table:set{a   b
   ^taint[<1
   2>]     3
   }]
   "$with-cr.a"<BR>
   <HR>
   ^if(def $form:s){
           $form:s<BR>
           ^form:s.match[!][g]{<b>!</b>}<BR>
           <HR>
   }
   
 $r[1223]  $r[1223]
   ^^"$r".match[2][]{(^$match)}=^r.match[2][]{($match)}<BR>
 ^^"$r".match[2][i]{(^$match)}=^r.match[2][i]{($match)}<BR>  ^^"$r".match[2][i]{(^$match)}=^r.match[2][i]{($match)}<BR>
 ^^"$r".match[2][g]{(^$match)}=^r.match[2][g]{($match)}<BR>  ^^"$r".match[2][g]{(^$match)}=^r.match[2][g]{($match)}<BR>
 ^^"$r".match[2+][g]{(^$match)}=^r.match[2+][g]{($match)}<BR>  ^^"$r".match[2+][g]{(^$match)}=^r.match[2+][g]{($match)}<BR>
Line 43  $sm[^s.match[(.)][g]] Line 247  $sm[^s.match[(.)][g]]
 ^^"$s".match[(.)][g]:<BR>  ^^"$s".match[(.)][g]:<BR>
 ^sm.menu{  ^sm.menu{
         ^line[]:<BR>          ^line[]:<BR>
         ^$pre-match=$pre-match<BR>          ^$prematch=$prematch<BR>
         ^$match=$match<BR>          ^$match=$match<BR>
         ^$post-match=$post-match<BR>          ^$postmatch=$postmatch<BR>
         ^$1=$1<BR>          ^$1=$1<BR>
 }  }
 <HR>  <HR>
Line 53  $sm[^s.match[(.)][]] Line 257  $sm[^s.match[(.)][]]
 ^^"$s".match[(.)][]:<BR>  ^^"$s".match[(.)][]:<BR>
 ^sm.menu{  ^sm.menu{
         ^line[]:<BR>          ^line[]:<BR>
         ^$pre-match=$pre-match<BR>          ^$prematch=$prematch<BR>
         ^$match=$match<BR>          ^$match=$match<BR>
         ^$post-match=$post-match<BR>          ^$postmatch=$postmatch<BR>
         ^$1=$1<BR>          ^$1=$1<BR>
 }  }
 <HR>  <HR>
 ^mt[$s;ÿ]  ^mt[$s;ÿ]
   ^mt[$s;ß]
 ^mt[$s;b]  ^mt[$s;b]
 ^mt[$s;^^b]  ^mt[$s;^^b]
 ^mt[$s;^^a]  ^mt[$s;^^a]
 ^mt[$s;x]  ^mt[$s;x]
   
 <HR>  <HR>
 }  
 $dest[^table:set[nameless]{  $dest[^table:set[nameless]{
 $form:d11       d12     d13  $form:d11       d12     d13
 d21     d22     d23  d21     d22     d23
Line 88  $src[^table:set{a b c d Line 293  $src[^table:set{a b c d
 s1      s2      s3      s4  s1      s2      s3      s4
 }]  }]
 ^dest.join[$src]  ^dest.join[$src]
 ^dest.menu{$a!$b!$c!<BR>}  dest.menu:<BR>
   ^dest.menu{$a!$b!$c!<BR>
   ^rem{lock violation^table:set[nameless]{1
   2
   3}]
   }
   }
   
 <HR>  <HR>
 ^^random:generate(10)=^random:generate(10)<BR>  ^^random:generate(10)=^random:generate(10)<BR>
Line 120  $a[vasya,fedya,kolya] Line 331  $a[vasya,fedya,kolya]
 ^$request:browser.type=$request:browser.type<BR>  ^$request:browser.type=$request:browser.type<BR>
 ^$request:browser.version=$request:browser.version<BR>  ^$request:browser.version=$request:browser.version<BR>
   
 $tf[^file:load[test.zip;abc.zip;image/gif]]  $tf[^file:load[test.zip;abc.zip]]
 #$response:body[$tf]  #$response:body[$tf]
   
 ^$tf.name=$tf.name<BR>  ^$tf.name=$tf.name<BR>
Line 193  $response:location[http://parser3/123] Line 404  $response:location[http://parser3/123]
 </ol>  </ol>
 <HR>  <HR>
   
 ^${coo1k0iAeB:âîò}=${cookie:âîò}?<BR>  #$cookie:âîò[ïðèñëàë "browser"]
 ^${coo1k0iAeB:âîò}=${cookie:âîò}?<BR>  ^${cookie:âîò}=${cookie:âîò}?<BR>
 ^$request:query=$request:query<BR>  ^$request:query=$request:query<BR>
 ^$request:uri=$request:uri<BR>  ^$request:uri=$request:uri<BR>
   
 <form method=post>  <form method=post>
   <input type=hidden name=a value=123>
 <table border=1 width=250><tr><td>$form:name</td></tr></table>  <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>  <textarea name=name rows=5 cols=40>^untaint[html]{^default[$form:name;Ïðîáíûé òåêñò: À.Ô._Ïåòðîñÿí <<Æèçíü â Àäó>>
   íàæìè Submit]}</textarea><BR>
 <input type=submit>  <input type=submit>
 </form>  </form>
   

Removed from v.1.97  
changed lines
  Added in v.1.156


E-mail: