예제 #1
0
 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.');
     }
 }
예제 #2
0
 function DBDriver($aProjname, $aFile)
 {
     $this->iDB = DBFactory::InitDB();
     $this->iProjname = $aProjname;
     parent::Driver($aFile);
 }
예제 #3
0
 function DBCheckDriver($aProjidx)
 {
     $this->iDB = DBFactory::InitDB();
     $this->iDBUtils = new DBUtils($this->iDB);
     $this->iProjidx = $aProjidx;
 }
예제 #4
0
 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);
     }
 }