Page
[ class tree: Page ] [ index: Page ] [ all elements ]

Source for file LC_Page_Admin_System_System.php

Documentation is available at LC_Page_Admin_System_System.php

  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
  25. require_once(CLASS_PATH "pages/LC_Page.php");
  26.  
  27. /**
  28.  * システム情報 のページクラス.
  29.  *
  30.  * @package Page
  31.  * @author LOCKON CO.,LTD.
  32.  * @version $Id: LC_Page_Admin_System_System.php 18734 2010-06-22 08:45:33Z nanasess $
  33.  */
  34.  
  35.     // }}}
  36.     // {{{ functions
  37.  
  38.     /**
  39.      * Page を初期化する.
  40.      *
  41.      * @return void 
  42.      */
  43.     function init({
  44.         parent::init();
  45.         $this->tpl_mainpage = 'system/system.tpl';
  46.         $this->tpl_subnavi  'system/subnavi.tpl';
  47.         $this->tpl_subno    'system';
  48.         $this->tpl_mainno   = 'system';
  49.     }
  50.  
  51.     /**
  52.      * フォームパラメータ初期化
  53.      *
  54.      * @return void 
  55.      */
  56.     function initForm({
  57.         $objForm new SC_FormParam();
  58.         $objForm->addParam('mode''mode'INT_LEN''array('ALPHA_CHECK''MAX_LENGTH_CHECK'));
  59.         $objForm->setParam($_GET);
  60.         $this->objForm $objForm;
  61.     }
  62.  
  63.     /**
  64.      * Page のプロセス.
  65.      *
  66.      * @return void 
  67.      */
  68.     function process({
  69.  
  70.         SC_Utils_Ex::sfIsSuccess(new SC_Session);
  71.         $objView new SC_AdminView();
  72.  
  73.         $this->initForm();
  74.         switch($this->objForm->getValue('mode')) {
  75.  
  76.         // PHP INFOを表示
  77.         case 'info':
  78.             phpinfo();
  79.             exit;
  80.             break;
  81.  
  82.         default:
  83.             break;
  84.         }
  85.  
  86.         $this->arrSystemInfo $this->getSystemInfo();
  87.  
  88.         $objView->assignobj($this);
  89.         $objView->display(MAIN_FRAME);
  90.     }
  91.  
  92.     /**
  93.      * デストラクタ.
  94.      *
  95.      * @return void 
  96.      */
  97.     function destroy({
  98.         parent::destroy();
  99.     }
  100.  
  101.     /**
  102.      * システム情報を取得する
  103.      *
  104.      * @return array 
  105.      */
  106.     function getSystemInfo({
  107.         $objDB SC_DB_DBFactory_Ex::getInstance();
  108.  
  109.         $arrSystemInfo array(
  110.             array('title' => 'EC-CUBE',  'value' => ECCUBE_VERSION),
  111.             array('title' => 'OS',       'value' => php_uname()),
  112.             array('title' => 'DBサーバ',  'value' => $objDB->sfGetDBVersion()),
  113.             array('title' => 'WEBサーバ''value' => $_SERVER['SERVER_SOFTWARE']),
  114.             array('title' => 'PHP',      'value' => phpversion()),
  115.             array('title' => 'GD',       'value' => extension_loaded('GD''Loaded' '--'),
  116.         );
  117.  
  118.         return $arrSystemInfo;
  119.     }
  120. }

Documentation generated on Fri, 24 Feb 2012 13:59:12 +0900 by Seasoft