execute(); $db_results = $schemaManager->get_results(); $menu_msg = create_admin_menu_file(); $install_result = ['db' => $db_results, 'menu' => $menu_msg]; } catch (Exception $e) { $install_result['errors'][] = '설치 중 심각한 오류 발생: ' . $e->getMessage(); } } else if ($action === 'delete') { check_admin_token(); $delete_result = ['tables' => [], 'menu' => '']; $tables_to_delete = $tables_to_check; foreach ($tables_to_delete as $table) { sql_query("DROP TABLE IF EXISTS `{$table}`", false); $delete_result['tables'][] = $table; } // 💡 [수정] 810번 메뉴 파일 삭제 $menu_file = G5_ADMIN_PATH . '/admin.menu810.contact.php'; if (file_exists($menu_file)) { if (@unlink($menu_file)) { $delete_result['menu'] = '메뉴 파일 삭제 성공'; } else { $delete_result['menu'] = '메뉴 파일 삭제 실패 (권한 확인 필요)'; } } } function create_admin_menu_file() { // 💡 [수정] 810번 메뉴 파일 생성 $source_file = __DIR__ . '/admin.menu810.contact.php'; $target_file = G5_ADMIN_PATH . '/admin.menu810.contact.php'; if (!file_exists($source_file)) return "실패 (메뉴 원본 파일 없음)"; if (file_exists($target_file)) return "성공 (이미 존재함)"; if (@copy($source_file, $target_file)) return "성공"; return "실패 (파일 복사 오류)"; } $existing_tables = []; foreach ($tables_to_check as $table) { if (sql_query("SHOW TABLES LIKE '$table'", false) && sql_num_rows(sql_query("SHOW TABLES LIKE '$table'", false)) > 0) { $existing_tables[] = $table; } } $is_installed = count($existing_tables) == count($tables_to_check); ?>

상담 문의 시스템

홈페이지의 문의 양식을 데이터베이스에 저장하고 관리합니다.

설치 작업 완료

데이터베이스 및 기본 설정 설치가 완료되었습니다.

상담 문의 내역으로 이동

삭제 작업 완료

솔루션 관련 데이터와 파일이 삭제되었습니다.

설치 완료

상담 문의 시스템이 이미 설치되어 있습니다.

상담 문의 내역으로 이동

설치 필요

상담 문의 시스템을 사용하기 위해 설치가 필요합니다.

설치 상태

테이블명설명상태
상담 문의 내역 저장 테이블 설치됨 미설치