19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: admin_auth.php,v 1.5 2006-09-21 15:22:04 jp_milcent Exp $ |
// CVS : $Id: admin_auth.php,v 1.6 2006-10-06 10:40:51 florian Exp $ |
/** |
* Application gérant les authentifications de Papyrus |
* |
31,7 → 31,7 |
//Auteur original : |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.5 $ |
*@version $Revision: 1.6 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
90,9 → 90,23 |
$url =& $GLOBALS['_GEN_commun']['url'] ; |
$auth =& $GLOBALS['_GEN_commun']['pear_auth'] ; |
isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas |
$res=''; |
if (!$auth->getAuth()) { |
return 'Identifiez-vous' ; |
} |
$res .= '<p class="zone_alert">'.ADAU_IDENTIFIEZ_VOUS.'</p>'."\n" ; |
$res .= '<form id="form_connexion" style="clear:both;" class="form_identification" action="' ; |
$res .= $url->getURL(); |
$res .= '" method="post"> |
<fieldset> |
<legend>Identifiez vous</legend> |
<label for="username">Courriel : </label> |
<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="courriel" /> |
<label for="password">Mot de passe : </label> |
<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="mot de passe" /> |
<input type="submit" id="connexion" name="connexion" tabindex="3" value="ok" /> |
</fieldset> |
</form>'; |
return $res ; |
} else { |
// Le lien pour une nouvelle entrée |
$res = '<a href="'.$url->getURL().'&action=nouveau">'.ADAU_AJOUTER.'</a>'."\n".'<br />'; |
// traitement de la suppression |
153,6 → 167,7 |
$liste->construireListe($tableau_auth); |
$res .= $liste->toHTML(); |
return $res; |
} |
}// Fin de la fonction afficherContenuCorps() |
|
// +------------------------------------------------------------------------------------------------------+ |
164,6 → 179,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.5 2006/09/21 15:22:04 jp_milcent |
* Nettoyage dans l'url de la querystring id_auth. |
* |
* Revision 1.4 2005/04/14 13:54:51 jpm |
* Amélioration de l'interface et mise en conformité. |
* |