예제 #1
0
 function dPacl($opts = null)
 {
     global $db;
     if (!is_array($opts)) {
         $opts = array();
     }
     $opts['db_type'] = dPgetConfig('dbtype');
     $opts['db_host'] = dPgetConfig('dbhost');
     $opts['db_user'] = dPgetConfig('dbuser');
     $opts['db_password'] = dPgetConfig('dbpass');
     $opts['db_name'] = dPgetConfig('dbname');
     $opts['caching'] = dPgetConfig('gacl_cache', false);
     $opts['force_cache_expire'] = dPgetConfig('gacl_expire', true);
     $opts['cache_dir'] = dPgetConfig('gacl_cache_dir', '/tmp');
     $opts['cache_expire_time'] = dPgetConfig('gacl_timeout', 600);
     $opts['db'] = $db;
     /*
      * We can add an ADODB instance instead of the database connection details. 
      * This might be worth looking at in the future.
      */
     if (dPgetConfig('debug', 0) > 10) {
         $this->_debug = true;
     }
     parent::gacl_api($opts);
 }
예제 #2
0
 function __construct($opts = null)
 {
     global $db;
     if (!is_array($opts)) {
         $opts = array();
     }
     $opts['db_type'] = dPgetConfig('dbtype');
     $opts['db_host'] = dPgetConfig('dbhost');
     $opts['db_user'] = dPgetConfig('dbuser');
     $opts['db_password'] = dPgetConfig('dbpass');
     $opts['db_name'] = dPgetConfig('dbname');
     $opts['caching'] = dPgetConfig('gacl_cache', false);
     // With dotP prefixing, we can end up with doubles if we perform queries ourself.
     $this->_original_db_prefix = $this->_db_table_prefix;
     $opts['db_table_prefix'] = dPgetConfig('dbprefix', '') . $this->_db_table_prefix;
     $opts['force_cache_expire'] = dPgetConfig('gacl_expire', true);
     $opts['cache_dir'] = dPgetConfig('gacl_cache_dir', '/tmp');
     $opts['cache_expire_time'] = dPgetConfig('gacl_timeout', 600);
     $opts['db'] = $db;
     /*
      * We can add an ADODB instance instead of the database connection details. 
      * This might be worth looking at in the future.
      */
     if (dPgetConfig('debug', 0) > 10) {
         $this->_debug = true;
     }
     parent::gacl_api($opts);
 }
예제 #3
0
 public function __construct($opts = null)
 {
     global $db;
     if (!is_array($opts)) {
         $opts = array();
     }
     $opts['db_type'] = w2PgetConfig('dbtype');
     $opts['db_host'] = w2PgetConfig('dbhost');
     $opts['db_user'] = w2PgetConfig('dbuser');
     $opts['db_password'] = w2PgetConfig('dbpass');
     $opts['db_name'] = w2PgetConfig('dbname');
     $opts['db_table_prefix'] = w2PgetConfig('dbprefix') . $this->_db_acl_prefix;
     $opts['db'] = $db;
     if (w2PgetConfig('debug', 0) > 10) {
         $this->_debug = true;
     }
     parent::gacl_api($opts);
 }
예제 #4
0
 function dPacl($opts = null)
 {
     global $dPconfig;
     if (!is_array($opts)) {
         $opts = array();
     }
     $opts['db_type'] = $dPconfig['dbtype'];
     $opts['db_host'] = $dPconfig['dbhost'];
     $opts['db_user'] = $dPconfig['dbuser'];
     $opts['db_password'] = $dPconfig['dbpass'];
     $opts['db_name'] = $dPconfig['dbname'];
     // We can add an ADODB instance instead of the database
     // connection details.  This might be worth looking at in
     // the future.
     if ($dPconfig['debug'] > 10) {
         $this->_debug = true;
     }
     parent::gacl_api($opts);
 }
예제 #5
0
 public function w2Pacl($opts = null)
 {
     global $db;
     if (!is_array($opts)) {
         $opts = array();
     }
     $opts['db_type'] = w2PgetConfig('dbtype');
     $opts['db_host'] = w2PgetConfig('dbhost');
     $opts['db_user'] = w2PgetConfig('dbuser');
     $opts['db_password'] = w2PgetConfig('dbpass');
     $opts['db_name'] = w2PgetConfig('dbname');
     $opts['db_table_prefix'] = w2PgetConfig('dbprefix') . $this->_db_acl_prefix;
     $opts['db'] = $db;
     // We can add an ADODB instance instead of the database
     // connection details.  This might be worth looking at in
     // the future.
     if (w2PgetConfig('debug', 0) > 10) {
         $this->_debug = true;
     }
     parent::gacl_api($opts);
 }