registerNamespace("r", "urn:e6:sites:pubasp:ContentServer.asmx"); $this->data["id"] = $query->query("/r:Response/r:Data/@contentid")->item(0)->nodeValue; $this->data["title"] = $query->query("/r:Response/r:Data/r:Title")->item(0)->textContent; $this->data["text"] = $query->query("/r:Response/r:Data/r:Content")->item(0)->textContent; $this->data["type"] = $query->query("/r:Response/r:Data/@type")->item(0)->nodeValue; */ $this->data["id"] = 0; $this->data["question"] = "You've been here before. Do you want to get to know me better?"; $this->data["neg_cookie_key"] = "dynamic"; $this->data["neg_cookie_value"] = "no"; } function __set($name, $value) { $this->data[$name] = $value; } function __get($name) { return $this->data[$name]; } function PrintCookie() { print("{$this->data["neg_cookie_key"]}={$this->data["neg_cookie_value"]}"); } } $dynamic = new Dynamic(); if (isset($_COOKIE[$dynamic->neg_cookie_key]) && $_COOKIE[$dynamic->neg_cookie_key] != $dynamic->neg_cookie_value) { print("
"); } else { print(""); } ?>