コード例 #1
0
ファイル: index.php プロジェクト: elecnix/famesy
$i = $_REQUEST['i'];
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>
コード例 #2
0
ファイル: index.php プロジェクト: elecnix/famesy
#
# This file is part of Famesy.
#
# Famesy is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (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";
$m = $_REQUEST['m'];
if (strlen($m) == 0) {
    include "../../header.php";
    echo format_error("Missing member ID");
    include "../../footer.php";
} else {
    activate_member($m);
    $next = $_REQUEST['next'];
    if (strlen($next) == 0) {
        $next = "";
    }
    header("Location: ../{$next}");
}
コード例 #3
0
ファイル: activate.php プロジェクト: raymondas/mlmapp
<?php

require "config.php";
//validation before entery
//check if sesseions are set
if (!empty($_GET['email']) && !empty($_GET['code'])) {
    $email = $_GET['email'];
    $code = $_GET['code'];
    //check if email exists in database
    if (email_exist($email) && verify_activation_code($code)) {
        activate_member($email);
        echo "Congrats! Activation is successful.<a href='index.php'>Click here to login</a>";
    } else {
        die(" Could not activate {$email} we are sorry ");
    }
} else {
    die("Sorry you are not allowed here at this time. Missing variables");
}
コード例 #4
0
ファイル: index.php プロジェクト: Effzz/www.momocuppy.com
<?php

$dir = "../../../../";
$css = "main,simplebar,member";
$js = "simplebar";
$body = "member";
require_once $dir . "core/conn/config.php";
require_once $dir . "core/conn/db.php";
require_once $dir . "lib/member/member.php";
$email = isset($_GET['email']) ? $_GET['email'] : "";
$hash = isset($_GET['hash']) ? $_GET['hash'] : "";
if ($email == "" || $hash == "") {
    header("Location: /about-us/");
    exit;
} else {
    $activate_member = activate_member($email, $hash);
    if (!$activate_member) {
        header("Location: /about-us/");
        exit;
    }
}
require_once $dir . "content/header.php";
?>
  
<!--MAINCONTENT-->
<div id="maincontent">
  <div id="wrapmember">
    <div class="content">
      <!--START NAVPAGE-->
      <div class="navpage">
        <a href="/about-us/"><span>Home</span></a>
コード例 #5
0
ファイル: functions.php プロジェクト: elecnix/famesy
function record_payment($invoice, $date_paid, $comment = "")
{
    if ($invoice['date_paid']) {
        die("Invoice already paid.");
    }
    if (!$date_paid) {
        $date_paid = time();
    }
    $invoice['date_paid'] = $date_paid;
    $invoice['comment'] = $comment;
    update_invoice($invoice);
    activate_member($invoice['member_id']);
    return $invoice;
}