🎮 PVP Server Demo Sitesi

📋 Nasıl Çalışır?

1. Vote Sitesi: Oyuncu metin2.vote/test_server/PLAYER_ID adresine gider

2. Oy Verir: Vote sitesi oyu kaydeder ve bu API'ye istek gönderir

3. Veritabanı Güncellenir: player tablosundaki vote_date bugünün tarihi ile güncellenir

⚠️ Önemli: vote_config.php dosyasında kendi veritabanı bilgilerinizi girin!

🔧 API Endpoint

URL: http://localhost/pvp-server-demo/api/vote.php

Method: POST

Parametreler:

api_key=test_api_key_12345678901234567890123456789012
player_id=12345
vote_id=1

🔑 API Key Nasıl Oluşturulur?

Güvenli bir API key oluşturmak için PHP'de şunu kullanın:

<?php
$api_key = bin2hex(random_bytes(32));
echo $api_key;
?>

Bu key'i hem vote_config.php'de hem de vote sitesindeki servers tablosuna kaydedin.

📊 Player Tablosu

Veritabanı: vote_config.php'den yüklenecek

Tablo: vote_config.php'den yüklenecek

Player tablosunda vote_date sütunu yoksa otomatik oluşturulacaktır.

Eğer manuel oluşturmak isterseniz:

ALTER TABLE player ADD COLUMN vote_date DATETIME NULL DEFAULT NULL;
{"success":false,"error":"Veritaban\u0131 ba\u011flant\u0131 hatas\u0131: SQLSTATE[28000] [1045] Access denied for user 'root'@'198.54.120.110' (using password: YES) (Host: 2.56.63.30, DB: player)"}