비표준 그누보드4 첫커밋
This commit is contained in:
22
bbs/password_check.php
Normal file
22
bbs/password_check.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?
|
||||
include_once("./_common.php");
|
||||
|
||||
if ($w == "s") {
|
||||
$qstr = "bo_table=$bo_table&sfl=$sfl&stx=$stx&sop=$sop&wr_id=$wr_id&page=$page";
|
||||
|
||||
$wr = get_write($write_table, $wr_id);
|
||||
|
||||
if (sql_password($wr_password) != $wr[wr_password])
|
||||
alert("패스워드가 틀립니다.");
|
||||
|
||||
// 세션에 아래 정보를 저장. 하위번호는 패스워드없이 보아야 하기 때문임.
|
||||
//$ss_name = "ss_secret_{$bo_table}_{$wr_id}";
|
||||
$ss_name = "ss_secret_{$bo_table}_{$wr[wr_num]}";
|
||||
//set_session("ss_secret", "$bo_table|$wr[wr_num]");
|
||||
set_session($ss_name, TRUE);
|
||||
|
||||
} else
|
||||
alert("w 값이 제대로 넘어오지 않았습니다.");
|
||||
|
||||
goto_url("./board.php?$qstr");
|
||||
?>
|
||||
Reference in New Issue
Block a user