|
|
|
11-01-08
|
조회 2,922
|
|
|
|
11-01-08
|
조회 2,544
|
|
|
|
11-01-08
|
조회 2,514
|
|
|
|
11-01-07
|
조회 3,110
|
|
|
|
11-01-07
|
조회 2,601
|
|
|
|
11-01-07
|
조회 2,209
|
|
|
|
11-01-07
|
조회 2,368
|
|
|
관리자
|
11-01-07
|
조회 4,540
|
|
|
|
11-01-07
|
조회 2,561
|
|
|
|
11-01-06
|
조회 2,293
|
|
|
|
11-01-06
|
조회 2,374
|
|
|
|
11-01-06
|
조회 2,105
|
|
|
|
11-01-06
|
조회 2,216
|
|
|
|
11-01-06
|
조회 2,630
|
|
|
|
11-01-06
|
조회 2,505
|
|
|
|
11-01-06
|
조회 2,236
|
|
|
|
11-01-06
|
조회 2,521
|
|
|
|
11-01-06
|
조회 1,994
|
|
|
|
11-01-06
|
조회 2,243
|
|
|
|
11-01-06
|
조회 2,390
|
|
|
|
11-01-05
|
조회 2,248
|
|
|
|
11-01-05
|
조회 2,158
|
|
|
|
11-01-05
|
조회 2,151
|
|
|
|
11-01-05
|
조회 2,326
|
|
|
|
11-01-04
|
조회 2,397
|
|
|
|
11-01-02
|
조회 2,522
|
|
|
|
11-01-02
|
조회 2,401
|
|
|
|
11-01-01
|
조회 1,814
|
|
|
|
10-12-30
|
조회 2,016
|
|
|
관리자
|
10-12-30
|
조회 2,377
|
|
|
|
10-12-30
|
조회 2,467
|
|
|
|
10-12-30
|
조회 1,832
|
|
|
|
10-12-29
|
조회 3,366
|
|
|
|
10-12-29
|
조회 2,717
|
|
|
|
10-12-29
|
조회 2,215
|
|
|
|
10-12-29
|
조회 2,246
|
|
|
|
10-12-29
|
조회 2,474
|
|
|
관리자
|
10-12-29
|
조회 3,303
|
|
|
|
10-12-29
|
조회 2,559
|
|
|
|
10-12-29
|
조회 2,349
|
|
|
|
10-12-28
|
조회 2,358
|
|
|
|
10-12-28
|
조회 2,351
|
|
|
|
10-12-28
|
조회 2,475
|
|
|
|
10-12-28
|
조회 2,060
|
|
|
|
10-12-28
|
조회 2,664
|
|
|
|
10-12-28
|
조회 2,206
|
|
|
|
10-12-28
|
조회 2,018
|
|
|
관리자
|
10-12-28
|
조회 4,056
|
|
|
|
10-12-27
|
조회 1,743
|
|
|
관리자
|
10-12-27
|
조회 2,260
|
|
|
|
10-12-27
|
조회 2,240
|
|
|
|
10-12-26
|
조회 2,303
|
|
|
|
10-12-26
|
조회 2,038
|
|
|
|
10-12-24
|
조회 2,387
|
|
|
|
10-12-24
|
조회 2,436
|
|
|
|
10-12-24
|
조회 2,075
|
|
|
|
10-12-24
|
조회 2,586
|
|
|
|
10-12-24
|
조회 2,166
|
|
|
|
10-12-24
|
조회 2,295
|
|
|
|
10-12-23
|
조회 2,504
|
|
|
|
10-12-23
|
조회 2,181
|
|
|
|
10-12-23
|
조회 1,992
|
|
|
|
10-12-23
|
조회 2,203
|
|
|
|
10-12-23
|
조회 2,517
|
|
|
|
10-12-22
|
조회 2,155
|
|
|
|
10-12-22
|
조회 2,127
|
|
|
|
10-12-22
|
조회 2,504
|
|
|
|
10-12-22
|
조회 2,339
|
|
|
|
10-12-22
|
조회 2,139
|
|
|
|
10-12-21
|
조회 2,270
|
|
|
|
10-12-21
|
조회 2,359
|
|
|
|
10-12-20
|
조회 2,113
|
|
|
|
10-12-20
|
조회 2,108
|
|
|
|
10-12-20
|
조회 1,811
|
|
|
|
10-12-20
|
조회 2,096
|
|
|
|
10-12-20
|
조회 2,343
|
|
|
|
10-12-20
|
조회 2,165
|
|
|
|
10-12-20
|
조회 2,170
|
|
|
|
10-12-19
|
조회 2,315
|
|
|
|
10-12-19
|
조회 2,892
|
|
|
|
10-12-18
|
조회 1,731
|
|
|
|
10-12-18
|
조회 2,185
|
|
|
|
10-12-18
|
조회 2,223
|
|
|
|
10-12-18
|
조회 2,118
|
|
|
|
10-12-18
|
조회 1,995
|
|
|
|
10-12-17
|
조회 2,146
|
|
|
|
10-12-17
|
조회 1,895
|
|
|
|
10-12-17
|
조회 3,203
|
|
|
|
10-12-17
|
조회 1,959
|
|
|
|
10-12-17
|
조회 2,879
|
|
|
|
10-12-17
|
조회 1,952
|
|
|
|
10-12-17
|
조회 2,005
|
|
|
|
10-12-16
|
조회 2,146
|
|
|
|
10-12-16
|
조회 2,062
|
|
|
|
10-12-16
|
조회 2,750
|
|
|
|
10-12-16
|
조회 2,196
|
|
|
|
10-12-16
|
조회 2,127
|
|
|
|
10-12-15
|
조회 2,313
|
|
|
|
10-12-15
|
조회 2,093
|
|
|
|
10-12-15
|
조회 1,952
|
댓글 6개
비회원 글쓰기에서 중국,한국 로봇이 제목도없고,내용도 없게 글 등록을 합니다.
자바스크립트 다 넘기고....
write_update.php 파일 132 라인쯤에
if (!isset($_POST[wr_subject]) || !trim($_POST[wr_subject]))
alert("제목을 입력하여 주십시오.");
이것도 무시되....
그래서 쿼리 바로 앞에
if (!trim($wr_subject) || !trim($wr_content)){
alert("(^-^)/~");
exit;
}
넣어도 무시하는데......
이번에는 이렇게 한번 더 막아보려는데 잘 될지 모르겠습니다
if (!trim($wr_subject) || !trim($wr_content)){
alert("(^-^)/~");
exit;
}
else {
$sql = " insert into $write_table
set wr_num = '$wr_num',
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_subject = '$wr_subject',
wr_content = '$wr_content',
wr_link1 = '$wr_link1',
wr_link2 = '$wr_link2',
wr_link1_hit = 0,
wr_link2_hit = 0,
wr_trackback = '$wr_trackback',
wr_hit = 0,
wr_good = 0,
wr_nogood = 0,
mb_id = '$member[mb_id]',
wr_password = '$wr_password',
wr_name = '$wr_name',
wr_email = '$wr_email',
wr_homepage = '$wr_homepage',
wr_datetime = '$g4[time_ymdhis]',
wr_last = '$g4[time_ymdhis]',
wr_ip = '$_SERVER[REMOTE_ADDR]',
wr_1 = '$wr_1',
wr_2 = '$wr_2',
wr_3 = '$wr_3',
wr_4 = '$wr_4',
wr_5 = '$wr_5',
wr_6 = '$wr_6',
wr_7 = '$wr_7',
wr_8 = '$wr_8',
wr_9 = '$wr_9',
wr_10 = '$wr_10' ";
sql_query($sql);
$wr_id = mysql_insert_id();
// 부모 아이디에 UPDATE
sql_query(" update $write_table set wr_parent = '$wr_id' where wr_id = '$wr_id' ");
// 새글 INSERT
//sql_query(" insert into $g4[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime ) values ( '$bo_table', '$wr_id', '$wr_id', '$g4[time_ymdhis]' ) ");
sql_query(" insert into $g4[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$wr_id', '$wr_id', '$g4[time_ymdhis]', '$member[mb_id]' ) ");
// 게시글 1 증가
sql_query("update $g4[board_table] set bo_count_write = bo_count_write + 1 where bo_table = '$bo_table'");
}
/////////////////////////////////////////////////////////
지금 막 등록이 되는군요 아놔~ 강 다 무시되고 저장 되는군요.
로봇.....
의견좀 듣고 싶습니다.
고맙습니다.
////////////////////////////////////////////////////////////
$sql = " insert into $write_table
set wr_num = '$wr_num',
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_subject = '$wr_subject',
wr_content = '$wr_content',
wr_link1 = '$wr_link1',
wr_link2 = '$wr_link2',
wr_link1_hit = 0,
wr_link2_hit = 0,
wr_trackback = '$wr_trackback',
wr_hit = 0,
wr_good = 0,
wr_nogood = 0,
mb_id = '$member[mb_id]',
wr_password = '$wr_password',
wr_name = '$wr_name',
wr_email = '$wr_email',
wr_homepage = '$wr_homepage',
wr_datetime = '$g4[time_ymdhis]',
wr_last = '$g4[time_ymdhis]',
wr_ip = '$_SERVER[REMOTE_ADDR]',
wr_1 = '$wr_1',
wr_2 = '$wr_2',
wr_3 = '$wr_3',
wr_4 = '$wr_4',
wr_5 = '$wr_5',
wr_6 = '$wr_6',
wr_7 = '$wr_7',
wr_8 = '$wr_8',
wr_9 = '$wr_9',
wr_10 = '$wr_10' ";
sql_query($sql);
$wr_id = mysql_insert_id();
// 부모 아이디에 UPDATE
sql_query(" update $write_table set wr_parent = '$wr_id' where wr_id = '$wr_id' ");
// 새글 INSERT
//sql_query(" insert into $g4[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime ) values ( '$bo_table', '$wr_id', '$wr_id', '$g4[time_ymdhis]' ) ");
sql_query(" insert into $g4[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$wr_id', '$wr_id', '$g4[time_ymdhis]', '$member[mb_id]' ) ");
// 게시글 1 증가
sql_query("update $g4[board_table] set bo_count_write = bo_count_write + 1 where bo_table = '$bo_table'");
///////////////////////////////////////////////////////////////////
요기에다 스크립트 처리를 또 해야 될 것 같습니다.
이 스크립트 위에 있는 스크립트들은 아놔~ 모두 무시를 해 버리고 글이 등록 되더군요.
자바 모두 무시 하더군요....
이거를 어케 통과 하는지?
if (!isset($_POST[wr_subject]) || !trim($_POST[wr_subject]))
alert("제목을 입력하여 주십시오.");
이것도 통과
if (!$_POST[wr_content]) die ("내용을 입력하여 주십시오.");
이래저래 해본결과 모두 뚤림....
제목없고, 내용없고, 등록을 하더군요....
이렇게 해 봤는데 기다려 봐야겠다는 안하는건지?, 못하는건지?...... 현재는 괜 ....
if ( trim($_POST[wr_subject]) && trim($_POST[wr_content]) ) {
디비 인서트
}
else {
alert("(^-^)/~");
exit;
}
고맙습니다.
감사합니다^^
사실 요기에
if (!isset($_POST[wr_subject]) || !trim($_POST[wr_subject]))
$_POST[wr_subject] 이게 있는데 통과 됬고
if (!$_POST[wr_content])
요기에 $_POST[wr_content] 있는데 통과 됬고
if ( trim($_POST[wr_subject]) && trim($_POST[wr_content]) ) 이거는
두개의 폼값이 사실이라면 디비 인서트 되는건데
급하지 않으시면 좀더 지켜 보아야 할것 같은 데요.....
관리지님이 다른방법으로 패치 해 주시지 않을 까요?
로봇이 여기까지 넘어 온다는게 좋아 보이질 않습니다
아무튼 고맙습니다.