MySQLi 지원 추가 및 SMS5 수정

This commit is contained in:
chicpro
2015-10-16 10:12:06 +09:00
parent 0803de998b
commit 1fe4684537
44 changed files with 236 additions and 1415 deletions

View File

@ -53,7 +53,7 @@ if ($sca || $stx) {
/*
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
$total_count = sql_num_rows($result);
*/
} else {
$sql_search = "";

View File

@ -99,7 +99,7 @@ while ($row = sql_fetch_array($result))
wr_10 = '".addslashes($row2['wr_10'])."' ";
sql_query($sql);
$insert_id = mysql_insert_id();
$insert_id = sql_insert_id();
// 코멘트가 아니라면
if (!$row2['wr_is_comment'])

View File

@ -244,7 +244,7 @@ if($w == '' || $w == 'a' || $w == 'r') {
sql_query($sql);
if($w == '' || $w == 'r') {
$qa_id = mysql_insert_id();
$qa_id = sql_insert_id();
if($w == 'r' && $write['qa_related']) {
$qa_related = $write['qa_related'];

View File

@ -70,7 +70,7 @@ if ($wr_content && ($member['mb_level'] >= $board['bo_comment_level']))
wr_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($sql);
$comment_id = mysql_insert_id();
$comment_id = sql_insert_id();
// 원글에 코멘트수 증가
sql_query(" update $write_table set wr_comment = wr_comment + 1 where wr_id = '$wr_id' ");

View File

@ -120,7 +120,7 @@ if ($stx) {
$sql = " select wr_id from {$tmp_write_table} where {$sql_search} ";
$result = sql_query($sql, false);
$row['cnt'] = @mysql_num_rows($result);
$row['cnt'] = @sql_num_rows($result);
$total_count += $row['cnt'];
if ($row['cnt']) {

View File

@ -12,7 +12,7 @@ switch($_REQUEST['sns']) {
header("Location:http://www.facebook.com/sharer/sharer.php?s=100&u=".$short_url."&p=".$title);
break;
case 'twitter' :
header("Location:http://twitter.com/home?status=".$title_url);
header("Location:https://twitter.com/intent/tweet?text=".$title_url);
break;
case 'gplus' :
header("Location:https://plus.google.com/share?url=".$short_url);

View File

@ -167,7 +167,7 @@ if ($w == 'c') // 댓글 입력
wr_10 = '$wr_10' ";
sql_query($sql);
$comment_id = mysql_insert_id();
$comment_id = sql_insert_id();
// 원글에 댓글수 증가 & 마지막 시간 반영
sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_last = '".G5_TIME_YMDHIS."' where wr_id = '$wr_id' ");

View File

@ -244,7 +244,7 @@ if ($w == '' || $w == 'r') {
wr_10 = '$wr_10' ";
sql_query($sql);
$wr_id = mysql_insert_id();
$wr_id = sql_insert_id();
// 부모 아이디에 UPDATE
sql_query(" update $write_table set wr_parent = '$wr_id' where wr_id = '$wr_id' ");