g4s 2013-04-11자 코드 적용

This commit is contained in:
chicpro
2013-04-11 10:13:19 +09:00
parent fc4c61c0c5
commit f39509c1c9
401 changed files with 731 additions and 396 deletions

View File

@ -6,21 +6,27 @@ $g4['title'] = '패스워드 입력';
switch ($w) {
case 'u' :
$action = './write.php';
$return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
break;
case 'd' :
$action = './delete.php';
$return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
break;
case 'x' :
$action = './delete_comment.php';
$row = sql_fetch(" select wr_parent from $write_table where wr_id = '$comment_id' ");
$return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_parent'];
break;
case 's' :
// 패스워드 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
else
else {
$action = './password_check.php';
$return_url = './board.php?bo_table='.$bo_table;
}
break;
default :
default :
alert('w 값이 제대로 넘어오지 않았습니다.');
}