달력스킨에서 글쓰기 완료 버튼 or 수정완료 버튼을 클릭 하면 맨뒤 표기되는 월에 0 이 붙지않게 할려면 어찌해야하는지요?
본문
달력스킨에서 글쓰기 완료 버튼 or 수정완료 버튼을 클릭 하면 맨뒤 표기되는 월에 0 이 붙어 06 이렇게 나옵니다.
bbs/board.php?bo_table=bo_06&wr_id=42&year=2022&month=06
해당 일정을 클릭하거나 목록을 클릭하면 월에 0 이 붙지않고 6 이렇게 나옵니다.
bbs/board.php?bo_table=bo_02&wr_id=3&year=2022&month=6
글쓰기 완료 버튼 or 수정완료 버튼을 클릭 할때 맨뒤 월에 ....2022&month=06 , 0 이 붙지않고 ......2022&month=6 이렇게 나오게 할려면 어찌해야하는지요?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
@include_once($write_skin_path.'/write_update.tail.skin.php');
$year = substr($wr_1,0,4);
$year = preg_replace('/[^0-9_]/i', '', $year);
$qstr .= ($year) ? '&year=' . urlencode($year) : '';
$month = substr($wr_1,4,2);
$month = preg_replace('/[^0-9_]/i', '', $month);
$qstr .= ($month) ? '&month=' . urlencode($month) : '';
// 목록으로 이동하기
if($w == '' && isset($is_direct) && $is_direct) {
if ($file_upload_msg)
alert($file_upload_msg, G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table);
else
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table);
}
?>