{
return array(
'index' => $this->make_hook('index', AUTH_PUBLIC),
- 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC),
+ 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC),
'changelog' => $this->make_hook('changelog', AUTH_PUBLIC),
// Preferences thingies
{
$data = file_get_contents("/etc/ssl/xorgCA/cacert.pem","r");
header("Pragma:");
- header("Set-Cookie:");
- header("Cache-Control:");
- header("Expires:");
- header("Content-Type: application/x-x509-ca-cert");
+ header("Set-Cookie:");
+ header("Cache-Control:");
+ header("Expires:");
+ header("Content-Type: application/x-x509-ca-cert");
header("Content-Length: ".strlen($data));
echo $data;
exit;
}
$page->changeTpl('motdepasse.success.tpl');
+ $page->assign('now', strftime("%Y%m%d%H%M%S"));
$page->run();
}
$res = XDB::query(
"SELECT user_id, naissance
FROM auth_user_md5 AS u
- INNER JOIN aliases AS a ON (u.user_id=a.id AND type!='homonyme')
+ INNER JOIN aliases AS a ON (u.user_id=a.id AND type != 'homonyme')
WHERE a.alias={?} AND u.perms IN ('admin','user') AND u.deces=0", $mailorg);
list($uid, $naissance) = $res->fetchOneRow();
$logger = $_SESSION['log'] = new CoreLogger($uid);
$logger->log('recovery', $emails);
} else {
- $page->trig('Pas de résultat correspondant aux champs entrés dans notre base de données.');
+ $page->trig('Les informations que tu as rentrées ne permettent pas de récupérer ton mot de passe.<br />'.
+ 'Si tu as un homonyme, utilise prenom.nom.promo comme login');
}
}
XDB::query('DELETE FROM perte_pass WHERE certificat={?}', $certif);
$logger->log("passwd","");
$page->changeTpl('tmpPWD.success.tpl');
+ $page->assign('now', strftime("%Y%m%d%H%M%S"));
} else {
$page->changeTpl('motdepasse.tpl');
$page->addJsLink('motdepasse.js');