!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/gray-theme/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     uconfig.cgi (2.98 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display a form for editing the preferences in a Usermin module, one section
# at a time.

require "gray-theme/gray-theme-lib.pl";
require './config-lib.pl';
&ReadParse();
$m = $in{'module'} || $ARGV[0];
&foreign_available($m) || &error($text{'config_eaccess'});
&switch_to_remote_user();
&create_user_config_dirs();

%module_info = &get_module_info($m);
if (-r &help_file($m, "config_intro")) {
    $help = [ "config_intro", $m ];
    }
else {
    $help = undef;
    }
&ui_print_header(&text('config_dir', $module_info{'desc'}),
         $text{'config_title'}, "", $help, 0, 1);
$mdir = &module_root_directory($m);

# Read the config.info file to find sections
&read_file("$mdir/uconfig.info", \%info, \@info_order);
foreach $i (@info_order) {
    @p = split(/,/, $info{$i});
    if ($p[1] == 11) {
        push(@sections, [ $i, $p[0] ]);
        }
    }
if (@sections > 1 && &get_webmin_version() >= 1.225) {
    # Work out template section to edit
    $in{'section'} ||= $sections[0]->[0];
    $idx = &indexof($in{'section'}, map { $_->[0] } @sections);
    if ($in{'nprev'}) {
        $idx--;
        $idx = @sections-1 if ($idx < 0);
        }
    elsif ($in{'nnext'}) {
        $idx++;
        $idx = 0 if ($idx >= @sections);
        }
    $in{'section'} = $sections[$idx]->[0];

    # We have some sections .. show a menu to select
    print &ui_form_start("uconfig.cgi");
    print &ui_hidden("module", $m),"\n";
    print $text{'config_section'},"\n";
    print &ui_select("section", $in{'section'}, \@sections,
             1, 0, 0, 0, "onChange='form.submit()'");
    print &ui_submit($text{'config_change'});
    print "&nbsp;&nbsp;\n";
    print &ui_submit($text{'config_nprev'}, "nprev");
    print &ui_submit($text{'config_nnext'}, "nnext");
    print &ui_form_end();
    ($s) = grep { $_->[0] eq $in{'section'} } @sections;
    $sname = " ($s->[1])";
    }

print &ui_form_start("uconfig_save.cgi", "post");
print &ui_hidden("module", $m),"\n";
print &ui_hidden("section", $in{'section'}),"\n";
if ($s) {
    # Find next section
    $idx = &indexof($s, @sections);
    if ($idx == @sections-1) {
        print &ui_hidden("section_next", $sections[0]->[0]);
        }
    else {
        print &ui_hidden("section_next", $sections[$idx+1]->[0]);
        }
    }
print &ui_table_start(&text('config_header', $module_info{'desc'}).$sname,
              "width=100%", 2);
&read_file("$m/defaultuconfig", \%newconfig);
&read_file("$config_directory/$m/uconfig", \%newconfig);
&read_file("$user_config_directory/$m/config", \%newconfig);
&read_file("$config_directory/$m/canconfig", \%canconfig);

if (-r "$mdir/uconfig_info.pl") {
    # Module has a custom config editor
    &foreign_require($m, "uconfig_info.pl");
    local $fn = "${m}::config_form";
    if (defined(&$fn)) {
        $func++;
        &foreign_call($m, "config_form", \%newconfig, \%canconfig);
        }
    }
if (!$func) {
    # Use config.info to create config inputs
    &generate_config(\%newconfig, "$mdir/uconfig.info", $m,
             %canconfig ? \%canconfig : undef,
             undef, $in{'section'});
    }
print &ui_table_end();
print &ui_form_end([ [ "save", $text{'save'} ],
             $s ? ( [ "save_next", $text{'config_next'} ] ) : ( ) ]);

&ui_print_footer("/$m", $text{'index'});


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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