버전 5.4.4.5 수정

This commit is contained in:
thisgun
2021-01-09 16:16:05 +09:00
5 changed files with 8 additions and 7 deletions

View File

@ -12,11 +12,11 @@ else
check_admin_token();
$fm_id = isset($_POST['fm_id']) ? (int) $_POST['fm_id'] : 0;
$fm_id = isset($_REQUEST['fm_id']) ? (int) $_REQUEST['fm_id'] : 0;
$fa_id = isset($_REQUEST['fa_id']) ? (int) $_REQUEST['fa_id'] : 0;
$fa_subject = isset($_POST['fa_subject']) ? $_POST['fa_subject'] : '';
$fa_content = isset($_POST['fa_content']) ? $_POST['fa_content'] : '';
$fa_order = isset($_POST['fa_order']) ? (int) $_POST['fa_order'] : 0;
$fa_id = isset($_POST['fa_id']) ? (int) $_POST['fa_id'] : 0;
$sql_common = " fa_subject = '$fa_subject',
fa_content = '$fa_content',

View File

@ -15,7 +15,7 @@ check_admin_token();
@mkdir(G5_DATA_PATH."/faq", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/faq", G5_DIR_PERMISSION);
$fm_id = isset($_POST['fm_id']) ? (int) $_POST['fm_id'] : 0;
$fm_id = isset($_REQUEST['fm_id']) ? (int) $_REQUEST['fm_id'] : 0;
$fm_himg_del = isset($_POST['fm_himg_del']) ? (int) $_POST['fm_himg_del'] : 0;
$fm_timg_del = isset($_POST['fm_timg_del']) ? (int) $_POST['fm_timg_del'] : 0;
$fm_subject = isset($_POST['fm_subject']) ? strip_tags(clean_xss_attributes($_POST['fm_subject'])) : '';

View File

@ -2,6 +2,7 @@
include_once('./_common.php');
$call = isset($_REQUEST['call']) ? strtolower(preg_replace('/[^a-z0-9_]/i', '', $_REQUEST['call'])) : '';
$token = isset($_REQUEST['token']) ? clean_xss_tags($_REQUEST['token'], 1, 1) : '';
if( ! $call ){
return;

View File

@ -12,12 +12,12 @@ if( !isset($g5['content_table']) ){
// 내용
if($co_seo_title){
$co = get_content_by_field($g5['content_table'], 'content', 'co_seo_title', generate_seo_title($co_seo_title));
$co_id = $co['co_id'];
$co_id = isset($co['co_id']) ? $co['co_id'] : 0;
} else {
$co = get_content_db($co_id);
}
if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && $co['co_id'] ){
if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && isset($co['co_id']) && $co['co_id'] ){
seo_title_update($g5['content_table'], $co['co_id'], 'content');
}

View File

@ -5,8 +5,8 @@
********************/
define('G5_VERSION', '그누보드5');
define('G5_GNUBOARD_VER', '5.4.4.4');
define('G5_YOUNGCART_VER', '5.4.4.4');
define('G5_GNUBOARD_VER', '5.4.4.5');
define('G5_YOUNGCART_VER', '5.4.4.5');
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define('_GNUBOARD_', true);