[16539] | 1 | <?php |
---|
| 2 | /* |
---|
[16582] | 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
[22206] | 5 | * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved. |
---|
[16539] | 6 | * |
---|
| 7 | * http://www.lockon.co.jp/ |
---|
[16582] | 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. |
---|
[16539] | 22 | */ |
---|
| 23 | |
---|
| 24 | // {{{ requires |
---|
[16849] | 25 | require_once 'LC_Page_Upgrade_Base.php'; |
---|
[16539] | 26 | |
---|
| 27 | /** |
---|
| 28 | * サイトチェック用クラス. |
---|
| 29 | * |
---|
| 30 | * @package Page |
---|
| 31 | * @author LOCKON CO.,LTD. |
---|
| 32 | * @version $Id$ |
---|
| 33 | */ |
---|
[22796] | 34 | class LC_Page_Upgrade_SiteCheck extends LC_Page_Upgrade_Base { |
---|
[16539] | 35 | |
---|
| 36 | // }}} |
---|
| 37 | // {{{ functions |
---|
| 38 | |
---|
| 39 | /** |
---|
| 40 | * Page を初期化する. |
---|
| 41 | * |
---|
| 42 | * @return void |
---|
| 43 | */ |
---|
[22796] | 44 | function init() {} |
---|
[16539] | 45 | |
---|
| 46 | /** |
---|
| 47 | * Page のプロセス. |
---|
| 48 | * |
---|
| 49 | * @return void |
---|
| 50 | */ |
---|
[22796] | 51 | function process($mode) { |
---|
[16849] | 52 | $objLog = new LC_Upgrade_Helper_LOG; |
---|
| 53 | $objJson = new LC_Upgrade_Helper_Json; |
---|
[16539] | 54 | |
---|
[16849] | 55 | $objLog->start($mode); |
---|
[16539] | 56 | |
---|
[16849] | 57 | if ($this->isValidIP() !== true) { |
---|
| 58 | $objJson->setError(OSTORE_E_C_INVALID_ACCESS); |
---|
| 59 | $objJson->display(); |
---|
| 60 | $objLog->error(OSTORE_E_C_INVALID_ACCESS); |
---|
| 61 | return; |
---|
[16539] | 62 | } |
---|
| 63 | |
---|
[20732] | 64 | $dbFactory = SC_DB_DBFactory_Ex::getInstance(); |
---|
[16849] | 65 | $arrSystemInfo = array( |
---|
| 66 | 'eccube_version' => ECCUBE_VERSION, |
---|
| 67 | 'php_version' => phpversion(), |
---|
[20732] | 68 | 'db_version' => $dbFactory->sfGetDBVersion() |
---|
[16849] | 69 | ); |
---|
| 70 | $objJson->setSuccess($arrSystemInfo); |
---|
| 71 | $objJson->display(); |
---|
| 72 | $objLog->end(); |
---|
[16539] | 73 | } |
---|
| 74 | |
---|
| 75 | /** |
---|
| 76 | * デストラクタ. |
---|
| 77 | * |
---|
| 78 | * @return void |
---|
| 79 | */ |
---|
[22796] | 80 | function destroy() {} |
---|
[16539] | 81 | } |
---|