Merge branch 'master' of github.com:gnuboard/g5
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
!.gitignore
|
||||
.htaccess
|
||||
/.htaccess
|
||||
data/
|
||||
test/
|
||||
sirgle/
|
||||
|
||||
@ -33,6 +33,9 @@ if (!empty($msg)) {
|
||||
alert($msg);
|
||||
}
|
||||
|
||||
if($qa_hp)
|
||||
$qa_hp = preg_replace('/[^0-9\-]/', '', strip_tags($qa_hp));
|
||||
|
||||
// 090710
|
||||
if (substr_count($qa_content, '&#') > 50) {
|
||||
alert('내용에 올바르지 않은 코드가 다수 포함되어 있습니다.');
|
||||
|
||||
@ -507,7 +507,8 @@ CREATE TABLE IF NOT EXISTS `g5_memo` (
|
||||
`me_send_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`me_read_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`me_memo` text NOT NULL,
|
||||
PRIMARY KEY (`me_id`)
|
||||
PRIMARY KEY (`me_id`),
|
||||
KEY `me_recv_mb_id` (`me_recv_mb_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@ -1531,7 +1531,7 @@ function get_table_define($table, $crlf="\n")
|
||||
$schema_create .= implode($columns, ', ') . ')';
|
||||
} // end while
|
||||
|
||||
$schema_create .= $crlf . ') DEFAULT CHARSET=utf8';
|
||||
$schema_create .= $crlf . ') ENGINE=MyISAM DEFAULT CHARSET=utf8';
|
||||
|
||||
return $schema_create;
|
||||
} // end of the 'PMA_getTableDef()' function
|
||||
@ -2514,4 +2514,22 @@ function print_address($addr1, $addr2, $addr3)
|
||||
|
||||
return $address;
|
||||
}
|
||||
|
||||
// input vars 체크
|
||||
function check_input_vars()
|
||||
{
|
||||
$max_input_vars = ini_get('max_input_vars');
|
||||
|
||||
if($max_input_vars) {
|
||||
$post_vars = count($_POST, COUNT_RECURSIVE);
|
||||
$get_vars = count($_GET, COUNT_RECURSIVE);
|
||||
$cookie_vars = count($_COOKIE, COUNT_RECURSIVE);
|
||||
|
||||
$input_vars = $post_vars + $get_vars + $cookie_vars;
|
||||
|
||||
if($input_vars > $max_input_vars) {
|
||||
alert('폼에서 전송된 변수의 개수가 max_input_vars 값보다 큽니다.\\n전송된 값중 일부는 유실되어 DB에 기록될 수 있습니다.\\n\\n문제를 해결하기 위해서는 서버 php.ini의 max_input_vars 값을 변경하십시오.');
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -63,7 +63,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tr>
|
||||
<th scope="row"><label for="qa_hp">휴대폰</label></th>
|
||||
<td>
|
||||
<input type="text" name="qa_hp" value="<?php echo $write['qa_hp']; ?>" id="qa_hp" <?php echo $req_hp; ?> class="<?php echo $req_email.' '; ?>frm_input" size="30">
|
||||
<input type="text" name="qa_hp" value="<?php echo $write['qa_hp']; ?>" id="qa_hp" <?php echo $req_hp; ?> class="<?php echo $req_hp.' '; ?>frm_input" size="30">
|
||||
<?php if($qaconfig['qa_use_sms']) { ?>
|
||||
<input type="checkbox" name="qa_sms_recv" value="1" <?php if($write['qa_sms_recv']) echo 'checked="checked"'; ?>> 답변등록 SMS알림 수신
|
||||
<?php } ?>
|
||||
@ -166,6 +166,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
return false;
|
||||
}
|
||||
|
||||
<?php if ($is_hp) { ?>
|
||||
var hp = f.qa_hp.value.replace(/[0-9\-]/g, "");
|
||||
if(hp.length > 0) {
|
||||
alert("휴대폰번호는 숫자, - 으로만 입력해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
|
||||
@ -63,7 +63,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tr>
|
||||
<th scope="row"><label for="qa_hp">휴대폰</label></th>
|
||||
<td>
|
||||
<input type="text" name="qa_hp" value="<?php echo $write['qa_hp']; ?>" id="qa_hp" <?php echo $req_hp; ?> class="<?php echo $req_email.' '; ?>frm_input" size="30">
|
||||
<input type="text" name="qa_hp" value="<?php echo $write['qa_hp']; ?>" id="qa_hp" <?php echo $req_hp; ?> class="<?php echo $req_hp.' '; ?>frm_input" size="30">
|
||||
<?php if($qaconfig['qa_use_sms']) { ?>
|
||||
<input type="checkbox" name="qa_sms_recv" value="1" <?php if($write['qa_sms_recv']) echo 'checked="checked"'; ?>> 답변등록 SMS알림 수신
|
||||
<?php } ?>
|
||||
@ -166,6 +166,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
return false;
|
||||
}
|
||||
|
||||
<?php if ($is_hp) { ?>
|
||||
var hp = f.qa_hp.value.replace(/[0-9\-]/g, "");
|
||||
if(hp.length > 0) {
|
||||
alert("휴대폰번호는 숫자, - 으로만 입력해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user