}
// }}}
- // {{{ function get_request()
-
- function get_request($uid)
- {
- return parent::get_request($uid,$this->title);
- }
-
- // }}}
// {{{ function formu()
function formu()
$body = $this->prenom.",\n\n"
. $this->_mail_body($isok)
- . (Env::has('comm') ? "\n\n".Env::get('comm') : '')
+ . (Env::has('comm') ? "\n\n".Env::v('comm') : '')
. "\n\nCordialement,\nL'équipe Polytechnique.org\n";
$mailer->setTxtBody(wordwrap($body));
function commit()
{
- global $globals;
require_once('homonymes.inc.php');
switch_bestalias($this->uid, $this->loginbis);
if (!$this->warning) {
- $globals->xdb->execute("UPDATE aliases SET type='homonyme',expire=NOW() WHERE alias={?}", $this->loginbis);
- $globals->xdb->execute("REPLACE INTO homonymes (homonyme_id,user_id) VALUES({?},{?})", $this->uid, $this->uid);
+ XDB::execute("UPDATE aliases SET type='homonyme',expire=NOW() WHERE alias={?}", $this->loginbis);
+ XDB::execute("REPLACE INTO homonymes (homonyme_id,user_id) VALUES({?},{?})", $this->uid, $this->uid);
}
return true;