/**
  * Verifizierung der Session
  *
  * @param string $captcha
  */
 public function __construct($captcha = NULL)
 {
     parent::__construct(DSN);
     $this->reset();
     $this->setWhere('sid = "' . SID . '"');
     $this->addWhere('ip = "' . IP . '"');
     $this->addWhere('valid = true');
     if ($ret = $this->getAll()) {
         $this->captchaCheck = true;
         $this->debug("Captcha in DB valid");
     } else {
         $this->reset();
         $this->setWhere('sid = "' . SID . '"');
         $this->addWhere('ip = "' . IP . '"');
         $this->addWhere('captcha = "' . trim($captcha) . '"');
         if ($this->getCount()) {
             $this->update(array('valid' => 1));
             $this->captchaCheck = true;
             $this->debug("Captcha korrekt eingegeben");
         } else {
             $this->makeCaptcha();
             $this->debug("Captcha neu generieren");
         }
     }
 }
 function MDB_QT($table = null)
 {
     if (!is_null($table)) {
         $this->table = $table;
     }
     parent::MDB_QueryTool(DB_DSN, $GLOBALS['DB_OPTIONS']);
     $this->setErrorSetCallback(array(&$this, 'errorSet'));
     $this->setErrorLogCallback(array(&$this, 'errorLog'));
 }
Example #3
0
 function tests_Common($table = null)
 {
     if ($table != null) {
         $this->table = $table;
     }
     parent::MDB_QueryTool(DB_DSN);
     $this->setErrorSetCallback(array(&$this, 'errorSet'));
     $this->setErrorLogCallback(array(&$this, 'errorLog'));
 }
Example #4
0
 function __construct($dsn)
 {
     global $conexionDB;
     $this->sequenceName = $this->table;
     $this->tableSpec = array(array('name' => $this->table, 'shortName' => $this->table));
     parent::__construct($dsn, array('autoConnect' => false), 1);
     if (!$conexionDB) {
         $this->connect($dsn);
         $conexionDB = $this->db;
     } else {
         $this->db = $conexionDB;
     }
 }
 /**
  * Initiale Methoden
  */
 public function __construct()
 {
     parent::__construct(DSN);
 }