source: branches/version-2_5-dev/data/class/pages/LC_Page_Redirect.php @ 19802

Revision 19802, 2.2 KB checked in by Seasoft, 13 years ago (diff)

#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある) 一部改修

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23
24// {{{ requires
25require_once(CLASS_PATH . "pages/LC_Page.php");
26
27/**
28 * リダイレクト のページクラス.
29 *
30 * メールからのリダイレクト用
31 *
32 * @package Page
33 * @author LOCKON CO.,LTD.
34 * @version $Id$
35 */
36class LC_Page_Redirect extends LC_Page {
37
38    // }}}
39    // {{{ functions
40
41    /**
42     * Page を初期化する.
43     *
44     * @return void
45     */
46    function init() {
47        parent::init();
48    }
49
50    /**
51     * Page のプロセス.
52     *
53     * @return void
54     */
55    function process() {
56    }
57
58    /**
59     * モバイルページを初期化する.
60     *
61     * @return void
62     */
63    function mobileInit() {
64        $this->init();
65    }
66
67    /**
68     * Page のプロセス(モバイル).
69     *
70     * @return void
71     */
72    function mobileProcess() {
73        define('SKIP_MOBILE_INIT', true);
74
75        if (isset($_GET['token'])) {
76            $next_url = GC_Utils_Ex::gfFinishKaraMail($_GET['token']);
77        }
78
79        // $next_url には, セッションID付与済み
80        if (isset($next_url) && $next_url !== false) {
81            $this->sendRedirect($next_url);
82        } else {
83            $this->sendRedirect(MOBILE_HTTP_URL, true);
84        }
85    }
86
87    /**
88     * デストラクタ.
89     *
90     * @return void
91     */
92    function destroy() {
93        parent::destroy();
94    }
95}
96?>
Note: See TracBrowser for help on using the repository browser.