Changes between Version 5 and Version 6 of ExpressoTestCenter/environment
- Timestamp:
- 05/26/10 16:25:46 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExpressoTestCenter/environment
v5 v6 208 208 }}} 209 209 210 4. Editar arquivo /var/www/testlink/third_party/xml-rpc/class-IXR.php e adicionar as linhas em negrito:210 4. Editar arquivo /var/www/testlink/third_party/xml-rpc/class-IXR.php e adicionar as linhas marcadas com "-->": 211 211 212 212 {{{ … … 218 218 $xml = $request->getXml(); 219 219 $r = "\r\n"; 220 $credentials = "";221 if ($this->user != "") {222 $credentials = base64_encode($this->user . ":" . $this->pass);223 }220 --> $credentials = ""; 221 --> if ($this->user != "") { 222 --> $credentials = base64_encode($this->user . ":" . $this->pass); 223 --> } 224 224 $request = "POST {$this->path} HTTP/1.0$r"; 225 225 $request .= "Host: {$this->server}$r"; 226 if ($credentials != "") {227 $request .= "Authorization: Basic {$credentials}$r";228 }226 --> if ($credentials != "") { 227 --> $request .= "Authorization: Basic {$credentials}$r"; 228 --> } 229 229 230 230 function IXR_Client($server, $path = false, $port = 80, $timeout = false) { … … 234 234 $this->server = $bits['host']; 235 235 $this->port = isset($bits['port']) ? $bits['port'] : 80; 236 $this->user = isset($bits['user']) ? $bits['user'] : '';237 $this->pass = isset($bits['pass']) ? $bits['pass'] : '';236 --> $this->user = isset($bits['user']) ? $bits['user'] : ''; 237 --> $this->pass = isset($bits['pass']) ? $bits['pass'] : ''; 238 238 }}} 239 239