mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-27 02:12:19 +01:00
94 lines
2.3 KiB
XML
94 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1d57cefa525884a9d78d825176d23a906d008f6c Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id="function.ezmlm-hash" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>ezmlm_hash</refname>
|
|
<refpurpose>Calcule le hachage demandé par EZMLM</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
&warn.deprecated.function-7-4-0.removed-8-0-0;
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>ezmlm_hash</methodname>
|
|
<methodparam><type>string</type><parameter>addr</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<simpara>
|
|
<function>ezmlm_hash</function> calcule le hachage nécessaire
|
|
lors de la gestion de listes de diffusion EZMLM avec une base
|
|
de données MySQL.
|
|
</simpara>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>addr</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
L'adresse E-Mail qui doit être hachée.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
La valeur du hachage de <parameter>addr</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Calcul du hachage et enregistrement d'un utilisateur de liste de
|
|
diffusion</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
$user = "joecool@example.com";
|
|
$hash = ezmlm_hash($user);
|
|
$query = sprintf("INSERT INTO sample VALUES (%s, '%s')", $hash, $user);
|
|
$db->query($query); // utilisation de l'interface PHPLIB
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|