Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: admin_auth.php,v 1.5 2006-09-21 15:22:04 jp_milcent Exp $
|
22 |
// CVS : $Id: admin_auth.php,v 1.6 2006-10-06 10:40:51 florian Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application gérant les authentifications de Papyrus
|
24 |
* Application gérant les authentifications de Papyrus
|
25 |
*
|
25 |
*
|
26 |
* Cette application permet de gérer les authentifications de papyrus
|
26 |
* Cette application permet de gérer les authentifications de papyrus
|
27 |
* elle permet de spécifier pour un monde quel annuaire utiliser
|
27 |
* elle permet de spécifier pour un monde quel annuaire utiliser
|
Line 29... |
Line 29... |
29 |
*
|
29 |
*
|
30 |
*@package Admin_auth
|
30 |
*@package Admin_auth
|
31 |
//Auteur original :
|
31 |
//Auteur original :
|
32 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
32 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.5 $
|
34 |
*@version $Revision: 1.6 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 88... |
Line 88... |
88 |
{
|
88 |
{
|
89 |
$db =& $GLOBALS['_GEN_commun']['pear_db'] ;
|
89 |
$db =& $GLOBALS['_GEN_commun']['pear_db'] ;
|
90 |
$url =& $GLOBALS['_GEN_commun']['url'] ;
|
90 |
$url =& $GLOBALS['_GEN_commun']['url'] ;
|
91 |
$auth =& $GLOBALS['_GEN_commun']['pear_auth'] ;
|
91 |
$auth =& $GLOBALS['_GEN_commun']['pear_auth'] ;
|
92 |
isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas
|
92 |
isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas
|
- |
|
93 |
$res='';
|
93 |
if (!$auth->getAuth()) {
|
94 |
if (!$auth->getAuth()) {
|
- |
|
95 |
$res .= '<p class="zone_alert">'.ADAU_IDENTIFIEZ_VOUS.'</p>'."\n" ;
|
- |
|
96 |
$res .= '<form id="form_connexion" style="clear:both;" class="form_identification" action="' ;
|
- |
|
97 |
$res .= $url->getURL();
|
- |
|
98 |
$res .= '" method="post">
|
- |
|
99 |
<fieldset>
|
- |
|
100 |
<legend>Identifiez vous</legend>
|
- |
|
101 |
<label for="username">Courriel : </label>
|
- |
|
102 |
<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="courriel" />
|
- |
|
103 |
<label for="password">Mot de passe : </label>
|
- |
|
104 |
<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="mot de passe" />
|
- |
|
105 |
<input type="submit" id="connexion" name="connexion" tabindex="3" value="ok" />
|
- |
|
106 |
</fieldset>
|
- |
|
107 |
</form>';
|
94 |
return 'Identifiez-vous' ;
|
108 |
return $res ;
|
95 |
}
|
109 |
} else {
|
96 |
// Le lien pour une nouvelle entrée
|
110 |
// Le lien pour une nouvelle entrée
|
97 |
$res = '<a href="'.$url->getURL().'&action=nouveau">'.ADAU_AJOUTER.'</a>'."\n".'<br />';
|
111 |
$res = '<a href="'.$url->getURL().'&action=nouveau">'.ADAU_AJOUTER.'</a>'."\n".'<br />';
|
98 |
// traitement de la suppression
|
112 |
// traitement de la suppression
|
99 |
if (isset ($GLOBALS['action']) && $GLOBALS['action'] == 'supprimer') adau_supprimer_authentification($GLOBALS['id_auth'], $db);
|
113 |
if (isset ($GLOBALS['action']) && $GLOBALS['action'] == 'supprimer') adau_supprimer_authentification($GLOBALS['id_auth'], $db);
|
Line 151... |
Line 165... |
151 |
$url->removeQueryString('id_auth');
|
165 |
$url->removeQueryString('id_auth');
|
152 |
}
|
166 |
}
|
153 |
$liste->construireListe($tableau_auth);
|
167 |
$liste->construireListe($tableau_auth);
|
154 |
$res .= $liste->toHTML();
|
168 |
$res .= $liste->toHTML();
|
155 |
return $res;
|
169 |
return $res;
|
- |
|
170 |
}
|
156 |
}// Fin de la fonction afficherContenuCorps()
|
171 |
}// Fin de la fonction afficherContenuCorps()
|
Line 157... |
Line 172... |
157 |
|
172 |
|
158 |
// +------------------------------------------------------------------------------------------------------+
|
173 |
// +------------------------------------------------------------------------------------------------------+
|
159 |
// | PIED du PROGRAMME |
|
174 |
// | PIED du PROGRAMME |
|
Line 162... |
Line 177... |
162 |
|
177 |
|
163 |
|
178 |
|
164 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
179 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
180 |
*
|
- |
|
181 |
* $Log: not supported by cvs2svn $
|
- |
|
182 |
* Revision 1.5 2006/09/21 15:22:04 jp_milcent
|
165 |
*
|
183 |
* Nettoyage dans l'url de la querystring id_auth.
|
166 |
* $Log: not supported by cvs2svn $
|
184 |
*
|
167 |
* Revision 1.4 2005/04/14 13:54:51 jpm
|
185 |
* Revision 1.4 2005/04/14 13:54:51 jpm
|
168 |
* Amélioration de l'interface et mise en conformité.
|
186 |
* Amélioration de l'interface et mise en conformité.
|
169 |
*
|
187 |
*
|