Esempio n. 1
0
// Email Config (Mailer)
$mail = new PHPMailer();
$mail->isSMTP();
$mail->Host = $config->email_host;
$mail->SMTPAuth = true;
$mail->Username = $config->email_username;
$mail->Password = $config->email_password;
$mail->Port = $config->email_port;
$mail->setFrom($config->email_address, $config->email_name);
$mail->isHTML(true);
$mail->CharSet = 'UTF-8';
// Cookie Checking
if ($user->CookieChecking()) {
    $_SESSION['member_id'] = $_COOKIE['member_id'];
}
// Member online checking
define('PRIVETE_KEY', 'dinsorsee');
define('MEMBER_ONLINE', $user->SessionMemberOnline());
// Get member info
if (MEMBER_ONLINE) {
    $user->GetUser(array('member_id' => $_SESSION['member_id']));
    if (!empty($user->current_order_id)) {
        $order->GetOrder(array('order_id' => $user->current_order_id));
    }
}
// Define member data
define('MEMBER_ID', $user->id);
define('MEMBER_TOKEN', $user->token);
define('MEMBER_TYPE', $user->type);
// Order Expire Checking
$order->CheckingOrder();