session->userdata('Adm_Type'); $admin_id = $this->session->userdata('Adm_Id'); if($mode=='edit') { // 칼럼리스트는 자기 글만 삭제 가능 $write_id = $result['write_id']; if($admin_type == '1') { if($write_id != $admin_id) { gf_alert("잘못된 접근입니다.", "/admin/main"); exit; } } $title = $result['title']; $title = htmlspecialchars($title); $content = htmlentities($result['content']); $category_code1 = $result['category_idx']; $category_code2 = $result['channel_idx']; $category_code3 = $result['partner_idx']; $head_title = $result['head_title']; $head_title = htmlspecialchars($head_title); $sub_title = $result['sub_title']; $sub_title = htmlspecialchars($sub_title); $tag = $result['tag']; $org_url = $result['org_url']; $hit_count = $result['hit_count']; $like_count = $result['like_count']; $display_date = $result['display_date']; $is_display = $result['is_display']; $org_main_img = $result['main_img']; $life_type = $result['life_type']; $main_img = $result['main_img']; $video_url = $result['video_url']; if($video_url !='') $video_url = str_replace('https://www.youtube.com/embed/','', $video_url); $arr_display_date = explode(' ', $display_date); $display_date = $arr_display_date[0]; $arr_display_time = explode(':', $arr_display_date[1]); $display_hour = $arr_display_time[0]; $display_min = $arr_display_time[1]; $display_sec = $arr_display_time[2]; $tag = str_replace(' ', ',', $tag); foreach ($arr_theme as $val) { $arr_theme_reg[$val['theme_type']] = $val['rank']; } foreach ($arr_section as $val) { $arr_section_reg[$val['etc_section_type']] = $val['rank']; } } else { $main_img = ''; $category_code1 = ''; $category_code2 = ''; $category_code3 = ''; $title = ''; $head_title = ''; $content = ''; $sub_title = ''; $tag = ''; $org_url = ''; $hit_count = 0; $like_count = 0; $video_url = ''; $display_date = ''; $display_hour = ''; $display_min = ''; $display_sec = ''; $life_type = $search_life_type; if($life_type == '') $life_type = '1'; } ?> $menu_code = '53'; require_once (APPPATH.'views/skin/admin/_content_comm.php'); ?>