!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_bind.py (1.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |



def test(driverFactory):

    from Ft.Rdf import Model
    from Ft.Rdf.Inference import InferenceEngine

    if driverFactory.ExistsDb('kb'):
        driverFactory.DestroyDb('kb')
    db = driverFactory.CreateDb('kb')

    m = Model.Model(db)
    infeng = InferenceEngine.InferenceEngine(m,[])

    db.begin()

    exp = """<?xml version = "1.0"?>
<ril:expression xmlns:ril = "http://namespaces.rdfinference.org/ril" xmlns:ft = "http://namespaces.fourthought.com/test">
  <ril:rule>
    <ril:premise>
      <ft:running>
        <ril:variable name='X'/>
      </ft:running>
    </ril:premise>
    <ril:conclusion>
      <ril:assert>
        <ft:sweating>
          <ril:variable name='X'/>
        </ft:sweating>
      </ril:assert>
    </ril:conclusion>
  </ril:rule>
  <ril:rule>
    <ril:premise>
      <ft:sweating>
        <ril:variable name='X'/>
      </ft:sweating>
    </ril:premise>
    <ril:conclusion>
      <ril:assert>
        <ft:wet>
          <ril:variable name='X'/>
        </ft:wet>
      </ril:assert>
    </ril:conclusion>
  </ril:rule>
  <ril:assert>
    <ft:running><ril:string>Mike</ril:string></ft:running>
  </ril:assert>
  <ril:query>
    <ft:wet><ril:variable name='X'/></ft:wet>
  </ril:query>
</ril:expression>"""

    obj = m.compileRil(exp)

    res = obj.execute(infeng)

    m.bind(obj,"TEST")

    db.commit()

    db.begin()

    obj = m.lookup("TEST")
    
    if m.lookup("FOO"):
        raise SystemExit('lookup failed')

    res2 = obj.execute(infeng)

    if res != res2:
        raise SystemExit('execute of bound object failed')

    db.rollback()



if __name__ == '__main__':
    from Ft.Rdf.Drivers import Postgres

    test(Postgres)
    print 'Test OK'

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