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.menu860.google_ads_manage.php'; if (file_exists($menu_file)) { if (@unlink($menu_file)) { $delete_result['menu'] = '메뉴 파일 삭제 성공'; } else { $delete_result['menu'] = '메뉴 파일 삭제 실패 (권한 확인 필요)'; } } // $delete_result['menu'] = '메뉴 항목은 admin.menu100.php에서 수동으로 제거해야 합니다.'; } function create_admin_menu_file() { $source_file = __DIR__ . '/admin.menu860.google_ads_manage.php'; $target_file = G5_ADMIN_PATH . '/admin.menu860.google_ads_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 = count($existing_tables) > 0; ?>

구글 애드센스 관리 시스템

사이트 내 광고를 효율적으로 관리하는 솔루션

설치 작업 완료

데이터베이스 및 메뉴 설정이 완료되었습니다.

애드센스 관리로 이동

삭제 작업 완료

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

설치 완료

구글 애드센스 관리 시스템이 이미 설치되어 있습니다.

애드센스 관리로 이동

설치 필요

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

설치 상태

테이블명설명상태
광고 단위 정보 설치됨 미설치