최초 커밋
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (!function_exists('eng_img_url')) {
|
||||
function eng_img_url($path = '')
|
||||
{
|
||||
$baseUrl = '/eng/img';
|
||||
$cdnBaseUrl = '';
|
||||
|
||||
if ($cdnBaseUrl !== '') {
|
||||
$baseUrl = rtrim($cdnBaseUrl, '/');
|
||||
}
|
||||
|
||||
$path = ltrim((string) $path, '/');
|
||||
|
||||
return $path === '' ? $baseUrl : $baseUrl . '/' . $path;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user