if (!$i) { die("Missing invoice ID"); } $invoice = get_invoice($i); if (!$invoice) { die("Invoice not found"); } $member = get_member($invoice['member_id']); if (!$member) { die("Member not found: " . $m); } include "../../header.php"; // TODO: Vérifier qu'on a un numéro de transaction Paypal! $invoice = record_payment($invoice, time(), $_REQUEST['comment']); activate_member($invoice['member_id']); send_payment_ack($invoice, $member); ?> <h1>Merci d'adhérer à <?php echo config('name'); ?> </h1> Votre cotisation de <?php echo $invoice['amount']; ?> ,00$ bien été reçue. <p>Un excellent point de départ pour les nouveaux membres est notre <a href="http://facil.qc.ca/Membres/Information">kit de bienvenue</a>.</p> <p>Nous espérons vous voir bientôt aux réunions et activités, et vous remercions encore une fois pour votre support.</p> <p><i>Nicolas Marchildon<br>Président</i></p>
# (at your option) any later version. # # Famesy is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Famesy; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA require_once "../../functions.php"; require_once "../../config.php"; $i = $_REQUEST['i']; if (!$i) { die("Missing invoice ID"); } $invoice = get_invoice($i); if (!$invoice) { die("Invoice not found"); } $month = $_REQUEST['month']; $day = $_REQUEST['day']; $year = $_REQUEST['year']; if (!($month && $day && $year)) { die("Invalid payment date: {$year}/{$month}/{$day}"); } $date_paid = mktime(0, 0, 0, $month, $day, $year); $invoice = record_payment($invoice, $date_paid, $_REQUEST['comment']); activate_member($invoice['member_id']); send_payment_ack($invoice); header('Location: ../fiche?m=' . $invoice['member_id']);