Changeset 23370 for branches/version-2_13-dev/html/require.php
- Timestamp:
- 2014/04/18 01:56:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.