/[pxelator]/lib/PXElator/httpd.pm
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 /lib/PXElator/httpd.pm

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

revision 223 by dpavlin, Thu Aug 13 13:06:18 2009 UTC revision 224 by dpavlin, Sat Aug 15 22:38:02 2009 UTC
# Line 24  sub menu {qq{ Line 24  sub menu {qq{
24  <div style="font-size: 80%; color: #888">  <div style="font-size: 80%; color: #888">
25  <a href=/>home</a>  <a href=/>home</a>
26  <a href=/server>server</a>  <a href=/server>server</a>
27    <a href=/ip>ip</a>
28  <a href=/client>client</a>  <a href=/client>client</a>
29  </div>  </div>
30    
# Line 49  use daemons; Line 50  use daemons;
50  use kvm;  use kvm;
51  use browser;  use browser;
52  use network;  use network;
53    use ip;
54    
55  use CouchDB;  use CouchDB;
56    
# Line 266  sub get_request { Line 268  sub get_request {
268                                  )                                  )
269                                  ;                                  ;
270                  }                  }
271            } elsif ( $path =~ m{^/ip/?(\w+)?} ) {
272                    print $client ok
273                            , join("\n", map { qq|<a href=/ip/$_>$_</a>| } ( qw/link addr route neigh ntable tunnel maddr mroute xfrm/ ))
274                            , ip::html( $1 )
275                            ;
276          } elsif ( $path =~ m{^/our/(\w+)/(\S+)} ) {          } elsif ( $path =~ m{^/our/(\w+)/(\S+)} ) {
277                  eval 'our $' . $1 . ' = ' . $2;                  eval 'our $' . $1 . ' = ' . $2;
278                  warn $@ if $@;                  warn $@ if $@;

Legend:
Removed from v.223  
changed lines
  Added in v.224

  ViewVC Help
Powered by ViewVC 1.1.26