Changeset 136
- Timestamp:
- 03/20/06 17:21:45 (3 years ago)
- Files:
-
- trunk/webmin/lbs-vnc/debian/changelog (modified) (1 diff)
- trunk/webmin/lbs-vnc/logs.cgi (modified) (1 diff)
- trunk/webmin/lbs-vnc/module.info (modified) (1 diff)
- trunk/webmin/lbs-vnc/proxy.pl (modified) (2 diffs)
- trunk/webmin/lbs-vnc/ssh.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/webmin/lbs-vnc/debian/changelog
r106 r136 1 webmin-lbs-vnc (0.9. 2) stable; urgency=low1 webmin-lbs-vnc (0.9.3) stable; urgency=low 2 2 3 3 * New release. trunk/webmin/lbs-vnc/logs.cgi
r106 r136 29 29 30 30 $lines = file("/var/log/daemon.log"); 31 $proxy = preg_grep("/ proxy.pl/", $lines);31 $proxy = preg_grep("/ proxy.pl:? /", $lines); 32 32 print( join("<br>",array_reverse($proxy))); 33 33 trunk/webmin/lbs-vnc/module.info
r106 r136 3 3 desc_fr=LRS : Prise de Contrôle à Distance 4 4 depends=0.94 lbs_common 5 version=0.9. 25 version=0.9.3 trunk/webmin/lbs-vnc/proxy.pl
r106 r136 20 20 # command line parsing: simple, always 6 arguments 21 21 22 if ( $#ARGV != 6)22 if ( $#ARGV != 7 ) 23 23 { 24 print "Usage: proxy.pl run|test from.ip dest.ip dest.port key user host \n";24 print "Usage: proxy.pl run|test from.ip dest.ip dest.port key user host loguser\n"; 25 25 exit 1; 26 26 } 27 27 28 my ($command, $from, $dest, $destport, $key, $sshuser, $host ) = @ARGV;28 my ($command, $from, $dest, $destport, $key, $sshuser, $host, $loguser) = @ARGV; 29 29 30 30 # globals … … 250 250 251 251 setlogsock('unix'); 252 openlog("proxy.pl $host", "", "daemon");252 openlog("proxy.pl: to $host as $loguser", "", "daemon"); 253 253 254 254 $pid = 0; # SSH pid trunk/webmin/lbs-vnc/ssh.php
r106 r136 51 51 function connect() 52 52 { 53 global $nbname ;53 global $nbname, $remote_user; 54 54 55 $cmd = escapeshellcmd("./proxy.pl run $this->from $this->ip $this->port $this->key $this->user $nbname ");55 $cmd = escapeshellcmd("./proxy.pl run $this->from $this->ip $this->port $this->key $this->user $nbname $remote_user"); 56 56 $handle = popen($cmd, "r"); 57 57 $string = fgets($handle, 100);
