관리자에서 FAQ 삭제 안되는 오류 수정
This commit is contained in:
@ -12,11 +12,11 @@ else
|
|||||||
|
|
||||||
check_admin_token();
|
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_subject = isset($_POST['fa_subject']) ? $_POST['fa_subject'] : '';
|
||||||
$fa_content = isset($_POST['fa_content']) ? $_POST['fa_content'] : '';
|
$fa_content = isset($_POST['fa_content']) ? $_POST['fa_content'] : '';
|
||||||
$fa_order = isset($_POST['fa_order']) ? (int) $_POST['fa_order'] : 0;
|
$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',
|
$sql_common = " fa_subject = '$fa_subject',
|
||||||
fa_content = '$fa_content',
|
fa_content = '$fa_content',
|
||||||
|
|||||||
@ -15,7 +15,7 @@ check_admin_token();
|
|||||||
@mkdir(G5_DATA_PATH."/faq", G5_DIR_PERMISSION);
|
@mkdir(G5_DATA_PATH."/faq", G5_DIR_PERMISSION);
|
||||||
@chmod(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_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_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'])) : '';
|
$fm_subject = isset($_POST['fm_subject']) ? strip_tags(clean_xss_attributes($_POST['fm_subject'])) : '';
|
||||||
|
|||||||
Reference in New Issue
Block a user