Changeset 134 for branches/1.1dev/lib
- Timestamp:
- May 31, 2006 2:58:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/lib/MCVE.inc.php
r133 r134 18 18 var $connected = false; 19 19 var $conn; 20 var $ca_bundle = '/usr/share/ssl/certs/ca-bundle.crt'; 20 21 21 22 function MCVE($username, $password) … … 27 28 $this->username = $username; 28 29 $this->password = $password; 30 31 if (!$this->_connect()) { 32 trigger_error('Connection to MCVE engine failed.', E_USER_ERROR); 33 } 29 34 } 30 35 … … 36 41 37 42 // Initialize SSL structures and definitions. 38 MCVE_InitEngine( CODE_BASE . '/config/ca-bundle.crt');43 MCVE_InitEngine($this->ca_bundle); 39 44 40 45 // Allocate Connection Structures … … 94 99 function beginTrans() 95 100 { 96 $this->_connect(); 101 if (!$this->connected) { 102 return false; 103 } 97 104 $tid = MCVE_TransNew($this->conn); // Allocate memory for sending a transaction. 98 105 $this->transParam($tid, MC_USERNAME, $this->username);
Note: See TracChangeset
for help on using the changeset viewer.