Validate($_uid, true, 'liste', $_stamp); $this->liste = $_liste; $this->desc = $_desc; $this->advertise = $_advertise; $this->modlevel = $_modlevel; $this->inslevel = $_inslevel; $this->owners = $_owners; $this->members = $_members; } // }}} // {{{ function formu() function formu() { return 'include/form.valid.listes.tpl'; } // }}} // {{{ function _mail_subj function _mail_subj() { return "[Polytechnique.org/LISTES] Demande de la liste {$this->liste}"; } // }}} // {{{ function _mail_body function _mail_body($isok) { if ($isok) { return " La mailing list {$this->liste} que tu avais demandée vient d'être créée."; } else { return " La demande que tu avais faite pour la mailing list {$this->liste} a été refusée."; } } // }}} // {{{ function commit() function commit() { global $globals; require_once('platal/xmlrpc-client.inc.php'); require_once('lists.inc.php'); $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password')); $ret = $client->create_list($this->liste, $this->desc, $this->advertise, $this->modlevel, $this->inslevel, $this->owners, $this->members); $liste = strtolower($this->liste); if ($ret) { foreach(Array($liste, $liste."-owner", $liste."-admin", $liste."-bounces") as $l) { $globals->xdb->execute("INSERT INTO aliases (alias,type) VALUES({?}, 'liste')", $l); } } return $ret; } // }}} } // }}} // vim:set et sw=4 sts=4 sws=4 foldmethod=marker: ?>