projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates ChangeLog.
[platal.git]
/
modules
/
payment.php
diff --git
a/modules/payment.php
b/modules/payment.php
index
d71b26d
..
11926f9
100644
(file)
--- a/
modules/payment.php
+++ b/
modules/payment.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
7
Polytechnique.org *
+ * Copyright (C) 2003-200
8
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 *
@@
-71,6
+71,16
@@
function cle_accept($d1,$d2,$d3,$d4,$d5)
return $alpha{$n-1}.$m1.$m2.$m3.$m4;
}
return $alpha{$n-1}.$m1.$m2.$m3.$m4;
}
+/* decode the comment */
+function comment_decode($comment) {
+ $comment = urldecode($comment);
+ if (is_utf8($comment)) {
+ return $comment;
+ } else {
+ return utf8_encode($comment);
+ }
+}
+
class PaymentModule extends PLModule
{
class PaymentModule extends PLModule
{
@@
-218,6
+228,7
@@
class PaymentModule extends PLModule
$conf_text = str_replace("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
$conf_text = str_replace("<cher>",$femme ? "Chère" : "Cher",$conf_text);
$conf_text = str_replace("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
$conf_text = str_replace("<cher>",$femme ? "Chère" : "Cher",$conf_text);
+ global $globals;
$mymail = new PlMailer();
$mymail->setFrom($conf_mail);
$mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>');
$mymail = new PlMailer();
$mymail->setFrom($conf_mail);
$mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>');
@@
-307,6
+318,7
@@
class PaymentModule extends PLModule
$conf_text = str_replace("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
$conf_text = str_replace("<cher>",$femme ? "Chère" : "Cher",$conf_text);
$conf_text = str_replace("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
$conf_text = str_replace("<cher>",$femme ? "Chère" : "Cher",$conf_text);
+ global $globals;
$mymail = new PlMailer();
$mymail->setFrom($conf_mail);
$mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>');
$mymail = new PlMailer();
$mymail->setFrom($conf_mail);
$mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>');
@@
-448,6
+460,7
@@
class PaymentModule extends PLModule
$event[$pid]['paid'] += trim($p);
}
}
$event[$pid]['paid'] += trim($p);
}
}
+ $page->register_modifier('decode_comment', 'decode_comment');
$page->assign('trans', $trans);
$page->assign('event', $event);
}
$page->assign('trans', $trans);
$page->assign('event', $event);
}