Changeset 23370
- Timestamp:
- 2014/04/18 01:56:55 (9 years ago)
- Location:
- branches/version-2_13-dev
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_AdminView.php
r23124 r23370 33 33 parent::init(); 34 34 35 $this->_smarty->template_dir = TEMPLATE_ADMIN_REALDIR;36 $this->_smarty->compile_dir = COMPILE_ADMIN_REALDIR;35 $this->_smarty->template_dir = realpath(TEMPLATE_ADMIN_REALDIR); 36 $this->_smarty->compile_dir = realpath(COMPILE_ADMIN_REALDIR); 37 37 $this->assign('TPL_URLPATH_PC', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . TEMPLATE_NAME . '/'); 38 38 $this->assign('TPL_URLPATH_DEFAULT', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . DEFAULT_TEMPLATE_NAME . '/'); -
branches/version-2_13-dev/data/class/SC_InstallView.php
r23124 r23370 28 28 parent::__construct(); 29 29 30 $this->_smarty->template_dir = $template_dir;31 $this->_smarty->compile_dir = $compile_dir;30 $this->_smarty->template_dir = realpath($template_dir); 31 $this->_smarty->compile_dir = realpath($compile_dir); 32 32 } 33 33 } -
branches/version-2_13-dev/data/class/SC_MobileView.php
r23124 r23370 33 33 parent::init(); 34 34 35 $this->_smarty->template_dir = MOBILE_TEMPLATE_REALDIR;36 $this->_smarty->compile_dir = MOBILE_COMPILE_REALDIR;35 $this->_smarty->template_dir = realpath(MOBILE_TEMPLATE_REALDIR); 36 $this->_smarty->compile_dir = realpath(MOBILE_COMPILE_REALDIR); 37 37 $this->assignTemplatePath(DEVICE_TYPE_MOBILE); 38 38 } -
branches/version-2_13-dev/data/class/SC_SiteView.php
r23124 r23370 37 37 parent::init(); 38 38 39 $this->_smarty->template_dir = TEMPLATE_REALDIR;40 $this->_smarty->compile_dir = COMPILE_REALDIR;39 $this->_smarty->template_dir = realpath(TEMPLATE_REALDIR); 40 $this->_smarty->compile_dir = realpath(COMPILE_REALDIR); 41 41 42 42 $this->assignTemplatePath(DEVICE_TYPE_PC); -
branches/version-2_13-dev/data/class/SC_SmartphoneView.php
r23124 r23370 33 33 parent::init(); 34 34 35 $this->_smarty->template_dir = SMARTPHONE_TEMPLATE_REALDIR;36 $this->_smarty->compile_dir = SMARTPHONE_COMPILE_REALDIR;35 $this->_smarty->template_dir = realpath(SMARTPHONE_TEMPLATE_REALDIR); 36 $this->_smarty->compile_dir = realpath(SMARTPHONE_COMPILE_REALDIR); 37 37 $this->assignTemplatePath(DEVICE_TYPE_SMARTPHONE); 38 38 } -
branches/version-2_13-dev/html/admin/require.php
r22206 r23370 23 23 24 24 // rtrim は PHP バージョン依存対策 25 define('HTML_REALDIR', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 25 $GLOBALS['_realdir'] = rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'; 26 $GLOBALS['_realdir'] = str_replace('\\', '/', $GLOBALS['_realdir']); 27 $GLOBALS['_realdir'] = str_replace('//', '/', $GLOBALS['_realdir']); 28 define('HTML_REALDIR', $GLOBALS['_realdir']); 26 29 define('ADMIN_FUNCTION', true); 27 30 -
branches/version-2_13-dev/html/install/index.php
r22968 r23370 23 23 // ▼require.php 相当 24 24 // rtrim は PHP バージョン依存対策 25 define('HTML_REALDIR', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 25 $GLOBALS['_realdir'] = rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'; 26 $GLOBALS['_realdir'] = str_replace('\\', '/', $GLOBALS['_realdir']); 27 $GLOBALS['_realdir'] = str_replace('//', '/', $GLOBALS['_realdir']); 28 define('HTML_REALDIR', $GLOBALS['_realdir']); 26 29 27 30 require_once HTML_REALDIR . 'define.php'; -
branches/version-2_13-dev/html/require.php
r22206 r23370 23 23 24 24 // rtrim は PHP バージョン依存対策 25 define('HTML_REALDIR', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 25 $GLOBALS['_realdir'] = rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'; 26 $GLOBALS['_realdir'] = str_replace('\\', '/', $GLOBALS['_realdir']); 27 $GLOBALS['_realdir'] = str_replace('//', '/', $GLOBALS['_realdir']); 28 define('HTML_REALDIR', $GLOBALS['_realdir']); 26 29 27 30 if (!defined('ADMIN_FUNCTION') || ADMIN_FUNCTION !== true) {
Note: See TracChangeset
for help on using the changeset viewer.