Files
slot/src/google_indexing-api.php
T
chpark 0e549cad46 Initial import of slot-ss.com (gnuboard5 + Eyoom + YoungCart) for migration
Original PHP source rsync'd from production server (slot-ss.com) on 2026-04-27.
Excluded from import:
  - data/editor (74GB user uploads), data/file (8.5GB attachments)
  - data/member_image, vendor/, db100up/, caches/sessions/logs/tmp

Includes:
  - 11,636 files, ~206MB source code (gnuboard5 v5.6.6, Eyoom builder, YoungCart 4)
  - 28 plugins (bacara, chatbot, cron, swiunApi, sns, sms5, ...)
  - Active theme: eb4_maga_005 (Eyoom magazine layout)
  - Local Docker dev stack (PHP 7.4 + Apache + Redis + MariaDB) under docker/
  - PostgreSQL migration setup (pgloader configs) under db/
  - Architecture/migration docs under docs/

Single non-source patch: src/config.php now reads G5_DOMAIN_OVERRIDE env var
so the local Docker stack can serve at http://localhost:8088 without touching
the production constant. Falls back to https://slot-ss.com when unset.
2026-04-27 18:23:16 +09:00

30 lines
897 B
PHP

<?php
require_once '/home/inspection2/public_html/vendor/autoload.php';
// 서비스 계정 키 파일 경로 설정
putenv('GOOGLE_APPLICATION_CREDENTIALS=/home/inspection2/public_html/silicon-cocoa-423904-e7-91e1ad627219.json');
// 구글 클라이언트 초기화
$client = new Google_Client();
$client->useApplicationDefaultCredentials();
$client->addScope('https://www.googleapis.com/auth/indexing');
// 인덱싱 서비스 객체 생성
$httpClient = $client->authorize();
$endpoint = 'https://indexing.googleapis.com/v3/urlNotifications:publish';
// 인덱싱할 URL 데이터
$data = [
'url' => 'https://mukgumsa.com/bbs/board.php?bo_table=fakeframe',
'type' => 'URL_UPDATED',
];
// 요청 보내기
$response = $httpClient->post($endpoint, [
'json' => $data
]);
// 응답 확인
echo $response->getStatusCode();
echo $response->getBody();
?>