Login   Register  
PHP Classes
elePHPant
Icontem

File: lib/mysql/db.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roman Shneer  >  PHP Security Scanner  >  lib/mysql/db.inc.php  >  Download  
File: lib/mysql/db.inc.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Security Scanner
Stop security attacks blocking malicious values
Author: By
Last change:
Date: 1 year ago
Size: 3,112 bytes
 

Contents

Class file image Download
<?
/**
*Class DB MYSQL - P.W.S.M.
*db lib for p.w.s.m work
*Author Roman Shneer romanshneer@gmail.com
*1.02.2012
*Any changes at your risk and criminal responsibility
*/
/*############ database basic interface ####################*/
eval(base64_decode('Q2xhc3MgREINCnsNCiAgICAgICAgdmFyICRjb25uOw0KICAgICAgICBmdW5jdGlvbiBEQigkZGJfaG9zdCwkZGJfbmFtZSwkZGJfdXNlciwkZGJfcGFzcykNCiAgICAgICAgew0KICAgICAgICAgICANCiAgICAgICAgaWYoISR0aGlzLT5jb25uID0gQG15c3FsX2Nvbm5lY3QoJGRiX2hvc3QsJGRiX3VzZXIsJGRiX3Bhc3MpKQ0KICAgICAgICB7DQogICAgICAgIGRpZSgiPGRpdiBzdHlsZT0nY29sb3I6cmVkJz5JbXBvcnN0YWJsZSBjb25uZWN0IHRvIGRiIHNlcnZlciAiLiRkYl9ob3N0LiIgZGJuYW1lICIuJGRiX25hbWUuIjwvZGl2PiIpOw0KICAgICAgICBleGl0KCk7DQogICAgICAgIH0NCiAgICAgICAgJHJlemRiPW15c3FsX3NlbGVjdF9kYigkZGJfbmFtZSwkdGhpcy0+Y29ubik7DQogICAgCWlmKCRyZXpkYj09ZmFsc2UpZGllKCI8Y2VudGVyPjxoMSBzdHlsZT0nY29sb3I6cmVkJz5EYXRhYmFzZSBub3QgY3JlYXRlZCEhPC9oMT48L2NlbnRlcj4iKTsNCgkJI2RpZSgkcmV6ZGIuIjxocj4iKTsNCiAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGZ1bmN0aW9uIHJlZGlyZWN0KCRmKQ0KICAgICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICBoZWFkZXIoIkxvY2F0aW9uOiIuJGYpOw0KICAgICAgICAgICAgICAgIGV4aXQoKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjDQogICAgICAgIGZ1bmN0aW9uIFFVRVJZKCRzcWwpDQogICAgICAgIHsNCiAgICAgICAgICNwcmludCAkc3FsLiJcbiI7DQoNCiAgICAgICAgJHJlc3VsdD1teXNxbF9xdWVyeSgkc3FsLCR0aGlzLT5jb25uKTsNCiAgICAgICAgI3ByaW50ICRyZXN1bHQuIjxocj4iOw0KICAgICAgICBpZigkcmVzdWx0KXJldHVybiAkcmVzdWx0Ow0KICAgICAgICBlbHNlICR0aGlzLT5sb2dfZGJfZXJyb3IoJHNxbCxteXNxbF9lcnJvcigkdGhpcy0+Y29ubikpOw0KICAgICAgICB9DQogICAgICAgICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjDQogICAgICAgIGZ1bmN0aW9uIExJU1RfUSgkc3FsKQ0KICAgICAgICB7DQogICAgICAgICNwcmludCAkc3FsLiI8aHI+IjsNCiAgICAgICAgJHJlc3VsdD0kdGhpcy0+UVVFUlkoJHNxbCk7DQoNCiAgICAgICAgaWYobXlzcWxfbnVtX3Jvd3MoJHJlc3VsdCk9PTApcmV0dXJuIGZhbHNlOw0KDQogICAgICAgIHdoaWxlKCRyb3c9bXlzcWxfZmV0Y2hfYXNzb2MoJHJlc3VsdCkpDQogICAgICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICRkYXRhW109JHJvdzsNCiAgICAgICAgICAgICAgICB9DQoNCiAgICAgICAgcmV0dXJuICRkYXRhOw0KICAgICAgICB9DQogICAgICAgICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KICAgICAgICBmdW5jdGlvbiBST1dfUSgkc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