sourcePath = $value; return $this; } public function setTargetPath($value) { $this->targetPath = $value; return $this; } /** * Any cookies filtered should have their paths use this as a * minimum base. * * @access private * @return void */ private function getUseSourcePath() { return ($this->sourcePath && '/' === $this->sourcePath[0]) ? $this->sourcePath : '/' ; } public function setTargetHost($value) { $this->targetHost = $value; return $this; } public function getFilteredSetCookie($setCookie) { $oldParts = explode('; ', $setCookie); $newParts = $oldParts; foreach ($newParts as &$part) { if (0 === strpos($part, 'path=')) { $path = substr($part, 5); $useSourcePath = $this->getUseSourcePath(); if ( $this->targetPath && 0 === strpos($path, $this->targetPath) ) { // path starts with targetPath, so we can do path filtering $newPath = substr_replace( $path, $useSourcePath, 0, strlen($this->targetPath) ); $part = "path=$newPath"; } else { // otherwise fall back to / which means any path $part = "path=$useSourcePath"; } } elseif (0 === strpos($part, 'domain')) { // must rewrite the domain for it to work. if ($this->targetHost) { // domain only works if there is at least 1 dot in it. $domain = false !== strpos(substr($this->targetHost, 1), '.') ? $this->targetHost : ''; $part = "domain=$domain"; } } } $ret = join('; ', $newParts); return $ret; } } __halt_compiler();----SIGNATURE:----KZ//WQ7Lp4K+7GXQc7ikfN8U+y+/VSspK43spT0cwssQEVXcekwlSb9k3MJWYQS8sP2KzSV1GB4uYKkLPvRYqah8zSGqpkenVH4HlNH9ERLIKJN0IDcBSErGoNCRBylithzKhfQ5ZEZ5Tej4oCRAOBZ43CJ34sGiDFm3os1Duhe+pZ1GYKgMI6ZVfSPx0ybLKy49ljTvGo4ZgtsHl/Jfmw0P/kl4zVGsuA6zUgdJI79k7oPsZTfv8P3i6egU9UD3Y0BJW3cWV7SIKjBmegxmHIZChU8VI6sVU1jW4tnglOBi6+lCN6/t6Av5+akOjx8oxLMPoZPbBgus5K9ztER7cmRFHrV7cDLf2X/t9gO//+ooXxZ0GYkjHYKMw03NH39BRt3t5eWZlCprcSJ0QA/2/HZ9qC05eJR5RdiGH9MDycd0q0Ica12+kkdEkZGDbCnLsWKK5/VYpXKwUEqAI5C/zF8aku07zbT1laet0+9UnjmqFnbRovSfcMIFzlRC45VWRZwf5I8yJBQUK4kdKj3L3XAKmxktxSVNmqmNmyalchVOithp5JTxaZQdzV+VcCesOewTPVVy5+2tzcHWoZZV9sk0FI1BDabzphaP9DKalQZVFe+IHlYfQP5nJ49OuKGyqV/zhGUKUFoWEjAnLbfnMPOfV70bhCrhvlDnY2n6gF4=----ATTACHMENT:----NzEyODg0MzgyODc2NTUxOCAyMTc2ODQxOTkxODA3MDI0IDYwNTMxODA5MTkwNTA4ODI=