!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/python2.4/site-packages/Ft/Lib/DistExt/   drwxr-xr-x
Free 3.46 GB of 27.03 GB (12.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     InstallL10n.py (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import os
from distutils.core import Command

class InstallL10n(Command):

    command_name = 'install_l10n'

    description = "install binary message catalogs"

    user_options = [
        ('force', 'f', "force installation (overwrite existing files)"),
        ('skip-build', None, "skip the build steps"),
        ]

    boolean_options = ['force', 'skip-build']

    def initialize_options(self):
        self.install_dir = None
        self.force = None
        self.skip_build = None
        return

    def finalize_options (self):
        self.set_undefined_options('install',
                                   ('install_l10n', 'install_dir'),
                                   ('force', 'force'),
                                   ('skip_build', 'skip_build'),
                                   )
        return

    def run (self):
        if not self.distribution.l10n:
            # Nothing to do
            return
        
        if not self.skip_build:
            self.run_command('build_l10n')

        for src, dst in self.get_inputs_outputs():
            # Create the destination directory if needed
            self.mkpath(os.path.dirname(dst))

            # Copy the file
            self.copy_file(src, dst)
        return

    # -- utility functions ---------------------------------------------

    def get_inputs_outputs(self):
        build_cmd = self.get_finalized_command('build_l10n')
        build_dir = build_cmd.build_dir
        build_files = build_cmd.get_outputs()
        
        prefix_len = len(build_dir) + len(os.sep)
        paired = []
        for source in build_files:
            # Trim off the build directory
            outfile = os.path.join(self.install_dir, source[prefix_len:])
            paired.append((source, outfile))
        return paired
        
    # -- external interfaces -------------------------------------------

    def get_inputs(self):
        return [ src for (src, dst) in self.get_inputs_outputs() ]

    def get_outputs(self):
        return [ dst for (src, dst) in self.get_inputs_outputs() ]

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0039 ]--