Revision 11406,
684 bytes
checked in by rebelt, 16 years ago
(diff) |
以下のモバイルサイト用ページ・機能を作成いたしました。
- ログイン
- パスワードを忘れた方
- ご利用ガイド
- お問い合せ
- 空メール機能
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/usr/bin/env php |
---|
2 | <?php |
---|
3 | /** |
---|
4 | * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¶õ¥á¡¼¥ë¥Æ¥¹¥ÈÁ÷¿®¥¹¥¯¥ê¥×¥È |
---|
5 | */ |
---|
6 | |
---|
7 | require_once dirname(__FILE__) . '/../conf/mobile.conf'; |
---|
8 | |
---|
9 | if ($argc != 4) { |
---|
10 | echo "Usage: $argv[0] sender command token\n"; |
---|
11 | exit(1); |
---|
12 | } |
---|
13 | |
---|
14 | $receive_kara_mail = dirname(__FILE__) . '/receive_kara_mail.php'; |
---|
15 | $from = $argv[1]; |
---|
16 | $command = $argv[2]; |
---|
17 | $token = $argv[3]; |
---|
18 | $to = MOBILE_KARA_MAIL_ADDRESS_USER . MOBILE_KARA_MAIL_ADDRESS_DELIMITER . $command . '_' . $token . '@' . MOBILE_KARA_MAIL_ADDRESS_DOMAIN; |
---|
19 | |
---|
20 | $pipe = popen($receive_kara_mail, 'w'); |
---|
21 | fwrite($pipe, "From $from " . date('D M j H:i:s Y') . "\n"); |
---|
22 | fwrite($pipe, "From: $from\n"); |
---|
23 | fwrite($pipe, "To: $to\n"); |
---|
24 | fwrite($pipe, "\n"); |
---|
25 | pclose($pipe); |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.