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


Viewing file:     test_removeall.py (3.15 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from Ft.Rdf import Model
from Ft.Rdf.Serializers.Dom import Serializer
from Ft.Xml import Domlette

doc1s = """<r:RDF
    xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:d="http://purl.org/dc/elements/1.1/"  
     xmlns:sm="http://xmlns.4suite.org/www/software-map"
     xmlns:f="http://xmlns.4suite.org/www/faq"
     xmlns="http://xmlns.4suite.org/www/platforms">


  <Platform r:ID="Linux">
    <d:Title>Linux</d:Title>
    <Version>6.2</Version>
    <Version>7.0</Version>
    <OsBase>UNIX</OsBase>
    <f:Entry r:resource='FAQ1'/>
  </Platform>

  <Platform r:ID="UNIX">
    <d:Title>UNIX</d:Title>
    <OsBase>UNIX</OsBase>
    <f:Entry r:resource='FAQ1'/>
  </Platform>

  <Platform r:ID="Windows">
    <d:Title>Windows</d:Title>
    <Version>3.1</Version>
    <Version>98</Version>
    <Version>2000</Version>
    <f:Entry r:resource='FAQ1'/>
  </Platform>

</r:RDF>
"""

doc2s = """<rdf:RDF xml:lang="en"
                     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

                  <rdf:Description ID="biologicalParent">
                   <rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
                 </rdf:Description>

                  <rdf:Description ID="biologicalFather">
                   <rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
                   <rdfs:subPropertyOf rdf:resource="#biologicalParent"/>
                  </rdf:Description>
                  </rdf:RDF>
"""


##doc2s = """<rdf:RDF
##            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
##            xmlns:a="http://description.org/schema/">
##            <rdf:Description>
##              <rdf:subject resource="http://www.w3.org/Home/Lassila" />
##              <rdf:predicate resource="http://description.org/schema/Creator" />
##              <rdf:object>Ora Lassila</rdf:object>
##              <rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement" />
##              <a:attributedTo>Ralph Swick</a:attributedTo>
##              <a:attributedTime>1999-02-22</a:attributedTime>
##            </rdf:Description>
##          </rdf:RDF>
##"""


def test(driver):
    reader = Domlette.DEFAULT_NONVALIDATING_READER()
    if driver.ExistsDb('test'):
        driver.DestroyDb('test')
    db = driver.CreateDb('test')
    db.begin()
    m = Model.Model(db)

    doc1 = reader.fromString(doc1s)
    doc2 = reader.fromString(doc2s)

    serializer = Serializer()    
    #serializer.deserialize(m, doc1, 'http://spam.com')
    serializer.deserialize(m, doc1, None)
    serializer.deserialize(m, doc2, 'http://eggs.com')

    #print m.complete(None, None, None)
    print m.size()
    
    outdoc1 = serializer.serialize(m)
    db.commit()
    
    Domlette.PrettyPrint(outdoc1)

    db.begin()
    m.removePattern(None, None, None, scope='http://eggs.com')

    #print m.complete(None, None, None)
    print m.size()

    outdoc2 = serializer.serialize(m)
    db.commit()
    Domlette.PrettyPrint(outdoc2)

    return

if __name__ == '__main__':
    from Ft.Rdf.Drivers import Memory, Postgres
    test(Memory)
    test(Postgres)

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