- 처음'; //페이지 처음
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
- $sql = " select *
+ $sql = " select *
{$sql_common}
{$sql_search}
order by vi_id desc
@@ -150,12 +150,12 @@ $(function(){
}
});
-function fvisit_submit(f)
+function fvisit_submit(f)
{
return true;
}
-
diff --git a/head.sub.php b/head.sub.php
index f0dbbb49b..b1988fe05 100644
--- a/head.sub.php
+++ b/head.sub.php
@@ -83,7 +83,7 @@ if ($is_admin) {
if(G5_IS_MOBILE) {
echo ''.PHP_EOL; // overflow scroll 감지
}
-//if(!defined('G5_IS_ADMIN'))
+if(!defined('G5_IS_ADMIN'))
echo $config['cf_add_script'];
?>
diff --git a/install/install_db.php b/install/install_db.php
index dd2c7b440..ebe20ad52 100644
--- a/install/install_db.php
+++ b/install/install_db.php
@@ -151,6 +151,13 @@ $sql = " insert into `{$table_prefix}config`
";
mysql_query($sql) or die(mysql_error() . "" . $sql);
+// 1:1문의 설정
+$sql = " insert into `{$table_prefix}qa_config`
+ ( qa_title, qa_category, qa_skin, qa_mobile_skin, qa_use_email, qa_req_email, qa_use_hp, qa_req_hp, qa_use_editor, qa_subject_len, qa_mobile_subject_len, qa_page_rows, qa_mobile_page_rows, qa_image_width, qa_upload_size, qa_insert_content )
+ values
+ ( '1:1문의', '회원|포인트', 'basic', 'basic', '1', '0', '1', '0', '1', '60', '30', '15', '15', '600', '1048576', '' ) ";
+mysql_query($sql);
+
// 관리자 회원가입
$sql = " insert into `{$table_prefix}member`
set mb_id = '$admin_id',
diff --git a/lib/common.lib.php b/lib/common.lib.php
index 9d9299335..fdb650f59 100644
--- a/lib/common.lib.php
+++ b/lib/common.lib.php
@@ -2426,4 +2426,65 @@ if (!function_exists("get_sock")) {
return $buffer;
}
}
+
+// 인증, 결제 모듈 실행 체크
+function module_exec_check($exe, $type)
+{
+ $error = '';
+ $is_linux = false;
+ if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN')
+ $is_linux = true;
+
+ // 모듈 파일 존재하는지 체크
+ if(!is_file($exe)) {
+ $error = $exe.' 파일이 존재하지 않습니다.';
+ } else {
+ // 실행권한 체크
+ if(!is_executable($exe)) {
+ if($is_linux)
+ $error = $exe.'\n파일의 실행권한이 없습니다.\n\nchmod 755 '.basename($exe).' 과 같이 실행권한을 부여해 주십시오.';
+ else
+ $error = $exe.'\n파일의 실행권한이 없습니다.\n\n'.basename($exe).' 파일에 실행권한을 부여해 주십시오.';
+ } else {
+ // 바이너리 파일인지
+ if($is_linux) {
+ $search = false;
+ exec('whoami', $out);
+ if(empty($out)) {
+ $error = 'exec 함수의 실행권한이 없습니다. 서버관리자에게 문의해 주십시오.';
+ } else {
+ switch($type) {
+ case 'ct_cli':
+ exec($exe.' -h 2>&1', $out);
+ for($i=0; $i&1', $out);
+ for($i=0; $ialert("'.$error.'");';
+ }
+
+ return $error;
+}
?>
\ No newline at end of file
diff --git a/plugin/jquery-ui/datepicker.php b/plugin/jquery-ui/datepicker.php
index 21d9bd776..7c962864c 100644
--- a/plugin/jquery-ui/datepicker.php
+++ b/plugin/jquery-ui/datepicker.php
@@ -1,37 +1,34 @@
-// 환경설정 변수 추가 스크립트, css 에 jquery ui 의 datepicker 코드를 더한다.
-$config['cf_add_script'] .= <<
-EOT;
-?>
\ No newline at end of file
+
\ No newline at end of file
diff --git a/plugin/okname/hpcert1.php b/plugin/okname/hpcert1.php
index 684226671..e4bdbaff3 100644
--- a/plugin/okname/hpcert1.php
+++ b/plugin/okname/hpcert1.php
@@ -16,6 +16,18 @@ $cmd = "$exe $svcTxSeqno \"$name\" $birthday $gender $ntvFrnrTpCd $mblTelCmmCd $
//cmd 실행
exec($cmd, $out, $ret);
+if($ret == 127) {
+ alert_close('모듈실행 파일이 존재하지 않습니다.\\n\\n'.basename($exe).' 파일이 '.G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.'/bin 안에 있어야 합니다.');
+}
+
+if($ret == 126) {
+ alert_close('모듈실행 파일의 실행권한이 없습니다.\\n\\nchmod 755 '.basename($exe).' 과 같이 실행권한을 부여해 주십시오.');
+}
+
+if($ret == -1) {
+ alert_close('모듈실행 파일의 실행권한이 없습니다.\\n\\ncmd.exe의 IUSER 실행권한이 있는지 확인하여 주십시오.');
+}
+
/**************************************************************************
okname 응답 정보
**************************************************************************/