!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/cluster-software/   drwxr-xr-x
Free 3.8 GB of 27.03 GB (14.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     compare.cgi (1.81 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Do an actual comparison

require './cluster-software-lib.pl';
&error_setup($text{'compare_err'});
&ReadParse();

# Work out which servers to use
if ($in{'all'}) {
    @hosts = &list_software_hosts();
    }
else {
    @allhosts = &list_software_hosts();
    @servers = &list_servers();
    @groups = &servers::list_all_groups(\@servers);
    foreach $s (split(/\0/, $in{'hosts'})) {
        if ($s =~ /^group_(.*)$/) {
            # Add all group members
            ($group) = grep { $_->{'name'} eq $1 } @groups;
            foreach $m (@{$group->{'members'}}) {
                ($server) =grep { $_->{'host'} eq $m } @servers;
                ($host) = grep { $_->{'id'} eq $server->{'id'} } @allhosts;
                push(@hosts, $host) if ($host);
                }
            }
        else {
            # Add one host
            ($host) = grep { $_->{'id'} eq $s } @allhosts;
            push(@hosts, $host) if ($host);
            }
        }
    }
@hosts >= 2 || &error($text{'compare_etwo'});

&ui_print_header(undef, $text{'compare_title'}, "");

# Find union of all packages
foreach $h (@hosts) {
    foreach $p (@{$h->{'packages'}}) {
        $p->{'host'} = $h;
        push(@{$packs{$p->{'name'}}}, $p);
        }
    }

# Show results by package
%smap = map { $_->{'id'}, $_ } &list_servers();
print &ui_columns_start([ $text{'compare_pack'},
             map { &server_name($smap{$_->{'id'}}) } @hosts ]);
foreach $pn (sort { $a cmp $b } (keys %packs)) {
    local @row = ( &ui_link("edit_pack.cgi?package=$pn",$pn) );
    local $ok = 1;
    foreach $h (@hosts) {
        local ($ph) = grep { $_->{'host'} eq $h } @{$packs{$pn}};
        if (!$ph) {
            push(@row, $text{'compare_miss'});
            $ok = 0;
            }
        else {
            push(@row, $ph->{'version'} || $text{'compare_got'});
            if ($ph->{'version'} &&
                $ph->{'version'} != $packs{$pn}->[0]->{'version'}) {
                $ok = 0;
                }
            }
        }
    if (!$ok || $in{'showall'}) {
        print &ui_columns_row(\@row);
        }
    }
print &ui_columns_end();

&ui_print_footer("", $text{'index_return'});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0029 ]--