예제 #1
0
 function gc($maxlifetime)
 {
     $expire = time() - intval($maxlifetime);
     $sql = 'DELETE FROM c_session WHERE sess_time < ? AND sess_name = ?';
     $params = array($expire, $this->sess_name());
     $res =& $this->db->query($sql, $params);
     if (DB::isError($res)) {
         return false;
     }
     return (bool) $res;
 }
예제 #2
0
function db_escapeIdentifier($str)
{
    return OpenPNE_DB::escapeIdentifier($str);
}