@@ 1685-1690 (lines=6) @@ | ||
1682 | * @public static |
|
1683 | */ |
|
1684 | public static function _getfontpath() { |
|
1685 | if (!defined('K_PATH_FONTS') AND is_dir($fdir = realpath(dirname(__FILE__).'/../fonts'))) { |
|
1686 | if (substr($fdir, -1) != '/') { |
|
1687 | $fdir .= '/'; |
|
1688 | } |
|
1689 | define('K_PATH_FONTS', $fdir); |
|
1690 | } |
|
1691 | return defined('K_PATH_FONTS') ? K_PATH_FONTS : ''; |
|
1692 | } |
|
1693 |
@@ 119-125 (lines=7) @@ | ||
116 | } |
|
117 | } |
|
118 | ||
119 | if (!defined('K_PATH_CACHE')) { |
|
120 | $K_PATH_CACHE = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(); |
|
121 | if (substr($K_PATH_CACHE, -1) != '/') { |
|
122 | $K_PATH_CACHE .= '/'; |
|
123 | } |
|
124 | define ('K_PATH_CACHE', $K_PATH_CACHE); |
|
125 | } |
|
126 | ||
127 | if (!defined('K_BLANK_IMAGE')) { |
|
128 | define ('K_BLANK_IMAGE', '_blank.png'); |