/[RFID]/3m-810.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /3m-810.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 59 by dpavlin, Mon Nov 16 16:23:05 2009 UTC revision 63 by dpavlin, Thu Feb 11 10:52:14 2010 UTC
# Line 120  sub http_server { Line 120  sub http_server {
120                                  foreach my $p ( keys %$param ) {                                  foreach my $p ( keys %$param ) {
121                                          next unless $p =~ m/^tag_(\S+)/;                                          next unless $p =~ m/^tag_(\S+)/;
122                                          my $tag = $1;                                          my $tag = $1;
123                                          my $content = $param->{$p};                                          my $content = "\x04\x11\x00\x01" . $param->{$p};
124                                            $content = "\x00" if $param->{$p} eq 'blank';
125                                          $status = 302;                                          $status = 302;
126    
127                                          warn "PROGRAM $tag $content\n";                                          warn "PROGRAM $tag $content\n";
# Line 518  sub write_tag { Line 519  sub write_tag {
519          rename $path, $to;          rename $path, $to;
520          print ">> $to\n";          print ">> $to\n";
521    
522          delete $tags_data->{$tag};      # force re-read of tag          # force re-read of tag
523            delete $tags_data->{$tag};
524            delete $visible_tags->{$tag};
525  }  }
526    
527  sub secure_tag {  sub secure_tag {

Legend:
Removed from v.59  
changed lines
  Added in v.63

  ViewVC Help
Powered by ViewVC 1.1.26