projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow access to list trombi on xnet
[platal.git]
/
modules
/
email.php
diff --git
a/modules/email.php
b/modules/email.php
index
c053cfb
..
be72835
100644
(file)
--- a/
modules/email.php
+++ b/
modules/email.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
6
Polytechnique.org *
+ * Copyright (C) 2003-200
7
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-97,7
+97,7
@@
class EmailModule extends PLModule
$page->assign('demande', AliasReq::get_request($uid));
$page->assign('demande', AliasReq::get_request($uid));
- if ($action == '
suppr
' && $value) {
+ if ($action == '
delete
' && $value) {
//Suppression d'un alias
XDB::execute(
'DELETE virtual, virtual_redirect
//Suppression d'un alias
XDB::execute(
'DELETE virtual, virtual_redirect
@@
-335,7
+335,7
@@
class EmailModule extends PLModule
if (!empty($bcc)) { $mymail->addBcc($bcc); }
if (!empty($to2)) { $mymail->addTo($to2); }
if (!empty($cc2)) { $mymail->addCc($cc2); }
if (!empty($bcc)) { $mymail->addBcc($bcc); }
if (!empty($to2)) { $mymail->addTo($to2); }
if (!empty($cc2)) { $mymail->addCc($cc2); }
- if (is
set($_FILES['uploaded
'])) {
+ if (is
_uploaded_file($_FILES['uploaded']['tmp_name
'])) {
$mymail->addAttachment($_FILES['uploaded']['tmp_name'],
$_FILES['uploaded']['type'],
$_FILES['uploaded']['name']);
$mymail->addAttachment($_FILES['uploaded']['tmp_name'],
$_FILES['uploaded']['type'],
$_FILES['uploaded']['name']);