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


Viewing file:     XmlDocument.py (1.97 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
# $Header: /var/local/cvsroot/4Suite/Ft/Server/Server/Xslt/XmlDocument.py,v 1.6 2005/04/06 23:05:46 jkloth Exp $
"""
XSLT extensions providing repository functionality related to
XmlDocument objects

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

from Ft.Xml.XPath import Conversions
from Ft.Xml.Xslt import XsltElement, ContentInfo, AttributeInfo

from Ns import SCORE_NS
import FtssXsltBase


def GetDocumentDefinition(context, path=None):
    path = Conversions.StringValue(path)
    base = FtssXsltBase.FetchBaseObject(context.processor, path)
    dd = base.getDocumentDefinition()
    if dd is None: return ""
    return dd.getAbsolutePath()


class SetDocumentDefinitionElement(XsltElement):
    """
    Change the Document Definition of a XML document
    """
    content = ContentInfo.Empty

    legalAttrs = {
        'path' : AttributeInfo.UriReferenceAvt(
            description=('The path of the resource to change the IMT of.'
                         ' Defaults to current.')),
       'docdef' : AttributeInfo.StringAvt(
            required=1,
            description='The new Document Definition'),
        }

    def instantiate(self, context, processor):
        context.setProcessState(self)
        # This may return None (the 'default' from AttributeInfo)
        path          = self._path.evaluate(context)
        dd          = self._docdef.evaluate(context)

        obj = FtssXsltBase.FetchBaseObject(processor, path)
        if dd == "":
            obj.setDocumentDefinition(None)
        else:
            docdef = obj.fetchResource(dd);
            obj.setDocumentDefinition(docdef)

        return


ExtFunctions = {
    (SCORE_NS, 'get-document-definition'): GetDocumentDefinition,
}

ExtElements = {
    (SCORE_NS, 'set-document-definition'): SetDocumentDefinitionElement,
}

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