Skip to content

Commit 57eaec7

Browse files
authored
Merge pull request #167 from AniLeo/master
rpcn: Use netplay database
2 parents c07253c + a3b2611 commit 57eaec7

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$games_json = "";
4+
$log_file = "";
5+
$api_url = "";
6+
$icons_json = "";
7+
$cache = "";
8+
9+
$db_host = "";
10+
$db_user = "";
11+
$db_pass = "";
12+
$db_name = "";
13+
$db_port = "";

public_html/rpcn.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
// Initialize RPCNStats class
66
$rpcn_stats = new RPCNStats($games_json, $log_file, $api_url, $icons_json, $cache);
77

8-
if (!@include_once("lib/compat/functions.php")){}
9-
$mysqli = get_database("compat");
8+
$mysqli = mysqli_connect($db_host, $db_user, $db_pass, $db_name, (int) $db_port);
109

1110
if ($mysqli && !$mysqli->connect_error)
1211
{

0 commit comments

Comments
 (0)