Changeset 19938 for branches/version-2_5-dev/data
- Timestamp:
- 2011/01/17 05:47:34 (13 years ago)
- 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 22 22 */ 23 23 24 $ SC_UPLOADFILE_DIR = realpath(dirname( __FILE__));25 require_once ($SC_UPLOADFILE_DIR . "/../module/gdthumb.php");24 $ownDir = realpath(dirname(__FILE__)) . '/'; 25 require_once $ownDir . '../module/gdthumb.php'; 26 26 27 27 /* アップロードファイル管理クラス */ -
branches/version-2_5-dev/data/class/SC_View.php
r19807 r19938 22 22 */ 23 23 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 グローバル変数として流用あり 25 require_once $viewDir . '../module/Smarty/libs/Smarty.class.php'; 27 26 28 27 class SC_View { … … 33 32 // コンストラクタ 34 33 function SC_View($siteinfo = true) { 35 global $ SC_VIEW_PHP_DIR;34 global $viewDir; 36 35 37 36 $this->_smarty = new Smarty; … … 52 51 $this->_smarty->register_modifier("sfRmDupSlash", array("SC_Utils_Ex", "sfRmDupSlash")); 53 52 $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"); 55 54 $this->_smarty->register_modifier("sf_mb_convert_encoding", array("SC_Utils_Ex", "sf_mb_convert_encoding")); 56 55 $this->_smarty->register_modifier("sfGetEnabled", array("SC_Utils_Ex", "sfGetEnabled")); … … 162 161 /* サイト初期設定 */ 163 162 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'; 167 166 168 167 $objDb = new SC_Helper_DB_Ex(); -
branches/version-2_5-dev/data/class/graph/SC_GraphBar.php
r18701 r19938 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 $SC_GRAPHBAR_DIR = realpath(dirname( __FILE__)); 24 require_once($SC_GRAPHBAR_DIR . "/SC_GraphLine.php"); 23 24 $ownDir = realpath(dirname(__FILE__)) . '/'; 25 require_once $ownDir . 'SC_GraphLine.php'; 25 26 26 27 // 棒グラフ生成クラス -
branches/version-2_5-dev/data/class/graph/SC_GraphLine.php
r18701 r19938 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 $SC_GRAPHLINE_DIR = realpath(dirname( __FILE__)); 24 require_once($SC_GRAPHLINE_DIR . "/SC_GraphBase.php"); 23 24 $ownDir = realpath(dirname(__FILE__)) . '/'; 25 require_once $ownDir . 'SC_GraphBase.php'; 25 26 26 27 // 折れ線グラフ生成クラス -
branches/version-2_5-dev/data/class/graph/SC_GraphPie.php
r18701 r19938 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 $SC_GRAPHPIE_DIR = realpath(dirname( __FILE__)); 24 require_once($SC_GRAPHPIE_DIR . "/SC_GraphBase.php"); 23 24 $ownDir = realpath(dirname(__FILE__)) . '/'; 25 require_once $ownDir . 'SC_GraphBase.php'; 25 26 26 27 // 円グラフ生成クラス
Note: See TracChangeset
for help on using the changeset viewer.