!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/share/doc/perl-Tk/demos/widget_lib/   drwxr-xr-x
Free 6181.97 GB of 6263.17 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     filebox.pl (3.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# filebox.tcl --
#
# This demonstration script prompts the user to select a file.
#
# SCCS: @(#) filebox.tcl 1.3 97/03/02 16:22:36

use vars qw/$TOP/;

sub filebox {
    my $demo = shift;

    $TOP = $MW->WidgetDemo
      (
       -name     => $demo,
       -text     => "Enter a file name in the entry box or click on the \"Browse\" buttons to select a file name using the file selection dialog.",
       -title    => 'File box Demonstration',
       -iconname => 'filebox',
      );
    foreach my $i (qw(open save)) {
    my $f = $TOP->Frame;
    my $lab = $f->Label(-text => "Select a file to $i: ",
                -anchor => 'e');
    my $ent = $f->Entry(-width => 20);
    my $but = $f->Button(-text => "Browse ...",
                 -command => sub { fileDialog($TOP, $ent, $i)});
    $lab->pack(-side => 'left');
    $ent->pack(-side => 'left',-expand => 'yes', -fill => 'x');
    $but->pack(-side => 'left');
    $f->pack(-fill => 'x', -padx => '1c', -pady => 3);
    }

    my $cbf = $TOP->Frame->pack(-fill => 'x', -padx => '1c', -pady => 3);
    my $fd;
    $cbf->Radiobutton
      (-text => 'FileSelect',
       -variable => \$fd,
       -value => 'FileSelect',
       -command => sub { local($^W) = 0;
             require Tk::FileSelect;
             Tk::FileSelect->import('as_default');
             _removeCachedFileDialogs();
             })->pack(-side => 'left');
    my $fdb = $cbf->Radiobutton
      (-text => 'FBox',
       -variable => \$fd,
       -value => 'FBox',
       -command => sub { local($^W) = 0;
             require Tk::FBox;
             Tk::FBox->import('as_default');
             _removeCachedFileDialogs();
             })->pack(-side => 'left');
    $fdb->invoke;

# XXX Motif style file box not implemented
#     unless (compare($tcl_platform{'platform'},'unix'))
#       {
#       $w->{'.strict'} = $w->Checkbutton('Name','strict','-text',"Use Motif Style Dialog",'-variable','tk_strictMotif','-onvalue',1,'-offvalue',0);
#       $w->{'.strict'}->pack('-anchor','c');
#       }
}

sub fileDialog {
    my $w = shift;
    my $ent = shift;
    my $operation = shift;
    my $types;
    my $file;
    #   Type names        Extension(s)    Mac File Type(s)
    #
    #---------------------------------------------------------
    @types =
      (["Text files",           [qw/.txt .doc/]],
       ["Text files",           '',             'TEXT'],
       ["Perl Scripts",         '.pl',        'TEXT'],
       ["C Source Files",    ['.c', '.h']],
       ["All Source Files",     [qw/.tcl .c .h/]],
       ["Image Files",        '.gif'],
       ["Image Files",        ['.jpeg', '.jpg']],
       ["Image Files",       '',        [qw/GIFF JPEG/]],
       ["All files",        '*']
      );
    if ($operation eq 'open') {
    $file = $w->getOpenFile(-filetypes => \@types);
    } else {
    $file = $w->getSaveFile(-filetypes => \@types,
                -initialfile => 'Untitled',
                -defaultextension => '.txt');
    }
    if (defined $file and $file ne '') {
    $ent->delete(0, 'end');
    $ent->insert(0, $file);
    $ent->xview('end');
    }
}

sub _removeCachedFileDialogs {
    my $mw = $TOP->MainWindow;
    my $remove = sub {
    my $t = shift;
    return if (!UNIVERSAL::isa($t, "Tk::Toplevel"));
    delete $t->{'tk_getOpenFile'};
    delete $t->{'tk_getSaveFile'};
    };
    $remove->($mw);
    $mw->Walk($remove);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0131 ]--