Revision 16100,
1.3 KB
checked in by adachi, 16 years ago
(diff) |
set property
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Id
-
Property svn:mime-type set to
text/x-httpd-php; charset=UTF-8
|
Rev | Line | |
---|
[16100] | 1 | #!/usr/bin/env php |
---|
| 2 | <?php |
---|
| 3 | /** |
---|
| 4 | * モバイルサイト/空メール受け付けスクリプト |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | require_once dirname(__FILE__) . '/../conf/mobile_conf.php'; |
---|
| 8 | require_once DATA_PATH . '/include/php_ini.inc'; |
---|
| 9 | require_once DATA_PATH . '/include/mobile.inc'; |
---|
| 10 | require_once DATA_PATH . '/lib/slib.php'; |
---|
| 11 | require_once DATA_PATH . '/class/GC_MobileKaraMail.php'; |
---|
| 12 | require_once DATA_PATH . '/class/GC_SendMail.php'; |
---|
| 13 | |
---|
| 14 | $CONF = sf_getBasisData(); |
---|
| 15 | |
---|
| 16 | $objMail =& GC_MobileKaraMail::factory(); |
---|
| 17 | $objMail->parse(); |
---|
| 18 | $token = $objMail->getToken(); |
---|
| 19 | $sender = $objMail->getSender(); |
---|
| 20 | |
---|
| 21 | if (gfRegisterKaraMail($token, $sender)) { |
---|
| 22 | $subject = '空メールを受け付けました'; |
---|
| 23 | $reply_body = "下記のリンクをクリックして、次の手続きに進んでください。\n" . |
---|
| 24 | SITE_URL . "redirect.php?token=$token"; |
---|
| 25 | } else { |
---|
| 26 | $subject = '空メール手続きが失敗しました'; |
---|
| 27 | $reply_body = "時間切れなどにより、空メール手続きを行うことができませんでした。\n" . |
---|
| 28 | "サイトのトップへ戻ってやり直してください。\n" . |
---|
| 29 | SITE_URL . "\n"; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | $objReply = new GC_SendMail; |
---|
| 33 | $objReply->setItem($sender, "【{$CONF["shop_name"]}】$subject", $reply_body, |
---|
| 34 | $CONF['email03'], $CONF['shop_name'], $CONF['email03'], $CONF['email04']); |
---|
| 35 | $objReply->sendMail(); |
---|
| 36 | |
---|
| 37 | $objMail->success(); |
---|
| 38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.