!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/Server/Client/Commands/   drwxr-xr-x
Free 3.71 GB of 27.03 GB (13.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Install.py (4.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
# $Header: /var/local/cvsroot/4Suite/Ft/Server/Client/Commands/Install.py,v 1.26 2005/02/27 04:17:30 jkloth Exp $
"""
Implementation of '4ss install' command
(functions defined here are used by the Ft.Lib.CommandLine framework)

Copyright 2004 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
"""

__doc__ = """This command reads a 4Suite repository application's \
setup XML file from the local filesystem and uses it to install, \
update or remove the application in a repository. If necessary, you \
will be prompted first for credentials and access info to connect to \
the repository."""

import os

from Ft import GetConfigVar
from Ft.Lib import Uri
from Ft.Server.Client import FtServerClientException
from Ft.Server.Client.Commands import CommandUtil
from Ft.Server.Common.Install import InstallUtil


def Run(options,args):
    basePath = options.get('base','/')
    if options.has_key('demo'):
        #Get the Demo Directory
        file = os.path.join(GetConfigVar('DATADIR'), 'Demos', 'setup.xml')
        if not options.has_key('base'):
            basePath = '/ftss/'
    elif options.has_key('dashboard'):
        #Get a Console file
        file = os.path.join(GetConfigVar('DATADIR'), 'Dashboard', 'setup.xml')
        if not options.has_key('base'):
            basePath = '/ftss/'

    elif not args.has_key('setup'):
        sys.stderr.write("You must specify either --demo or a setup file\n")
       sys.stderr.flush()
    else:
        file = args['setup']

    quiet = options.get('quiet')

    fd = open(file)
    pl = InstallUtil.Deserialize(fd, Uri.OsPathToUri(file))
    fd.close()

    repo = CommandUtil.GetRepository(options, '4ss.install')
    if repo is not None:
        commit = False
        try:
            pl.install(repo, basePath, quiet, checkAcl=not(options.has_key("no-acl")))
            commit = True
        finally:
            try:
                if commit:
                    repo.txCommit()
                else:
                    repo.txRollback()
            except:
                pass

    return


def GetAvailableProducts(filename):
    print "GetAvailableProducts:", filename
    return


def Register():
    from Ft.Lib.CommandLine import Options, Command, Arguments
    cmd = Command.Command('install',
                          'Install, update, or remove a repository application',
                          'GuestBook',
                          __doc__,
                          function = Run,
                          options=Options.Options([Options.Option(None,
                                                                  'demo',
                                                                  'install the 4Suite repository demo applications'),
                                                   Options.Option(None,
                                                                  'dashboard',
                                                                  'install the 4Suite repository Dashboard applicaiton'),
                                                   Options.Option('D',
                                                                  'delete',
                                                                  'delete an installed repository application'),
                                                   Options.Option('b',
                                                                  'base=',
                                                                  'base path (in the repo) where the application should be installed'),
                                                   Options.Option('q',
                                                                  'quiet',
                                                                  "don't display what is happening"),
                                                   Options.Option(None,
                                                                  'no-acl',
                                                                  "don't sync ACL (install faster)"),
                                           ]),

                          arguments = [Arguments.OptionalArgument('setup',
                                                                  'the location of the setup XML file on the local filesystem; if not given, then you must provide the --demo flag',
                                                                  str),
                                       ],
                          fileName = __file__,
                          )
    return cmd

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