function Driver() { global $HTTP_COOKIE_VARS; $this->iDB = DBFactory::InitDB(); $this->iProjname = strtok(@$HTTP_COOKIE_VARS['ddda_project'], ':'); if ($this->iProjname != '') { $this->iProjidx = strtok(':'); } else { die('No project specified.'); } }
function DBDriver($aProjname, $aFile) { $this->iDB = DBFactory::InitDB(); $this->iProjname = $aProjname; parent::Driver($aFile); }
function DBCheckDriver($aProjidx) { $this->iDB = DBFactory::InitDB(); $this->iDBUtils = new DBUtils($this->iDB); $this->iProjidx = $aProjidx; }
function DocEditDriver() { global $HTTP_COOKIE_VARS; $this->iDB = DBFactory::InitDB(); $this->iDBUtils = new DBUtils($this->iDB); $this->iProjname = strtok(@$HTTP_COOKIE_VARS['ddda_project'], ':'); //echo "cookie=$this->iProjname <p>"; if ($this->iProjname != '') { $this->iProjidx = strtok(':'); $this->iDBUtils->SetProject($this->iProjname); } }