퍼스트가든에서 사용하는 사용자 함수 및 관련파일 추가
This commit is contained in:
13
manager/adm/gr.delete.php
Normal file
13
manager/adm/gr.delete.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
include_once ('./_common.php');
|
||||
include_once ()'lib/lib.php');
|
||||
if(!$_SESSION['user_id']) exit();
|
||||
|
||||
$gr_id = trim($_POST['gr_id']);
|
||||
|
||||
$query = "DELETE FROM {$fg['group_table']} WHERE gr_id='{$gr_id}'";
|
||||
$result = sql_query($query);
|
||||
|
||||
$data = array("isSuccess" => $result);
|
||||
header("Content-Type: application/json");
|
||||
echo json_encode($data);
|
||||
Reference in New Issue
Block a user