From 4353ce919d17989022336ceb991ab31ba853baa2 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Mon, 19 Jul 2004 09:06:17 +0000 Subject: [PATCH] maj --- etat_migration | 2 +- htdocs/maj.php | 33 +++++++++++++++++++++++++++++++++ templates/maj.tpl | 13 +++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 htdocs/maj.php create mode 100644 templates/maj.tpl diff --git a/etat_migration b/etat_migration index cba5af0..3b30f1e 100644 --- a/etat_migration +++ b/etat_migration @@ -30,7 +30,6 @@ Etat | Ancien nom | Nouveau nom ------+-[ emails ... ]----------------------------+---------------- ; | routage-mail.php | ------+-[ inscription + mdp ]---------------------+---------------- -; | maj.php | ; | step4.php | ; | tmpPWD.php | ------+-[ bordel ]--------------------------------+---------------- @@ -160,6 +159,7 @@ xx | groupex.php | groupex/index.php xx | index.php | - xx | inscrire.php | xx | login.php | - +xx | maj.php | xx | marketing.php | marketing/public.php xx | mescontacts.php | - xx | motdepassemd5.php | - diff --git a/htdocs/maj.php b/htdocs/maj.php new file mode 100644 index 0000000..557631b --- /dev/null +++ b/htdocs/maj.php @@ -0,0 +1,33 @@ +db->query($sql); + $ligne = mysql_fetch_array($result); +} + +if (isset($ligne) && $ligne) { + // il faut remettre le matricule dans son format de saisie + $_REQUEST['matricule'] = strlen($ligne['matricule']>6) ? + substr($ligne['matricule'],2) : $ligne['matricule']; + $_REQUEST['promo'] = $ligne['promo']; + $_REQUEST['nom'] = $ligne['nom']; + $_REQUEST['prenom'] = $ligne['prenom']; + $_REQUEST['email'] = $ligne['email']; + + // on veut basculer sur inscrire.php + + require("identification.inc.php"); + + new_skinned_page('inscrire.form_data.tpl', AUTH_PUBLIC, true); + $page->assign('gotourl', $gotourl); + $gotourl = "inscrire.php"; + $page->run(); +} + +new_skinned_page('maj.tpl', AUTH_PUBLIC); +$page->run(); +?> diff --git a/templates/maj.tpl b/templates/maj.tpl new file mode 100644 index 0000000..8828906 --- /dev/null +++ b/templates/maj.tpl @@ -0,0 +1,13 @@ +{* $Id: maj.tpl,v 1.1 2004-07-19 09:06:17 x2000habouzit Exp $ *} + +

+Cette page n'existe pas ou plus. Tu as peut-être déjà cliqué une fois, l'adresse +envoyée par e-mail n'est valable qu'une seule fois. Le plus simple est d'aller à +la page d'enregistrement en cliquant sur ce lien. +

+

+A la fin de l'enregistrement, tu obtiendras login et mot de passe pour +modifier ta fiche dans l'annuaire on-line. +

+ +{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4