Changeset 130
- Timestamp:
- 06/26/07 22:44:51 (2 years ago)
- Files:
-
- trunk/Framework/Site/Default/config.xml (modified) (1 diff)
- trunk/Framework/User/Vpopmail.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Framework/Site/Default/config.xml
r119 r130 3 3 <vpopmaildHost>home.shupp.org</vpopmaildHost> 4 4 <vpopmaildPort>89</vpopmaildPort> 5 <debug>0</debug> 5 6 <mcryptKey>My Secret Key</mcryptKey> 6 7 <maxPerPage>10</maxPerPage> trunk/Framework/User/Vpopmail.php
r125 r130 51 51 * @access public 52 52 */ 53 public $debug = false;53 public $debug = 0; 54 54 /** 55 55 * loginUser … … 86 86 87 87 function __construct() { 88 #parent::__construct();89 88 // Manual log stuff, since we're skipping Framework_User::__construct() 90 if ($this->debug && is_null($this->log)) { 89 $this->debug = (int)Framework::$site->config->debug; 90 if ($this->debug > 0 && is_null($this->log)) { 91 91 $logFile = (string)Framework::$site->config->logFile; 92 92 $this->log = Log::factory('file', $logFile); … … 96 96 $this->port = (string)Framework::$site->config->vpopmaildPort; 97 97 $this->socket = new Net_Socket(); 98 $result = $this->socket->connect($this->address, $this->port );98 $result = $this->socket->connect($this->address, $this->port, null, 30); 99 99 if(PEAR::isError($result)) return $result; 100 100 } 101 101 102 102 function recordio($data) { 103 if($this->debug )103 if($this->debug > 0) 104 104 $this->log->log($data); 105 105 }
