$user="5-element.com";>
$forum="Esoterisme";>
if ($from);
$dest = "$forum@$user";
if ($userfile == "none");
$res = smtpsend($from,$nom,$dest,$sujet,$texte," ");
else;
$attach = "$userfile;$userfile_name;$userfile_type";
$res = smtpsend($from,$nom,$dest,$sujet,$texte,$attach);
unlink($userfile);
endif;
endif;
if ($body);
$array = mail_open($forum);
if ($ion);
$header = mail_header($body);
$section = $ion;
$hea = 2 + ($section * 2);
$content = "Content-type: $header[$hea]";
header($content);
$texte = mail_body($section,$body);
mail_close();
if ($texte);
echo "$texte";
endif;
exit;
else;>
Forum
$section = "1";
$header = mail_header($body);
$texte = mail_body($section,$body);
mail_close();
$from = $header[0];
$who = $header[1];
$subject = $header[2];
$date = $header[3];
echo "$subject
";
echo "
Répondre a ce message
";
echo "Posté par ";
if ($who);
echo "$who";
else;
echo "$from";
endif;
echo " le $date.
";
$i = 5;
$suc = 2;
while ($header[$i]);
echo "piece jointe : $header[$i]
";
$i++;
$i++;
$suc++;
endwhile;
echo "";
echo $texte;
echo "
";
endif;
else;>
Forum
echo "Forum $forum
";
echo "
Envoyer un message
";
$array = mail_open($forum);
$messages = $array[0];
$recent = $array[1];
if ($array[0] != -1);
$i = $messages;
while ($i > 0);
$header = mail_header($i);
$from = $header[0];
$who = $header[1];
$subject = $header[2];
$date = $header[3];
echo "- $subject";
if (! $who);
$who = $from;
endif;
echo " - $who ($date)
";
$i--;
endwhile;
echo "";
mail_close();
endif;
endif;>
if ($body);>
Répondre a ce message
else;>
Envoyer un message
endif;>