최신글 캐시파일 ' .
?>
diff --git a/AvocadoEdition_Light/adm/captcha_file_delete.php b/AvocadoEdition_Light/adm/captcha_file_delete.php
index 29ae8a6..066ebbb 100644
--- a/AvocadoEdition_Light/adm/captcha_file_delete.php
+++ b/AvocadoEdition_Light/adm/captcha_file_delete.php
@@ -1,12 +1,12 @@
@@ -50,5 +50,5 @@ echo '
캡챠파일 ' . $cnt . '
?>
diff --git a/AvocadoEdition_Light/adm/config_form.php b/AvocadoEdition_Light/adm/config_form.php
index 4bc12a9..14232d1 100644
--- a/AvocadoEdition_Light/adm/config_form.php
+++ b/AvocadoEdition_Light/adm/config_form.php
@@ -1,6 +1,6 @@
기본환경
@@ -1266,5 +1266,5 @@ if ($config['cf_cert_use']) {
}
}
-include_once('./admin.tail.php');
+include_once "./admin.tail.php";
?>
diff --git a/AvocadoEdition_Light/adm/config_form_update.php b/AvocadoEdition_Light/adm/config_form_update.php
index fa6f47e..4389e51 100644
--- a/AvocadoEdition_Light/adm/config_form_update.php
+++ b/AvocadoEdition_Light/adm/config_form_update.php
@@ -1,6 +1,6 @@
diff --git a/AvocadoEdition_Light/adm/design_form_css.php b/AvocadoEdition_Light/adm/design_form_css.php
index 1c570c5..e2856e6 100644
--- a/AvocadoEdition_Light/adm/design_form_css.php
+++ b/AvocadoEdition_Light/adm/design_form_css.php
@@ -1,5 +1,5 @@
diff --git a/AvocadoEdition_Light/adm/index.php b/AvocadoEdition_Light/adm/index.php
index 73eed23..456ff6d 100644
--- a/AvocadoEdition_Light/adm/index.php
+++ b/AvocadoEdition_Light/adm/index.php
@@ -1,6 +1,6 @@
diff --git a/AvocadoEdition_Light/adm/member_form_update.php b/AvocadoEdition_Light/adm/member_form_update.php
index 0f97d84..8631dcd 100644
--- a/AvocadoEdition_Light/adm/member_form_update.php
+++ b/AvocadoEdition_Light/adm/member_form_update.php
@@ -1,6 +1,6 @@
전체목록';
$g5['title'] = '회원관리';
-include_once('./admin.head.php');
+include_once "./admin.head.php";
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
$result = sql_query($sql);
@@ -228,5 +228,5 @@ $colspan = 10;
diff --git a/AvocadoEdition_Light/adm/member_list_delete.php b/AvocadoEdition_Light/adm/member_list_delete.php
index 852719b..19c9ccb 100644
--- a/AvocadoEdition_Light/adm/member_list_delete.php
+++ b/AvocadoEdition_Light/adm/member_list_delete.php
@@ -1,6 +1,6 @@
diff --git a/AvocadoEdition_Light/adm/menu_list_update.php b/AvocadoEdition_Light/adm/menu_list_update.php
index fde4ebc..d4a4bed 100644
--- a/AvocadoEdition_Light/adm/menu_list_update.php
+++ b/AvocadoEdition_Light/adm/menu_list_update.php
@@ -1,6 +1,6 @@
@@ -59,5 +59,5 @@ echo '
세션데이터 ' . $cnt .
?>
diff --git a/AvocadoEdition_Light/adm/site_config_form.php b/AvocadoEdition_Light/adm/site_config_form.php
index c3f167f..6d7ba40 100644
--- a/AvocadoEdition_Light/adm/site_config_form.php
+++ b/AvocadoEdition_Light/adm/site_config_form.php
@@ -1,6 +1,6 @@
기본환경
@@ -419,5 +419,5 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
}
diff --git a/AvocadoEdition_Light/adm/site_config_form_update.php b/AvocadoEdition_Light/adm/site_config_form_update.php
index 585e748..7167eaf 100644
--- a/AvocadoEdition_Light/adm/site_config_form_update.php
+++ b/AvocadoEdition_Light/adm/site_config_form_update.php
@@ -1,6 +1,6 @@
@@ -64,5 +64,5 @@ echo '
썸네일 ' . $cnt . '건
?>
diff --git a/AvocadoEdition_Light/adm/visit.sub.php b/AvocadoEdition_Light/adm/visit.sub.php
index d32c97e..09241f5 100644
--- a/AvocadoEdition_Light/adm/visit.sub.php
+++ b/AvocadoEdition_Light/adm/visit.sub.php
@@ -3,7 +3,7 @@ if (!defined('_GNUBOARD_'))
exit;
include_once(G5_LIB_PATH . '/visit.lib.php');
-include_once('./admin.head.php');
+include_once "./admin.head.php";
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php');
if (empty($fr_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date))
diff --git a/AvocadoEdition_Light/adm/visit_browser.php b/AvocadoEdition_Light/adm/visit_browser.php
index 19924e0..d1bc188 100644
--- a/AvocadoEdition_Light/adm/visit_browser.php
+++ b/AvocadoEdition_Light/adm/visit_browser.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_date.php b/AvocadoEdition_Light/adm/visit_date.php
index be43fb8..037ed62 100644
--- a/AvocadoEdition_Light/adm/visit_date.php
+++ b/AvocadoEdition_Light/adm/visit_date.php
@@ -1,11 +1,15 @@
diff --git a/AvocadoEdition_Light/adm/visit_delete.php b/AvocadoEdition_Light/adm/visit_delete.php
index cd84852..c94dad3 100644
--- a/AvocadoEdition_Light/adm/visit_delete.php
+++ b/AvocadoEdition_Light/adm/visit_delete.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_delete_update.php b/AvocadoEdition_Light/adm/visit_delete_update.php
index dcc4666..8cc3010 100644
--- a/AvocadoEdition_Light/adm/visit_delete_update.php
+++ b/AvocadoEdition_Light/adm/visit_delete_update.php
@@ -1,6 +1,6 @@
diff --git a/AvocadoEdition_Light/adm/visit_domain.php b/AvocadoEdition_Light/adm/visit_domain.php
index b95eca3..c4f193d 100644
--- a/AvocadoEdition_Light/adm/visit_domain.php
+++ b/AvocadoEdition_Light/adm/visit_domain.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_hour.php b/AvocadoEdition_Light/adm/visit_hour.php
index 8243dfe..43522f3 100644
--- a/AvocadoEdition_Light/adm/visit_hour.php
+++ b/AvocadoEdition_Light/adm/visit_hour.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_list.php b/AvocadoEdition_Light/adm/visit_list.php
index 5cabf30..72550fa 100644
--- a/AvocadoEdition_Light/adm/visit_list.php
+++ b/AvocadoEdition_Light/adm/visit_list.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_month.php b/AvocadoEdition_Light/adm/visit_month.php
index f8bfa97..f89d532 100644
--- a/AvocadoEdition_Light/adm/visit_month.php
+++ b/AvocadoEdition_Light/adm/visit_month.php
@@ -1,11 +1,15 @@
diff --git a/AvocadoEdition_Light/adm/visit_os.php b/AvocadoEdition_Light/adm/visit_os.php
index c17757c..387a232 100644
--- a/AvocadoEdition_Light/adm/visit_os.php
+++ b/AvocadoEdition_Light/adm/visit_os.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_search.php b/AvocadoEdition_Light/adm/visit_search.php
index 9a53bdc..db3a551 100644
--- a/AvocadoEdition_Light/adm/visit_search.php
+++ b/AvocadoEdition_Light/adm/visit_search.php
@@ -1,12 +1,12 @@
diff --git a/AvocadoEdition_Light/adm/visit_week.php b/AvocadoEdition_Light/adm/visit_week.php
index 823c9c5..c10cf29 100644
--- a/AvocadoEdition_Light/adm/visit_week.php
+++ b/AvocadoEdition_Light/adm/visit_week.php
@@ -1,11 +1,11 @@
diff --git a/AvocadoEdition_Light/adm/visit_year.php b/AvocadoEdition_Light/adm/visit_year.php
index 4f4d16f..c0fda46 100644
--- a/AvocadoEdition_Light/adm/visit_year.php
+++ b/AvocadoEdition_Light/adm/visit_year.php
@@ -1,11 +1,15 @@
diff --git a/AvocadoEdition_Light/adm/write_count.php b/AvocadoEdition_Light/adm/write_count.php
index 03f1a04..773a22a 100644
--- a/AvocadoEdition_Light/adm/write_count.php
+++ b/AvocadoEdition_Light/adm/write_count.php
@@ -1,6 +1,6 @@
array('시간', 0),
@@ -204,5 +204,5 @@ switch ($day) {
diff --git a/AvocadoEdition_Light/bbs/_common.php b/AvocadoEdition_Light/bbs/_common.php
index 08a25e5..942f324 100644
--- a/AvocadoEdition_Light/bbs/_common.php
+++ b/AvocadoEdition_Light/bbs/_common.php
@@ -1,2 +1,2 @@
", $msg);
diff --git a/AvocadoEdition_Light/bbs/board.php b/AvocadoEdition_Light/bbs/board.php
index 07b4aeb..a1b0f91 100644
--- a/AvocadoEdition_Light/bbs/board.php
+++ b/AvocadoEdition_Light/bbs/board.php
@@ -1,5 +1,5 @@
전체목록';
$g5['title'] = '캐릭터 관리';
-include_once('./admin.head.php');
+include_once "./admin.head.php";
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
$result = sql_query($sql);
@@ -323,5 +323,5 @@ if ($profile['ad_use_rank']) {
diff --git a/AvocadoEdition_Light/bbs/confirm.php b/AvocadoEdition_Light/bbs/confirm.php
index 8e219b5..83f52d9 100644
--- a/AvocadoEdition_Light/bbs/confirm.php
+++ b/AvocadoEdition_Light/bbs/confirm.php
@@ -1,5 +1,5 @@
' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.
';
}
-include_once('./_tail.php');
+include_once "./_tail.php";
diff --git a/AvocadoEdition_Light/bbs/formmail.php b/AvocadoEdition_Light/bbs/formmail.php
index 59416c4..38a7a3c 100644
--- a/AvocadoEdition_Light/bbs/formmail.php
+++ b/AvocadoEdition_Light/bbs/formmail.php
@@ -1,5 +1,5 @@
@@ -55,4 +55,4 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
?>
' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.
';
}
-include_once('./qatail.php');
+include_once "./qatail.php";
diff --git a/AvocadoEdition_Light/bbs/qatail.php b/AvocadoEdition_Light/bbs/qatail.php
index 56c4e1e..58847e8 100644
--- a/AvocadoEdition_Light/bbs/qatail.php
+++ b/AvocadoEdition_Light/bbs/qatail.php
@@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_'))
if (G5_IS_MOBILE) {
echo conv_content($qaconfig['qa_mobile_content_tail'], 1);
// 모바일의 경우 설정을 따르지 않는다.
- include_once('./_tail.php');
+ include_once "./_tail.php";
} else {
echo conv_content($qaconfig['qa_content_tail'], 1);
if (is_include_path_check($qaconfig['qa_include_tail']))
diff --git a/AvocadoEdition_Light/bbs/qaview.php b/AvocadoEdition_Light/bbs/qaview.php
index 6f9fddc..ebeda01 100644
--- a/AvocadoEdition_Light/bbs/qaview.php
+++ b/AvocadoEdition_Light/bbs/qaview.php
@@ -1,5 +1,5 @@
' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.
';
}
-include_once('./qatail.php');
+include_once "./qatail.php";
diff --git a/AvocadoEdition_Light/bbs/qawrite.php b/AvocadoEdition_Light/bbs/qawrite.php
index e60967a..16b009f 100644
--- a/AvocadoEdition_Light/bbs/qawrite.php
+++ b/AvocadoEdition_Light/bbs/qawrite.php
@@ -1,5 +1,5 @@
' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.
';
}
-include_once('./qatail.php');
+include_once "./qatail.php";
diff --git a/AvocadoEdition_Light/bbs/qawrite_update.php b/AvocadoEdition_Light/bbs/qawrite_update.php
index ac4315d..ad9617a 100644
--- a/AvocadoEdition_Light/bbs/qawrite_update.php
+++ b/AvocadoEdition_Light/bbs/qawrite_update.php
@@ -1,5 +1,5 @@
SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $port_setting);
- $res = $SMS->Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount);
-
- if ($res) {
- $SMS->Send();
- }
-
- $SMS->Init(); // 보관하고 있던 결과값을 지웁니다.
- }
- }
-
- // 문의글 등록시 관리자에게 전송
- if (($w == '' || $w == 'r') && trim($qaconfig['qa_admin_hp'])) {
- $sms_content = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . '에 문의글이 등록되었습니다.';
- $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']);
- $recv_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_admin_hp']);
-
- if ($recv_number) {
- $strDest = [];
- $strDest[] = $recv_number;
- $strCallBack = $send_number;
- $strCaller = iconv_euckr(trim($config['cf_title']));
- ;
- $strSubject = '';
- $strURL = '';
- $strData = iconv_euckr($sms_content);
- $strDate = '';
- $nCount = count($strDest);
-
- $SMS = new LMS;
- $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $port_setting);
- $res = $SMS->Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount);
-
- if ($res) {
- $SMS->Send();
- }
-
- $SMS->Init(); // 보관하고 있던 결과값을 지웁니다.
- }
- }
- }
} else {
- include_once(G5_LIB_PATH . '/icode.sms.lib.php');
- // 답변글은 질문 등록자에게 전송
- if ($w == 'a' && $write['qa_sms_recv'] && trim($write['qa_hp'])) {
- $sms_content = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . '에 답변이 등록되었습니다.';
- $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']);
- $recv_number = preg_replace('/[^0-9]/', '', $write['qa_hp']);
-
- if ($recv_number) {
- $SMS = new SMS; // SMS 연결
- $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
- $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv("utf-8", "euc-kr", stripslashes($sms_content)), "");
- $SMS->Send();
- }
- }
-
- // 문의글 등록시 관리자에게 전송
- if (($w == '' || $w == 'r') && trim($qaconfig['qa_admin_hp'])) {
- $sms_content = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . '에 문의글이 등록되었습니다.';
- $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']);
- $recv_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_admin_hp']);
-
- if ($recv_number) {
- $SMS = new SMS; // SMS 연결
- $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
- $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv("utf-8", "euc-kr", stripslashes($sms_content)), "");
- $SMS->Send();
- }
- }
}
}
diff --git a/AvocadoEdition_Light/bbs/register.php b/AvocadoEdition_Light/bbs/register.php
index f326648..d359145 100644
--- a/AvocadoEdition_Light/bbs/register.php
+++ b/AvocadoEdition_Light/bbs/register.php
@@ -1,5 +1,5 @@
diff --git a/AvocadoEdition_Light/bbs/register_email_update.php b/AvocadoEdition_Light/bbs/register_email_update.php
index a078cf7..31681ee 100644
--- a/AvocadoEdition_Light/bbs/register_email_update.php
+++ b/AvocadoEdition_Light/bbs/register_email_update.php
@@ -1,5 +1,5 @@
';
include_once($board_skin_path . '/write.skin.php');
-include_once('./board_tail.php');
+include_once "./board_tail.php";
@include_once($board_skin_path . '/write.tail.skin.php');
include_once(G5_PATH . '/tail.sub.php');
diff --git a/AvocadoEdition_Light/bbs/write_comment_update.php b/AvocadoEdition_Light/bbs/write_comment_update.php
index 864d6cf..32728f3 100644
--- a/AvocadoEdition_Light/bbs/write_comment_update.php
+++ b/AvocadoEdition_Light/bbs/write_comment_update.php
@@ -1,6 +1,6 @@
url = $url;
$this->icon = $icon;
$this->gnb_grp_div = $gnb_grp_div;
+ $this->suburl = [];
}
public function addSubURL($url)
diff --git a/AvocadoEdition_Light/common.php b/AvocadoEdition_Light/common.php
index 012ea60..ea764a3 100644
--- a/AvocadoEdition_Light/common.php
+++ b/AvocadoEdition_Light/common.php
@@ -99,7 +99,7 @@ function g5_path()
$g5_path = g5_path();
-include_once ($g5_path['path'] . '/config.php'); // 설정 파일
+include_once($g5_path['path'] . '/config.php'); // 설정 파일
unset($g5_path);
@@ -143,7 +143,8 @@ function sql_escape_string($str)
* @param string $currentDir
* @return string
*/
-function get_url_path_from_root($currentDir = __DIR__) {
+function get_url_path_from_root($currentDir = __DIR__)
+{
$documentRoot = rtrim($_SERVER["DOCUMENT_ROOT"], '/');
$relativePath = str_replace($documentRoot, '', $currentDir);
$urlPath = str_replace(DIRECTORY_SEPARATOR, '/', $relativePath);
@@ -158,7 +159,8 @@ function get_url_path_from_root($currentDir = __DIR__) {
* @param array $args
* @return string|void
*/
-function get_embed_file($type, $path, ...$args) {
+function get_embed_file($type, $path, ...$args)
+{
if (file_exists($path)) {
$full_path = "";
if (strstr($path, $_SERVER["DOCUMENT_ROOT"])) {
@@ -171,7 +173,7 @@ function get_embed_file($type, $path, ...$args) {
$url_path = get_url_path_from_root(dirname($full_path));
$url = $url_path . '/' . basename($path);
- switch($type) {
+ switch ($type) {
case "script":
return "";
case "css":
@@ -184,12 +186,23 @@ function get_embed_file($type, $path, ...$args) {
//==============================================================================
// SQL Injection 등으로 부터 보호를 위해 sql_escape_string() 적용
//------------------------------------------------------------------------------
+function strip_slashes_deep($value)
+{
+ return is_array($value) ? array_map('strip_slashes_deep', $value) : stripslashes($value);
+}
+
// magic_quotes_gpc 에 의한 backslashes 제거
-if (get_magic_quotes_gpc()) {
- $_POST = array_map_deep('stripslashes', $_POST);
- $_GET = array_map_deep('stripslashes', $_GET);
- $_COOKIE = array_map_deep('stripslashes', $_COOKIE);
- $_REQUEST = array_map_deep('stripslashes', $_REQUEST);
+if (version_compare(PHP_VERSION, '7.0.0', '<')) {
+ if (version_compare(PHP_VERSION, '5.0.0', '>=')) {
+ if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
+ $_POST = array_map('strip_slashes_deep', $_POST);
+ $_GET = array_map('strip_slashes_deep', $_GET);
+ $_COOKIE = array_map('strip_slashes_deep', $_COOKIE);
+ $_REQUEST = array_map('strip_slashes_deep', $_REQUEST);
+ }
+ } else {
+ die ("php 버전이 너무 낮습니다.");
+ }
}
// sql_escape_string 적용
@@ -238,12 +251,14 @@ if (file_exists($dbconfig_file)) {
sql_query(" set time_zone = '" . G5_TIMEZONE . "'");
} else {
?>
-
+
+
오류! 설치하기
+
AVOCADO EDITION
@@ -265,7 +280,8 @@ if (file_exists($dbconfig_file)) {
GPL! OPEN SOURCE GNUBOARD
- $src, "width" => $w, "height" => $h);
+ $thumb = ["src" => $src, "width" => $w, "height" => $h];
return $thumb;
}
@@ -61,7 +54,7 @@ function del_html($str)
$str = str_replace("<br>", "
", $str); //br은되게함
return $str;
}
-// 입력 폼 안내문
+
function help($help = "")
{
global $g5;
@@ -70,12 +63,10 @@ function help($help = "")
}
-// 파일을 업로드 함
function upload_file($srcfile, $destfile, $dir)
{
if ($destfile == "")
return false;
- // 업로드 한후 , 퍼미션을 변경함
@move_uploaded_file($srcfile, $dir . '/' . $destfile);
@chmod($dir . '/' . $destfile, G5_FILE_PERMISSION);
return true;
@@ -86,11 +77,7 @@ function upload_file($srcfile, $destfile, $dir)
function check_site_auth()
{
global $g5, $config, $is_member;
-
$is_page_login = (strstr($_SERVER["REQUEST_URI"], 'login') == "") ? false : true;
-
- // 사이트가 비공개 설정일 시, 로그인 페이지를 제외한 모든 페이지에서 외부인 접근 시
- // 로그인 페이지로 이동 시킨다.
if (!$config['cf_open']) {
if (!$is_member && !$is_page_login) {
goto_url(G5_BBS_URL . '/login.php');
@@ -99,13 +86,9 @@ function check_site_auth()
}
-// 메타태그를 이용한 URL 이동
-// header("location:URL") 을 대체
function goto_url_top($url)
{
$url = str_replace("&", "&", $url);
- //echo "";
-
if (!headers_sent())
header('Location: ' . $url);
else {
@@ -119,7 +102,6 @@ function goto_url_top($url)
exit;
}
-// 로고 정보 가져오기
function get_logo()
{
global $g5;
@@ -127,7 +109,6 @@ function get_logo()
return $logo['cs_value'];
}
-// 스타일 가져오기
function get_style($code, $field = '*')
{
global $g5;
@@ -138,7 +119,6 @@ function get_style($code, $field = '*')
return $result;
}
-// 사이트 화면 디자인 가져오기
function get_site_content($co_id)
{
global $g5, $config, $is_member;
@@ -254,7 +234,6 @@ function get_site_content($co_id)
return $result;
}
-
function emote_ev($comment)
{
global $g5;
@@ -288,14 +267,12 @@ function j($s, $have_jongsung)
break;
}
-
$last_chr = mb_substr($s, -1, 1, 'UTF-8');
return have_jongsung($last_chr) ?
$have_jongsung :
$no_jongsung;
}
-
function hex2rgba($color, $opacity = false)
{
$default = 'rgb(0,0,0)';
diff --git a/AvocadoEdition_Light/extend/mmb.lib.php b/AvocadoEdition_Light/extend/mmb.lib.php
index 3dbc8f1..f5d1e3f 100644
--- a/AvocadoEdition_Light/extend/mmb.lib.php
+++ b/AvocadoEdition_Light/extend/mmb.lib.php
@@ -1,6 +1,6 @@
\S*<\/a>`i',
'
Link URL',
@@ -20,15 +18,12 @@ function autolink($str, $bo_table, $stx = '')
);
$str = substr($str, 1);
- // 해시태그 설정
$hash_pattern = "/\\#([0-9a-zA-Z가-힣_])([0-9a-zA-Z가-힣_]*)/";
$str = preg_replace($hash_pattern, '
#$1$2', $str);
- // 로그링크 설정
$log_pattern = "/\\@([0-9])([0-9]*)/";
$str = preg_replace($log_pattern, '
$1$2', $str);
- // 콜링 설정
$str = str_replace("[[", "
", $str);
$str = str_replace("]]", "", $str);
@@ -57,14 +52,11 @@ function get_sql_search_mmb($search_ca_name, $search_field, $search_text, $searc
if ($str)
$str .= " and ";
- // 쿼리의 속도를 높이기 위하여 ( ) 는 최소화 한다.
$op1 = "";
- // 검색어를 구분자로 나눈다. 여기서는 공백
$s = [];
$s = explode(" ", $search_text);
- // 검색필드를 구분자로 나눈다. 여기서는 +
$tmp = [];
$tmp = explode(",", trim($search_field));
$field = explode("||", $tmp[0]);
@@ -74,22 +66,17 @@ function get_sql_search_mmb($search_ca_name, $search_field, $search_text, $searc
$str .= "(";
for ($i = 0; $i < count($s); $i++) {
- // 검색어
$search_str = trim($s[$i]);
if ($search_str == "")
continue;
- // 인기검색어
insert_popular($field, $search_str);
$str .= $op1;
$str .= "(";
$op2 = "";
- for ($k = 0; $k < count($field); $k++) { // 필드의 수만큼 다중 필드 검색 가능 (필드1+필드2...)
-
- // SQL Injection 방지
- // 필드값에 a-z A-Z 0-9 _ , | 이외의 값이 있다면 검색필드를 wr_subject 로 설정한다.
+ for ($k = 0; $k < count($field); $k++) {
$field[$k] = preg_match("/^[\w\,\|]+$/", $field[$k]) ? $field[$k] : "wr_subject";
$str .= $op2;
@@ -103,20 +90,17 @@ function get_sql_search_mmb($search_ca_name, $search_field, $search_text, $searc
case "wr_nogood":
$str .= " $field[$k] >= '$s[$i]' ";
break;
- // 번호는 해당 검색어에 -1 을 곱함
case "wr_num":
$str .= "$field[$k] = " . ((-1) * $s[$i]);
break;
case "wr_ip":
case "wr_password":
- $str .= "1=0"; // 항상 거짓
+ $str .= "1=0";
break;
case "hash":
- // 해시태그 검색
$str .= "wr_content like '%{$search_str}%' ";
break;
case "log":
- // 로그 검색
$str .= "wr_num >= " . ($search_str * -1) . " ";
if ($single_use) {
if ($str)
@@ -124,7 +108,6 @@ function get_sql_search_mmb($search_ca_name, $search_field, $search_text, $searc
$str .= "wr_num < " . (($search_str * -1) + 1) . " ";
}
break;
- // LIKE 보다 INSTR 속도가 빠름
default:
if (preg_match("/[a-zA-Z]/", $search_str))
$str .= "INSTR(LOWER($field[$k]), LOWER('$search_str'))";
diff --git a/AvocadoEdition_Light/extend/rank.lib.php b/AvocadoEdition_Light/extend/rank.lib.php
new file mode 100644
index 0000000..2eb17d5
--- /dev/null
+++ b/AvocadoEdition_Light/extend/rank.lib.php
@@ -0,0 +1,52 @@
+= {$level['lv_exp']} order by lv_exp asc limit 0, 1");
+
+ if ($ch_rank['lv_exp'] < $level['lv_exp']) {
+ $add_status = sql_fetch("select SUM(lv_add_state) as status from {$g5['level_table']} where lv_exp > '{$ch_rank['lv_exp']}' and lv_exp <= '{$level['lv_exp']}'");
+ $add_status = $add_status['status'];
+
+ } else if ($ch_rank['lv_exp'] > $level['lv_exp']) {
+ $add_status = sql_fetch("select SUM(lv_add_state) as status from {$g5['level_table']} where lv_exp <= '{$ch_rank['lv_exp']}' and lv_exp > '{$level['lv_exp']}'");
+ $add_status = $add_status['status'] * -1;
+ }
+
+ $result['rank'] = $level['lv_id'];
+ $result['next_rank'] = $n_level['lv_id'];
+ $result['add_point'] = $add_status;
+ $result['rest_exp'] = ($n_level ? $n_level['lv_exp'] - $level['lv_exp'] : 0);
+
+ return $result;
+}
diff --git a/AvocadoEdition_Light/install/index.php b/AvocadoEdition_Light/install/index.php
index 31c5996..6d4148b 100644
--- a/AvocadoEdition_Light/install/index.php
+++ b/AvocadoEdition_Light/install/index.php
@@ -1,5 +1,5 @@
diff --git a/AvocadoEdition_Light/install/install_config.php b/AvocadoEdition_Light/install/install_config.php
index 051d447..a939f22 100644
--- a/AvocadoEdition_Light/install/install_config.php
+++ b/AvocadoEdition_Light/install/install_config.php
@@ -6,9 +6,9 @@ header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
-include_once('../config.php');
+include_once "../config.php";
$title = G5_VERSION . " 초기환경설정 2/3";
-include_once('./install.inc.php');
+include_once "./install.inc.php";
if (!isset($_POST['agree']) || $_POST['agree'] != '동의함') {
@@ -148,5 +148,5 @@ if (!isset($_POST['agree']) || $_POST['agree'] != '동의함') {
diff --git a/AvocadoEdition_Light/install/install_db.php b/AvocadoEdition_Light/install/install_db.php
index 0a8b45f..c940788 100644
--- a/AvocadoEdition_Light/install/install_db.php
+++ b/AvocadoEdition_Light/install/install_db.php
@@ -15,11 +15,11 @@ $theme_4 = "#b0c4de";
$theme_5 = "#88a9db";
$theme_6 = "#779bdb";
-include_once('../config.php');
-include_once('../lib/common.lib.php');
+include_once "../config.php";
+include_once "../lib/common.lib.php";
$title = G5_VERSION . " 설치 완료 3/3";
-include_once('./install.inc.php');
+include_once "./install.inc.php";
//print_r($_POST); exit;
@@ -45,7 +45,7 @@ if (!$dblink) {
diff --git a/AvocadoEdition_Light/lib/common.lib.php b/AvocadoEdition_Light/lib/common.lib.php
index 43fa891..9744278 100644
--- a/AvocadoEdition_Light/lib/common.lib.php
+++ b/AvocadoEdition_Light/lib/common.lib.php
@@ -3051,7 +3051,8 @@ function replace_filename($name)
@session_start();
$ss_id = session_id();
$usec = get_microtime();
- $ext = array_pop(explode('.', $name));
+ $arr = explode('.', $name);
+ $ext = array_pop($arr);
return sha1($ss_id . $_SERVER['REMOTE_ADDR'] . $usec) . '.' . $ext;
}
diff --git a/AvocadoEdition_Light/lib/icode.lms.lib.php b/AvocadoEdition_Light/lib/icode.lms.lib.php
deleted file mode 100644
index e255d1d..0000000
--- a/AvocadoEdition_Light/lib/icode.lms.lib.php
+++ /dev/null
@@ -1,249 +0,0 @@
-socket_host = $host;
- $this->socket_portcode = $portcode;
- $this->icode_id = FillSpace($id, 10);
- $this->icode_pw = FillSpace($pw, 10);
- }
-
- function Init() {
- $this->Data = ""; // 발송하기 위한 패킷내용이 배열로 들어간다.
- $this->Result = ""; // 발송결과값이 배열로 들어간다.
- }
-
- function Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate="", $nCount) {
-
- // 문자 타입별 Port 설정.
- $sendType = strlen($strData) > 90 ? 1 : 0; // 0: SMS / 1: LMS
-
- /* 개발 완료 후 아래 포트를 rand 함수를 이용하는 라인으로 변경 바랍니다.*/
-
- // 충전식
- if ($this->socket_portcode == 1) {
- if($sendType && $sendType == 1) {
- //$this->socket_port = 8200; // LMS
- $this->socket_port=(int)rand(8200,8201); // LMS
- } else {
- //$this->socket_port = 6295; // SMS
- $this->socket_port=(int)rand(6295,6297); // SMS
- }
- }
- // 정액제
- else {
- if($sendType && $sendType == 1) {
- //$this->socket_port = 8300; // LMS
- $this->socket_port=(int)rand(8300,8301); // LMS
- } else {
- //$this->socket_port = 6291; // SMS
- $this->socket_port=(int)rand(6291,6293); // SMS
- }
- }
-
- $strCallBack = FillSpace($strCallBack, 11); // 회신번호
- $strDate = FillSpace($strDate, 12); // 즉시(12byte 공백), 예약전송(YmdHi)
-
- if ($sendType && $sendType == 1) {
-
- /** LMS 제목 **/
- /*
- 제목필드의 값이 없을 경우 단말기 기종및 설정에 따라 표기 방법이 다름
- 1.설정에서 제목필드보기 설정 Disable -> 제목필드값을 넣어도 미표기
- 2.설정에서 제목필드보기 설정 Enable -> 제목을 넣지 않을 경우 제목없음으로 자동표시
-
- 제목의 첫글자에 "<",">", 개행문자가 있을경우 단말기종류 및 통신사에 따라 메세지 전송실패 -> 글자를 체크하거나 취환처리요망
- */
- $strSubject = str_replace("\r\n", " ", $strSubject);
- $strSubject = str_replace("<", "[", $strSubject);
- $strSubject = str_replace(">", "]", $strSubject);
-
- $strSubject = FillSpace($strSubject,30);
- $strData = FillSpace(CutChar($strData,1500),1500);
- } else if (!$strURL) {
- $strData = FillSpace(CutChar($strData,90),90);
- $strCaller = FillSpace($strCaller,10);
- } else {
- $strURL = FillSpace($strURL,50);
- }
-
- $Error = CheckCommonTypeDest($strDest, $nCount);
- $Error = is_vaild_callback($strCallBack);
- $Error = CheckCommonTypeDate($strDate);
-
- for ($i=0; $i<$nCount; $i++) {
-
- $strDest[$i] = FillSpace($strDest[$i],11);
- if ($sendType && $sendType == 1) {
- $this->Data[$i] = '01144 '.$this->icode_id.$this->icode_pw.$strDest[$i].$strCallBack.$strSubject.$strDate.$strData;
- } else if (!$strURL) {
- $this->Data[$i] = '01144 '.$this->icode_id.$this->icode_pw.$strDest[$i].$strCallBack.$strCaller.$strDate.$strData;
- } else {
- $strData = FillSpace(CheckCallCenter($strURL, $strDest[$i], $strData),80);
- $this->Data[$i] = '05173 '.$this->icode_id.$this->icode_pw.$strDest[$i].$strCallBack.$strURL.$strDate.$strData;
- }
- }
- return true;
- }
-
-
- function Send() {
- $fsocket = fsockopen($this->socket_host,$this->socket_port, $errno, $errstr, 2);
- if (!$fsocket) return false;
- set_time_limit(300);
-
- foreach($this->Data as $puts) {
- fputs($fsocket, $puts);
- while(!$gets) { $gets = fgets($fsocket,30); }
- $dest = substr($puts,26,11);
- if (substr($gets,0,19) == "0223 00".$dest) {
- $this->Result[] = $dest.":".substr($gets,19,10);
- } else {
- $this->Result[$dest] = $dest.":Error(".substr($gets,6,2).")";
- }
- $gets = "";
- }
-
- fclose($fsocket);
- $this->Data = "";
- return true;
- }
-}
-
-/**
- * 원하는 문자열의 길이를 원하는 길이만큼 공백을 넣어 맞추도록 합니다.
- *
- * @param text 원하는 문자열입니다.
- * size 원하는 길이입니다.
- * @return 변경된 문자열을 넘깁니다.
- */
-function FillSpace($text,$size) {
- for ($i=0; $i<$size; $i++) $text.= " ";
- $text = substr($text,0,$size);
- return $text;
-}
-
-/**
- * 원하는 문자열을 원하는 길에 맞는지 확인해서 조정하는 기능을 합니다.
- *
- * @param word 원하는 문자열입니다.
- * cut 원하는 길이입니다.
- * @return 변경된 문자열입니다.
- */
-function CutChar($word, $cut) {
- $word=substr($word,0,$cut); // 필요한 길이만큼 취함.
- for ($k = $cut-1; $k > 1; $k--) {
- if (ord(substr($word,$k,1))<128) break; // 한글값은 160 이상.
- }
- $word = substr($word, 0, $cut-($cut-$k+1)%2);
- return $word;
-}
-
-/**
-* 수신번호의 값이 정확한 값인지 확인합니다.
-*
-* @param strDest 발송번호 배열입니다.
-* nCount 배열의 크기입니다.
-* @return 처리결과입니다.
-*/
-function CheckCommonTypeDest($strDest, $nCount) {
- for ($i=0; $i<$nCount; $i++) {
- $strDest[$i] = preg_replace("/[^0-9]/","",$strDest[$i]);
- if(!preg_match("/^01[0-9]{8,9}$/", $strDest[$i]))
- return "수신번호오류";
- }
-}
-
-
-/**
-* 회신번호 유효성 여부조회 *
-* @param string callback 회신번호
-* @return 처리결과입니다
-* 한국인터넷진흥원 권고
-*/
-function is_vaild_callback($callback){
-
- $_callback = preg_replace('/[^0-9]/', '', $callback);
-
- if (!preg_match("/^(02|0[3-6]\d|01(0|1|3|5|6|7|8|9)|070|080|007)\-?\d{3,4}\-?\d{4,5}$/", $_callback) &&
- !preg_match("/^(15|16|18)\d{2}\-?\d{4,5}$/", $_callback)){
- return "회신번호오류";
- }
-
- if (preg_match("/^(02|0[3-6]\d|01(0|1|3|5|6|7|8|9)|070|080)\-?0{3,4}\-?\d{4}$/", $_callback)){
- return "회신번호오류";
- }
-}
-
-
-/**
-* 예약날짜의 값이 정확한 값인지 확인합니다.
-*
-* @param string strDate (예약시간)
-* @return 처리결과입니다
-*/
-function CheckCommonTypeDate($strDate) {
- $strDate = preg_replace("/[^0-9]/", "", $strDate);
- if ($strDate){
- if (!checkdate(substr($strDate,4,2),substr($strDate,6,2),substr($rsvTime,0,4)))
- return "예약날짜오류";
- if (substr($strDate,8,2)>23 || substr($strDate,10,2)>59) return false;
- return "예약날짜오류";
- }
-}
-
-/**
-* URL콜백용으로 메세지 크기를 수정합니다.
-*
-* @param url URL 내용입니다.
-* msg 결과메시지입니다.
-* desk 문자내용입니다.
-*/
-function CheckCallCenter($url, $dest, $data) {
- switch (substr($dest,0,3)) {
- case '010': //20바이트
- return CutChar($data,20); break;
- case '011': //80바이트
- return CutChar($data,80); break;
- case '016': // 80바이트
- return CutChar($data,80); break;
- case '017': // URL 포함 80바이트
- return CutChar($data,80 - strlen($url)); break;
- case '018': // 20바이트
- return CutChar($data,20); break;
- case '019': // 20바이트
- return CutChar($data,20); break;
- default:
- return CutChar($data,80); break;
- }
-}
-?>
\ No newline at end of file
diff --git a/AvocadoEdition_Light/lib/icode.sms.lib.php b/AvocadoEdition_Light/lib/icode.sms.lib.php
deleted file mode 100644
index 39bb22a..0000000
--- a/AvocadoEdition_Light/lib/icode.sms.lib.php
+++ /dev/null
@@ -1,146 +0,0 @@
-1; $k--) {
- if (ord(substr($word,$k,1))<128) break; // 한글값은 160 이상.
- }
- $word=substr($word,0,$cut-($cut-$k+1)%2);
- return $word;
-}
-
-function CheckCommonType($dest, $rsvTime) {
- //$dest=eregi_replace("[^0-9]","",$dest);
- $dest=preg_replace("/[^0-9]/i","",$dest);
- if (strlen($dest)<10 || strlen($dest)>11) return "휴대폰 번호가 틀렸습니다";
- $CID=substr($dest,0,3);
- //if ( eregi("[^0-9]",$CID) || ($CID!='010' && $CID!='011' && $CID!='016' && $CID!='017' && $CID!='018' && $CID!='019') ) return "휴대폰 앞자리 번호가 잘못되었습니다";
- if ( preg_match("/[^0-9]/i",$CID) || ($CID!='010' && $CID!='011' && $CID!='016' && $CID!='017' && $CID!='018' && $CID!='019') ) return "휴대폰 앞자리 번호가 잘못되었습니다";
- //$rsvTime=eregi_replace("[^0-9]","",$rsvTime);
- $rsvTime=preg_replace("/[^0-9]/i","",$rsvTime);
- if ($rsvTime) {
- if (!checkdate(substr($rsvTime,4,2),substr($rsvTime,6,2),substr($rsvTime,0,4))) return "예약날짜가 잘못되었습니다";
- if (substr($rsvTime,8,2)>23 || substr($rsvTime,10,2)>59) return "예약시간이 잘못되었습니다";
- }
-}
-
-class SMS {
- var $ID;
- var $PWD;
- var $SMS_Server;
- var $port;
- var $SMS_Port;
- var $Data = array();
- var $Result = array();
-
- function SMS_con($sms_server,$sms_id,$sms_pw,$port) {
- $this->ID=$sms_id; // 계약 후 지정
- $this->PWD=$sms_pw; // 계약 후 지정
- $this->SMS_Server=$sms_server;
- $this->SMS_Port=$port;
- $this->ID = spacing($this->ID,10);
- $this->PWD = spacing($this->PWD,10);
- }
-
- function Init() {
- $this->Data = "";
- $this->Result = "";
- }
-
- function Add($dest, $callBack, $Caller, $msg, $rsvTime="") {
- global $g5;
-
- // 내용 검사 1
- $Error = CheckCommonType($dest, $rsvTime);
- if ($Error) return $Error;
- // 내용 검사 2
- //if ( eregi("[^0-9]",$callBack) ) return "회신 전화번호가 잘못되었습니다";
- if ( preg_match("/[^0-9]/i",$callBack) ) return "회신 전화번호가 잘못되었습니다";
-
- $msg=cut_char($msg,80); // 80자 제한
- // 보낼 내용을 배열에 집어넣기
- $dest = spacing($dest,11);
- $callBack = spacing($callBack,11);
- $Caller = spacing($Caller,10);
- $rsvTime = spacing($rsvTime,12);
- $msg = spacing($msg,80);
-
- $this->Data[] = '01144 '.$this->ID.$this->PWD.$dest.$callBack.$Caller.$rsvTime.$msg;
- return "";
- }
-
- function AddURL($dest, $callBack, $URL, $msg, $rsvTime="") {
- // 내용 검사 1
- $Error = CheckCommonType($dest, $rsvTime);
- if ($Error) return $Error;
- // 내용 검사 2
- //$URL=str_replace("http://","",$URL);
- if (strlen($URL)>50) return "URL이 50자가 넘었습니다";
- switch (substr($dest,0,3)) {
- case '010': //20바이트
- $msg=cut_char($msg,20);
- break;
- case '011': //80바이트
- $msg=cut_char($msg,80);
- break;
- case '016': // 80바이트
- $msg=cut_char($msg,80);
- break;
- case '017': // URL 포함 80바이트
- $msg=cut_char($msg,80-strlen($URL));
- break;
- case '018': // 20바이트
- $msg=cut_char($msg,20);
- break;
- case '019': // 20바이트
- $msg=cut_char($msg,20);
- break;
- default:
- return "아직 URL CallBack이 지원되지 않는 번호입니다";
- break;
- }
- // 보낼 내용을 배열에 집어넣기
- $dest = spacing($dest,11);
- $URL = spacing($URL,50);
- $callBack = spacing($callBack,11);
- $rsvTime = spacing($rsvTime,12);
- $msg = spacing($msg,80);
- $this->Data[] = '05173 '.$this->ID.$this->PWD.$dest.$callBack.$URL.$rsvTime.$msg;
- return "";
- }
-
- function Send () {
- $fp=@fsockopen(trim($this->SMS_Server),trim($this->SMS_Port));
- if (!$fp) return false;
- set_time_limit(300);
-
- ## php4.3.10일경우
- ## zend 최신버전으로 업해주세요..
- ## 또는 122번째 줄을 $this->Data as $tmp => $puts 로 변경해 주세요.
-
- foreach($this->Data as $puts) {
- $dest = substr($puts,26,11);
- fputs($fp,$puts);
- while(!$gets) { $gets=fgets($fp,30); }
- if (substr($gets,0,19)=="0223 00".$dest) $this->Result[]=$dest.":".substr($gets,19,10);
- else $this->Result[$dest]=$dest.":Error";
- $gets="";
- }
- fclose($fp);
- $this->Data="";
- return true;
- }
-}
-?>
\ No newline at end of file
diff --git a/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/_common.php b/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/_common.php
index c7f0080..b3d9bbc 100644
--- a/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/_common.php
+++ b/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/_common.php
@@ -1,2 +1 @@
-()\[\]\{\}]/", "", $_POST["filesrc"]) : '';
diff --git a/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/upload.php b/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/upload.php
index 2ec62de..9124b64 100644
--- a/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/upload.php
+++ b/AvocadoEdition_Light/plugin/editor/cheditor5/imageUpload/upload.php
@@ -2,7 +2,7 @@
require_once("config.php");
if (!function_exists('ft_nonce_is_valid')) {
- include_once('../editor.lib.php');
+ include_once "../editor.lib.php";
}
if (!function_exists('che_reprocessImage')) {
diff --git a/AvocadoEdition_Light/plugin/editor/smarteditor2/photo_uploader/popup/_common.php b/AvocadoEdition_Light/plugin/editor/smarteditor2/photo_uploader/popup/_common.php
index 3c73f53..b3d9bbc 100644
--- a/AvocadoEdition_Light/plugin/editor/smarteditor2/photo_uploader/popup/_common.php
+++ b/AvocadoEdition_Light/plugin/editor/smarteditor2/photo_uploader/popup/_common.php
@@ -1,2 +1 @@
-setKeyString($ss_captcha_key_decrypt);
-$captcha->getKeyString();
+setKeyString($ss_captcha_key_decrypt);
+$captcha->getKeyString();
$captcha->image();
\ No newline at end of file
diff --git a/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_mp3.php b/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_mp3.php
index 30961de..b2e3062 100644
--- a/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_mp3.php
+++ b/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_mp3.php
@@ -1,49 +1,48 @@
-= 5) { // 설정값 이상이면 자동등록방지 입력 문자가 맞아도 오류 처리
- echo false;
-} else {
- set_session("ss_captcha_count", $count + 1);
-
- if( $captcha_key && function_exists('get_string_encrypt') ){
- $ip = md5(sha1($_SERVER['REMOTE_ADDR']));
- $captcha_key = get_string_encrypt($ip.$captcha_key);
- }
- echo (get_session("ss_captcha_key") === $captcha_key) ? true : false;
+= 5) { // 설정값 이상이면 자동등록방지 입력 문자가 맞아도 오류 처리
+ echo false;
+} else {
+ set_session("ss_captcha_count", $count + 1);
+
+ if( $captcha_key && function_exists('get_string_encrypt') ){
+ $ip = md5(sha1($_SERVER['REMOTE_ADDR']));
+ $captcha_key = get_string_encrypt($ip.$captcha_key);
+ }
+ echo (get_session("ss_captcha_key") === $captcha_key) ? true : false;
}
\ No newline at end of file
diff --git a/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_session.php b/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_session.php
index c9b527d..83b7cfb 100644
--- a/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_session.php
+++ b/AvocadoEdition_Light/plugin/kcaptcha/kcaptcha_session.php
@@ -1,22 +1,20 @@
-setKeyString(get_session("ss_captcha_key"));
\ No newline at end of file
diff --git a/AvocadoEdition_Light/plugin/sns/_common.php b/AvocadoEdition_Light/plugin/sns/_common.php
index c7ed3c4..2088f55 100644
--- a/AvocadoEdition_Light/plugin/sns/_common.php
+++ b/AvocadoEdition_Light/plugin/sns/_common.php
@@ -1,2 +1,2 @@
getAccessToken($_REQUEST['oauth_verifier']);
-
-/* Save the access tokens. Normally these would be saved in a database for future use. */
-$_SESSION['access_token'] = $access_token;
-
-/* Remove no longer needed request tokens */
-unset($_SESSION['oauth_token']);
-unset($_SESSION['oauth_token_secret']);
-
-/*
-if (200 == $connection->http_code) {
- $_SESSION['status'] = 'verified';
- header('Location: ./index.php');
-} else {
- header('Location: ./clearsessions.php');
-}
-exit;
-*/
-
-$g5['title'] = '트위터 콜백';
-include_once(G5_PATH.'/head.sub.php');
-
-if (200 == $connection->http_code) {
- $content = $connection->get('account/verify_credentials');
- $sns_name = $content->name;
- $sns_user = $content->screen_name;
-
- set_cookie('ck_sns_name', $sns_name, 86400);
- set_session('ss_twitter_user', $sns_user);
-
- $g5_sns_url = G5_SNS_URL;
-
- echo <<
- $(function() {
- document.write("트위터에 승인이 되었습니다.");
-
- var opener = window.opener;
- opener.$("#wr_name").val("{$sns_name}");
- opener.$("#twitter_icon").attr("src", "{$g5_sns_url}/icon/twitter.png");
- opener.$("#twitter_checked").attr("disabled", false);
- opener.$("#twitter_checked").attr("checked", true);
- window.close();
- });
-
-EOT;
-
-} else {
-
- echo <<
- $(function() {
- alert("트위터에 승인이 되지 않았습니다.");
- window.close();
- });
-
-EOT;
-
-}
-
+getAccessToken($_REQUEST['oauth_verifier']);
+
+/* Save the access tokens. Normally these would be saved in a database for future use. */
+$_SESSION['access_token'] = $access_token;
+
+/* Remove no longer needed request tokens */
+unset($_SESSION['oauth_token']);
+unset($_SESSION['oauth_token_secret']);
+
+/*
+if (200 == $connection->http_code) {
+ $_SESSION['status'] = 'verified';
+ header('Location: ./index.php');
+} else {
+ header('Location: ./clearsessions.php');
+}
+exit;
+*/
+
+$g5['title'] = '트위터 콜백';
+include_once(G5_PATH.'/head.sub.php');
+
+if (200 == $connection->http_code) {
+ $content = $connection->get('account/verify_credentials');
+ $sns_name = $content->name;
+ $sns_user = $content->screen_name;
+
+ set_cookie('ck_sns_name', $sns_name, 86400);
+ set_session('ss_twitter_user', $sns_user);
+
+ $g5_sns_url = G5_SNS_URL;
+
+ echo <<
+ $(function() {
+ document.write("트위터에 승인이 되었습니다.");
+
+ var opener = window.opener;
+ opener.$("#wr_name").val("{$sns_name}");
+ opener.$("#twitter_icon").attr("src", "{$g5_sns_url}/icon/twitter.png");
+ opener.$("#twitter_checked").attr("disabled", false);
+ opener.$("#twitter_checked").attr("checked", true);
+ window.close();
+ });
+
+EOT;
+
+} else {
+
+ echo <<
+ $(function() {
+ alert("트위터에 승인이 되지 않았습니다.");
+ window.close();
+ });
+
+EOT;
+
+}
+
include_once(G5_PATH.'/tail.sub.php');
\ No newline at end of file
diff --git a/AvocadoEdition_Light/plugin/sns/twitter/clearsessions.php b/AvocadoEdition_Light/plugin/sns/twitter/clearsessions.php
index 2947d62..b7aca68 100644
--- a/AvocadoEdition_Light/plugin/sns/twitter/clearsessions.php
+++ b/AvocadoEdition_Light/plugin/sns/twitter/clearsessions.php
@@ -1,5 +1,5 @@
diff --git a/AvocadoEdition_Light/plugin/syndi/_common.php b/AvocadoEdition_Light/plugin/syndi/_common.php
index 03b90f3..b3d9bbc 100644
--- a/AvocadoEdition_Light/plugin/syndi/_common.php
+++ b/AvocadoEdition_Light/plugin/syndi/_common.php
@@ -1,2 +1 @@
- 1)
- die("비회원 읽기가 가능한 게시판만 신디케이션을 지원합니다.");
-
-if (strstr($write['wr_option'], 'secret'))
- die("비밀글은 신디케이션을 지원하지 않습니다.");
-
-if (preg_match('#^('.$config['cf_syndi_except'].')$#', $bo_table))
- die("신디케이션에서 제외된 게시판입니다.");
-
-$title = htmlspecialchars($write['wr_subject']);
-$author = htmlspecialchars($write['wr_name']);
-$published = date('Y-m-d\TH:i:s\+09:00', strtotime($write['wr_datetime']));
-$updated = $published;
-$link_href = G5_BBS_URL . "/board.php?bo_table={$bo_table}";
-$id = $link_href . htmlspecialchars("&wr_id={$wr_id}");
-$cf_title = htmlspecialchars($config['cf_title']);
-$link_title = htmlspecialchars($board['bo_subject']);
-$feed_updated = date('Y-m-d\TH:i:s\+09:00', G5_SERVER_TIME);
-
-$find = array('&', ' '); # 찾아서
-$replace = array('&', ' '); # 바꾼다
-
-$content = str_replace( $find, $replace, html_purifier($write['wr_content']) );
-$summary = str_replace( $find, $replace, strip_tags($write['wr_content']) );
-
-Header("Content-type: text/xml");
-header("Cache-Control: no-cache, must-revalidate");
-header("Pragma: no-cache");
-
-echo "\n";
-echo "\n";
-echo "" . G5_URL . "\n";
-echo "naver syndication feed document\n";
-echo "\n";
- echo "webmaster\n";
-echo "\n";
-
-echo "{$feed_updated}\n";
-
-echo "\n";
-echo "\n";
- echo "{$id}\n";
- echo "\n";
- echo "\n";
- echo "{$author}\n";
- echo "\n";
- echo "{$updated}\n";
- echo "{$published}\n";
- echo "\n";
- echo "\n";
- echo "\n";
- echo "\n";
- echo "\n";
-echo "\n";
+ 1)
+ die("비회원 읽기가 가능한 게시판만 신디케이션을 지원합니다.");
+
+if (strstr($write['wr_option'], 'secret'))
+ die("비밀글은 신디케이션을 지원하지 않습니다.");
+
+if (preg_match('#^('.$config['cf_syndi_except'].')$#', $bo_table))
+ die("신디케이션에서 제외된 게시판입니다.");
+
+$title = htmlspecialchars($write['wr_subject']);
+$author = htmlspecialchars($write['wr_name']);
+$published = date('Y-m-d\TH:i:s\+09:00', strtotime($write['wr_datetime']));
+$updated = $published;
+$link_href = G5_BBS_URL . "/board.php?bo_table={$bo_table}";
+$id = $link_href . htmlspecialchars("&wr_id={$wr_id}");
+$cf_title = htmlspecialchars($config['cf_title']);
+$link_title = htmlspecialchars($board['bo_subject']);
+$feed_updated = date('Y-m-d\TH:i:s\+09:00', G5_SERVER_TIME);
+
+$find = array('&', ' '); # 찾아서
+$replace = array('&', ' '); # 바꾼다
+
+$content = str_replace( $find, $replace, html_purifier($write['wr_content']) );
+$summary = str_replace( $find, $replace, strip_tags($write['wr_content']) );
+
+Header("Content-type: text/xml");
+header("Cache-Control: no-cache, must-revalidate");
+header("Pragma: no-cache");
+
+echo "\n";
+echo "\n";
+echo "" . G5_URL . "\n";
+echo "naver syndication feed document\n";
+echo "\n";
+ echo "webmaster\n";
+echo "\n";
+
+echo "{$feed_updated}\n";
+
+echo "\n";
+echo "\n";
+ echo "{$id}\n";
+ echo "\n";
+ echo "\n";
+ echo "{$author}\n";
+ echo "\n";
+ echo "{$updated}\n";
+ echo "{$published}\n";
+ echo "\n";
+ echo "\n";
+ echo "\n";
+ echo "\n";
+ echo "\n";
+echo "\n";
echo "";
\ No newline at end of file
diff --git a/AvocadoEdition_Light/skin/board/character/list.order.skin.php b/AvocadoEdition_Light/skin/board/character/list.order.skin.php
index 86cf0fe..ccd776e 100644
--- a/AvocadoEdition_Light/skin/board/character/list.order.skin.php
+++ b/AvocadoEdition_Light/skin/board/character/list.order.skin.php
@@ -69,10 +69,10 @@ if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이
// 년도 2자리
$today2 = G5_TIME_YMD;
-$list = array();
+$list = [];
$i = 0;
$notice_count = 0;
-$notice_array = array();
+$notice_array = [];
// 공지 처리
if (!$sca) {
diff --git a/AvocadoEdition_Light/skin/board/character/proc/_common.php b/AvocadoEdition_Light/skin/board/character/proc/_common.php
index b55a1a0..d64b6f9 100644
--- a/AvocadoEdition_Light/skin/board/character/proc/_common.php
+++ b/AvocadoEdition_Light/skin/board/character/proc/_common.php
@@ -1,4 +1,4 @@
\ No newline at end of file
diff --git a/AvocadoEdition_Light/skin/board/character/proc/add_body.php b/AvocadoEdition_Light/skin/board/character/proc/add_body.php
index 1caf452..904c8c4 100644
--- a/AvocadoEdition_Light/skin/board/character/proc/add_body.php
+++ b/AvocadoEdition_Light/skin/board/character/proc/add_body.php
@@ -1,5 +1,5 @@
read()) {
// php 파일만 include 함
diff --git a/AvocadoEdition_Light/skin/board/character/write.pair.skin.php b/AvocadoEdition_Light/skin/board/character/write.pair.skin.php
index 1817bdf..574e8d0 100644
--- a/AvocadoEdition_Light/skin/board/character/write.pair.skin.php
+++ b/AvocadoEdition_Light/skin/board/character/write.pair.skin.php
@@ -5,7 +5,7 @@ include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php'); // 달력
// 게시물 목록을 불러온다.
$character_list = sql_query("select wr_id, wr_subject from {$write_table} where wr_type != 'pair' and wr_is_comment = 0 order by wr_subject");
-$character_ids = array();
+$character_ids = [];
for($i=0; $row = sql_fetch_array($character_list); $i++) {
$character_ids[$i] = $row;
diff --git a/AvocadoEdition_Light/skin/board/mmb/_common.php b/AvocadoEdition_Light/skin/board/mmb/_common.php
index 626acc9..c5759a8 100644
--- a/AvocadoEdition_Light/skin/board/mmb/_common.php
+++ b/AvocadoEdition_Light/skin/board/mmb/_common.php
@@ -1,4 +1,4 @@
\ No newline at end of file
diff --git a/AvocadoEdition_Light/skin/board/mmb/ajax/_common.php b/AvocadoEdition_Light/skin/board/mmb/ajax/_common.php
index db035a8..a3a009c 100644
--- a/AvocadoEdition_Light/skin/board/mmb/ajax/_common.php
+++ b/AvocadoEdition_Light/skin/board/mmb/ajax/_common.php
@@ -1,4 +1,4 @@
\ No newline at end of file
diff --git a/AvocadoEdition_Light/skin/board/mmb/ajax/add_favorite.php b/AvocadoEdition_Light/skin/board/mmb/ajax/add_favorite.php
index 1750f92..2575bdf 100644
--- a/AvocadoEdition_Light/skin/board/mmb/ajax/add_favorite.php
+++ b/AvocadoEdition_Light/skin/board/mmb/ajax/add_favorite.php
@@ -1,5 +1,5 @@
\ No newline at end of file
diff --git a/AvocadoEdition_Light/skin/board/mmb/emoticon/index.php b/AvocadoEdition_Light/skin/board/mmb/emoticon/index.php
index 3daa07c..847c5c7 100644
--- a/AvocadoEdition_Light/skin/board/mmb/emoticon/index.php
+++ b/AvocadoEdition_Light/skin/board/mmb/emoticon/index.php
@@ -1,10 +1,10 @@
-
+
diff --git a/AvocadoEdition_Light/skin/board/mmb/view_comment.php b/AvocadoEdition_Light/skin/board/mmb/view_comment.php
index aacdd20..7786615 100644
--- a/AvocadoEdition_Light/skin/board/mmb/view_comment.php
+++ b/AvocadoEdition_Light/skin/board/mmb/view_comment.php
@@ -2,7 +2,7 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-$comment = array();
+$comment = [];
$is_comment_write = false;
if ($member['mb_level'] >= $board['bo_comment_level'] && $is_member)
@@ -114,4 +114,4 @@ else
//array_unshift($comment, $list_item);
include($board_skin_path.'/view_comment.skin.php');
-?>
\ No newline at end of file
+?>
diff --git a/AvocadoEdition_Light/skin/board/mmb/write_comment_update.skin.php b/AvocadoEdition_Light/skin/board/mmb/write_comment_update.skin.php
index 30788c2..683365a 100644
--- a/AvocadoEdition_Light/skin/board/mmb/write_comment_update.skin.php
+++ b/AvocadoEdition_Light/skin/board/mmb/write_comment_update.skin.php
@@ -1,7 +1,7 @@