Jump to content

Search the Community

Showing results for tags 'beta'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Administration
    • Register
    • Docs
    • Announcements
    • Security
  • Community
    • Projects
    • Feedback
    • Servers management
  • Counter-Strike: 2
    • Discussions
  • Counter-Strike: 1.6
    • Servers
    • Discussions
    • Tutorials
    • AMX Mod X
    • Resources
  • Metin2
    • Metin2 Plague
  • PHOTOSHOP
    • Area for Photoshop
  • OLDS ⚬ IT
    • Resurse Jocuri
    • Resurse Webmasteri
    • Operating Systems
  • ZONA INTERZISA
    • Vechi

Categories

  • Counter-Strike: 1.6
    • Servers
    • Client

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Tara


Oras


Steam

Found 5 results

  1. Daemon

    Beta V1.2

    Lucrez la o metoda prin care puteti sa trimiteti catre api prin POST o lista cu multiple servere si aceasta returneaza inapoi json. Link-ul este gapi.pbcv.dev/get/multiple si lista trebuie trimisa prin POST folositi ce vreti voi php curl, nodejs, python, etc. Exemplu de script PHP, acesta ia serverele din baza de date apoi tirmite lista cu toate catre api. Datele primine inapoi din api sunt stocate in $response de acolo faceti ce vreti voi cu ele, update la db-ul vostru etc. <?php // Start the timer $startTime = microtime(true); $dbHost = 'localhost'; $dbUser = 'user'; $dbPass = 'pass'; $dbName = 'dbname'; $charset = 'utf8mb4'; $dsn = "mysql:host=$dbHost;dbname=$dbName;charset=$charset"; $options = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_EMULATE_PREPARES => false, ]; try { $pdo = new PDO($dsn, $dbUser, $dbPass, $options); } catch (\PDOException $e) { throw new \PDOException($e->getMessage(), (int)$e->getCode()); } try { $stmt = $pdo->query('SELECT server FROM servers'); // Modificati dupa cum aveti voi setata coloana cu ip:port $servers = $stmt->fetchAll(PDO::FETCH_COLUMN, 0); $jsonData = json_encode(array("servers" => $servers)); $url = 'https://gapi.pbcv.dev/get/multiple'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($jsonData) )); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'cURL error: ' . curl_error($ch); } /* else { //header('Content-Type: application/json'); echo $response; } */ curl_close($ch); } catch (\PDOException $e) { error_log('Select query error: ' . $e->getMessage()); } // End the timer and calculate the duration $endTime = microtime(true); $executionTime = $endTime - $startTime; echo "\nExecution time: " . $executionTime . " seconds";
  2. Daemon

    Tests Done

    Testele sunt gata, plugin-ul va fi mutat pe API-ul Games API (pbcv.dev) care a indeplinit conditiile noastre. Dupa ce termin cu optimizarile lui acesta va fi postat Open Source.
  3. Daemon

    Beta V1.1

    Au fost facute optimizari de performanta, vreau sa precizez ca serverele care au blocat sau limitat query-ul prin diferite metode acestea nu o sa functioneze. A fost creat si un demo pentru cei care nu intelegeau cum trebuie folosit /get pe care il puteti gasii tot pe pagina tabul #1 Games API (pbcv.dev) Au mai fost adaugate doua variabile care indica modul jocului cat si data cand a fost sincronizat ultimul update, exemplu: "updated": "09/03/2024, 19:33", "gameset": "counterstrike16" PS. Pentru aflarea numelui complet al jocului in functie de gameset este simplu folositi gapi.pbcv.dev/games aici este lista completa.
  4. Daemon

    Beta Tests

    Pluginul este in versiunea beta inca in teste dupa ce terminam tot de testat acesta va fi public.
  5. Daemon

    Beta V1

    API-ul a fost pornit si este in versiunea beta imbunatatiri vor fi aduse pe parcurs in functie de ce feedback primim de la voi.

×
×
  • Create New...