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; } $menu_file = G5_ADMIN_PATH . '/admin.menu800.order_manage.php'; if (file_exists($menu_file)) { if (@unlink($menu_file)) { $delete_result['menu'] = '메뉴 파일 삭제 성공'; } else { $delete_result['menu'] = '메뉴 파일 삭제 실패 (권한 확인 필요)'; } } } function create_admin_menu_file() { $source_file = __DIR__ . '/admin.menu800.order_manage.php'; $target_file = G5_ADMIN_PATH . '/admin.menu800.order_manage.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 = !empty($existing_tables); // 하나라도 테이블이 있으면 설치된 것으로 간주 ?>

견적 관리 시스템

견적, 주문, 전문가 방문, 시공까지 한번에 관리하는 통합 솔루션

설치 작업 완료

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

견적 관리 설정으로 이동

삭제 작업 완료

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

설치 완료

견적 관리 시스템이 이미 설치되어 있습니다.

견적 관리 설정으로 이동

설치 필요

견적 관리 시스템을 사용하기 위해 설치가 필요합니다.

설치 상태

테이블명상태
설치됨 미설치