fixie
This commit is contained in:
parent
5e7930c327
commit
fdd4b6c646
2 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,7 @@ Create a file named ``test_secret.php`` in the ``libs`` folder:
|
|||
```
|
||||
<?php
|
||||
$db = new PDO('pgsql:host=YOUR_HOST;dbname=YOUR_DB', 'YOUR_USER', 'YOUR_PASS');
|
||||
$node_backend = 'https://your.api.com'; // from https://git.dervland.net/biglyderv/bigly-caret
|
||||
?>
|
||||
```
|
||||
Initialize the database from the ``scripts`` folder.
|
||||
|
|
|
@ -23,7 +23,8 @@ page_header();
|
|||
<?php
|
||||
function get_handler()
|
||||
{
|
||||
$api = file_get_contents("https://nbg.dervland.net/node/top?ref=" . $_GET['username']);
|
||||
global $node_backend;
|
||||
$api = file_get_contents($node_backend . "/top?ref=" . $_GET['username']);
|
||||
$pr = json_decode($api);
|
||||
|
||||
foreach ($pr as $usern => $rr) { ?>
|
||||
|
|
Loading…
Reference in a new issue