/** * @param string $sScriptName * @return array | bool */ public function GetList() { if ($this->_connect()) { if ($this->_oSieve->sieve_listscripts()) { if (is_array($this->_oSieve->response)) { return $this->_oSieve->response; } else { return array(); } } } return false; }
} $userid = $PHP_AUTH_USER; $password = $PHP_AUTH_PW; $emailaddr = "{$userid}@{$domain}"; // Connect to sieve server $sieve = new sieve($sieveserver, $sieveport, $userid, $password); // Right password for this user? if (!$sieve->sieve_login()) { authenticate(); } // If the user requested, deactivate current script if ($deactivatescript) { $sieve->sieve_setactivescript(""); } // Verify that other script is not active if ($sieve->sieve_listscripts()) { if (isset($sieve->response["ACTIVE"])) { if ($sieve->response["ACTIVE"] != "vacationset") { ask_active_script($sieve->response["ACTIVE"]); } } } if (!isset($message)) { read_aliases(); html_head(); ?> <FORM METHOD="POST" ACTION="<?php echo $PHP_SELF; ?> ">