Merge branch 'g4s'
This commit is contained in:
@ -1983,6 +1983,7 @@ function hyphen_hp_number($hp)
|
||||
}
|
||||
|
||||
|
||||
// 로그인 후 이동할 URL
|
||||
function login_url($url='')
|
||||
{
|
||||
if (!$url) $url = G4_URL;
|
||||
@ -1991,6 +1992,7 @@ function login_url($url='')
|
||||
}
|
||||
|
||||
|
||||
// $dir 을 포함하여 https 또는 http 주소를 반환한다.
|
||||
function https_url($dir, $https=true)
|
||||
{
|
||||
if ($https) {
|
||||
@ -2009,4 +2011,24 @@ function https_url($dir, $https=true)
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
||||
// 게시판의 공지사항을 , 로 구분하여 업데이트 한다.
|
||||
function board_notice($bo_notice, $wr_id, $insert=false)
|
||||
{
|
||||
$notice_array = explode(",", trim($bo_notice));
|
||||
$notice_array = array_merge(array($wr_id), $notice_array);
|
||||
$notice_array = array_unique($notice_array);
|
||||
foreach ($notice_array as $key=>$value) {
|
||||
if (!trim($value))
|
||||
unset($notice_array[$key]);
|
||||
}
|
||||
if (!$insert) {
|
||||
foreach ($notice_array as $key=>$value) {
|
||||
if ((int)$value == (int)$wr_id)
|
||||
unset($notice_array[$key]);
|
||||
}
|
||||
}
|
||||
return implode(",", $notice_array);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user