// 当選セッションを取得 //--------------------------------------- $winCookieId = $_COOKIE['AMEXWID']; $winSession = $m->getSessindata_by_winCookie($winCookieId); if($array['p'] == 'land' && empty($winSession['prize_id']) == false) { // サポート宛メール送信フラグが「1」の場合は送信済み if ($winSession['mail_send_flag'] == "1") { throw new Click_SessionCookieNotFountException($cookie_id); } $tmpl_file = ABS_ALLADIN . $code . '/landing.html'; // サポート宛てにメール送信 mail_send($array['name'], $array['email']); // メール送信フラグ更新 $m->update_session_MailSend($winCookieId); }else{ $tmpl_file = ABS_ALLADIN . $code . '/landing.html'; } //--------------------------------------- // ランディング出力 //--------------------------------------- $smarty =& $core->getSmarty(); // リトライ用パラメータ $smarty->assign('id', (int)$session['media_id']); $smarty->assign('uid', $session['media_user_id']); $smarty->display($tmpl_file); } catch (Exception $e) {