sms5 auth 체크 함수 수정 및 기타 문제 수정

This commit is contained in:
thisgun
2014-04-16 15:51:24 +09:00
parent f5583edec7
commit 87014a0c5c
9 changed files with 20 additions and 23 deletions

View File

@ -452,7 +452,7 @@ hp_list.options[hp_list.length] = new Option(item, value);
<?php
if ($fo_no) {
$row = sql_fetch("select * from {$g5['sms5_form_table']} where fo_no='$fo_no'");
$fo_content = str_replace("\r\n", "\\n", $row['fo_content']);
$fo_content = str_replace(array("\r\n","\n"), "\\n", $row['fo_content']);
echo "add(\"$fo_content\");";
}
?>
@ -472,7 +472,7 @@ if ($wr_no)
echo "var hp_list = document.getElementById('hp_list');\n";
//echo "add(\"$row[wr_message]\");\n";
$wr_message = str_replace('"', '\"', $row['wr_message']);
$wr_message = str_replace("\r\n", "\\n", $wr_message);
$wr_message = str_replace(array("\r\n","\n"), "\\n", $wr_message);
echo "add(\"$wr_message\");\n";
echo "document.getElementById('wr_reply').value = '{$row['wr_reply']}';\n";