Ignore:
Timestamp:
2011/01/17 05:47:34 (13 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)

  • EC-CUBE標準規約に準拠した定数名とする。

#628(未使用処理・定義などの削除)

Location:
branches/version-2_5-dev/data/class
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_UploadFile.php

    r19660 r19938  
    2222 */ 
    2323 
    24 $SC_UPLOADFILE_DIR = realpath(dirname( __FILE__)); 
    25 require_once($SC_UPLOADFILE_DIR . "/../module/gdthumb.php"); 
     24$ownDir = realpath(dirname(__FILE__)) . '/'; 
     25require_once $ownDir . '../module/gdthumb.php'; 
    2626 
    2727/* アップロードファイル管理クラス */ 
  • branches/version-2_5-dev/data/class/SC_View.php

    r19807 r19938  
    2222 */ 
    2323 
    24 $SC_VIEW_PHP_DIR = realpath(dirname(__FILE__)); 
    25 require_once($SC_VIEW_PHP_DIR . "/../module/Smarty/libs/Smarty.class.php"); 
    26 //require_once(CLASS_EX_REALDIR . "util_extends/SC_Utils_Ex.php"); 
     24$viewDir = realpath(dirname(__FILE__)) . '/'; // XXX グローバル変数として流用あり 
     25require_once $viewDir . '../module/Smarty/libs/Smarty.class.php'; 
    2726 
    2827class SC_View { 
     
    3332    // コンストラクタ 
    3433    function SC_View($siteinfo = true) { 
    35         global $SC_VIEW_PHP_DIR; 
     34        global $viewDir; 
    3635 
    3736        $this->_smarty = new Smarty; 
     
    5251        $this->_smarty->register_modifier("sfRmDupSlash", array("SC_Utils_Ex", "sfRmDupSlash")); 
    5352        $this->_smarty->register_modifier("sfCutString", array("SC_Utils_Ex", "sfCutString")); 
    54         $this->_smarty->plugins_dir=array("plugins", $SC_VIEW_PHP_DIR . "/../smarty_extends"); 
     53        $this->_smarty->plugins_dir=array("plugins", $viewDir . "../smarty_extends"); 
    5554        $this->_smarty->register_modifier("sf_mb_convert_encoding", array("SC_Utils_Ex", "sf_mb_convert_encoding")); 
    5655        $this->_smarty->register_modifier("sfGetEnabled", array("SC_Utils_Ex", "sfGetEnabled")); 
     
    162161    /* サイト初期設定 */ 
    163162    function initpath() { 
    164         global $SC_VIEW_PHP_DIR; 
    165  
    166         $array['tpl_mainnavi'] = $SC_VIEW_PHP_DIR . '/../Smarty/templates/frontparts/mainnavi.tpl'; 
     163        global $viewDir; 
     164 
     165        $array['tpl_mainnavi'] = $viewDir . '../Smarty/templates/frontparts/mainnavi.tpl'; 
    167166 
    168167        $objDb = new SC_Helper_DB_Ex(); 
  • branches/version-2_5-dev/data/class/graph/SC_GraphBar.php

    r18701 r19938  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23 $SC_GRAPHBAR_DIR = realpath(dirname( __FILE__)); 
    24 require_once($SC_GRAPHBAR_DIR . "/SC_GraphLine.php"); 
     23 
     24$ownDir = realpath(dirname(__FILE__)) . '/'; 
     25require_once $ownDir . 'SC_GraphLine.php'; 
    2526 
    2627// 棒グラフ生成クラス 
  • branches/version-2_5-dev/data/class/graph/SC_GraphLine.php

    r18701 r19938  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23 $SC_GRAPHLINE_DIR = realpath(dirname( __FILE__)); 
    24 require_once($SC_GRAPHLINE_DIR . "/SC_GraphBase.php"); 
     23 
     24$ownDir = realpath(dirname(__FILE__)) . '/'; 
     25require_once $ownDir . 'SC_GraphBase.php'; 
    2526 
    2627// 折れ線グラフ生成クラス 
  • branches/version-2_5-dev/data/class/graph/SC_GraphPie.php

    r18701 r19938  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23 $SC_GRAPHPIE_DIR = realpath(dirname( __FILE__)); 
    24 require_once($SC_GRAPHPIE_DIR . "/SC_GraphBase.php"); 
     23 
     24$ownDir = realpath(dirname(__FILE__)) . '/'; 
     25require_once $ownDir . 'SC_GraphBase.php'; 
    2526 
    2627// 円グラフ生成クラス 
Note: See TracChangeset for help on using the changeset viewer.