XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
ProtectorMySQLDatabase Class Reference
Inheritance diagram for ProtectorMySQLDatabase:
Inheritance graph

Public Member Functions

 checkSql ($sql)
 
 injectionFound ($sql)
 
 ProtectorMySQLDatabase ()
 
query ($sql, $limit=0, $start=0)
 
 separateStringsInSQL ($sql)
 
- Public Member Functions inherited from XoopsMySQLDatabaseProxy
 query ($sql, $limit=0, $start=0)
 
- Public Member Functions inherited from XoopsMySQLDatabase
 close ()
 
 connect ($selectdb=TRUE)
 
 errno ()
 
 error ()
 
 fetchArray ($result)
 
 fetchBoth ($result)
 
 fetchObject ($result)
 
 fetchRow ($result)
 
 freeRecordSet ($result)
 
 genId ($sequence)
 
 getAffectedRows ()
 
 getFieldName ($result, $offset)
 
 getFieldsNum ($result)
 
 getFieldType ($result, $offset)
 
 getInsertId ()
 
 getRowsNum ($result)
 
 query ($sql, $limit=0, $start=0)
 
 queryF ($sql, $limit=0, $start=0)
 
 queryFromFile ($file)
 
 quote ($string)
 
 quoteString ($str)
 
- Public Member Functions inherited from XoopsDatabase
 prefix ($tablename= '')
 
 setLogger (&$logger)
 
 setPrefix ($value)
 
 XoopsDatabase ()
 

Public Attributes

 $doubtful_needles
 
 $doubtful_requests = array()
 

Detailed Description

Definition at line 11 of file ProtectorMysqlDatabase.class.php.

Member Function Documentation

ProtectorMySQLDatabase::checkSql (   $sql)

Definition at line 104 of file ProtectorMysqlDatabase.class.php.

References $sql, false, injectionFound(), separateStringsInSQL(), and true.

Referenced by query().

Here is the call graph for this function:

Here is the caller graph for this function:

ProtectorMySQLDatabase::injectionFound (   $sql)

Definition at line 35 of file ProtectorMysqlDatabase.class.php.

References $protector, $sql, and Protector\getInstance().

Referenced by checkSql().

Here is the call graph for this function:

Here is the caller graph for this function:

ProtectorMySQLDatabase::ProtectorMySQLDatabase ( )

Definition at line 27 of file ProtectorMysqlDatabase.class.php.

References $protector, and Protector\getInstance().

Here is the call graph for this function:

& ProtectorMySQLDatabase::query (   $sql,
  $limit = 0,
  $start = 0 
)

Definition at line 150 of file ProtectorMysqlDatabase.class.php.

References $limit, $ret, $sql, $start, and checkSql().

Here is the call graph for this function:

ProtectorMySQLDatabase::separateStringsInSQL (   $sql)

Definition at line 46 of file ProtectorMysqlDatabase.class.php.

References $i, $j, $sql, false, and true.

Referenced by checkSql().

Here is the caller graph for this function:

Member Data Documentation

ProtectorMySQLDatabase::$doubtful_needles
Initial value:
= array(
'concat' ,
'information_schema' ,
'select' ,
'union' ,
'/*' ,
'--' ,
'#' ,
)

Definition at line 15 of file ProtectorMysqlDatabase.class.php.

ProtectorMySQLDatabase::$doubtful_requests = array()

Definition at line 14 of file ProtectorMysqlDatabase.class.php.


The documentation for this class was generated from the following file: