You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ryzom-core/ryzom/tools/server/www/remove_mail.php

23 lines
454 B
PHP

<?php
include_once('mail_utils.php');
//
// INPUT:
//
// $user_login login of the user that consults the mailbox
// $select_mail_%% mails to be removed
//
$mails = array();
foreach ($_POST as $var => $value)
if (matchParam($var, "select_mail_", $mail))
$mails[] = $mail;
if (count($mails) > 0)
remove_mail($user_login, $mails);
// redirect browser to new mailbox page
//redirect("mailbox.php");
include_once('mailbox.php');
?>