Browse Source

add trackers.json link

main
ghost 1 year ago
parent
commit
91d7bb50d1
  1. 4
      README.md
  2. 8
      src/public/node.php

4
README.md

@ -10,11 +10,11 @@ YGGtracker uses [Yggdrasil](https://github.com/yggdrasil-network/yggdrasil-go) I
#### Trackers #### Trackers
Initial trackers defined in [trackers.json](#). Open trackers defined in [trackers.json](https://github.com/YGGverse/YGGtracker/blob/main/src/config/trackers.json)
* Application appends trackers to all download links and magnet forms * Application appends trackers to all download links and magnet forms
* Trackers not in list will be cropped by the application filter * Trackers not in list will be cropped by the application filter
* Feel free to PR new yggdrasil tracker instance! * Feel free to PR new yggdrasil tracker!
#### Requirements #### Requirements

8
src/public/node.php

@ -181,6 +181,14 @@ else if (!$userId = $db->initUserId($_SERVER['REMOTE_ADDR'], USER_DEFAULT_APPROV
<tr> <tr>
<td class="padding-y-8 padding-b-8 border-bottom-default text-right" colspan="2"> <td class="padding-y-8 padding-b-8 border-bottom-default text-right" colspan="2">
<?php echo _('Trackers') ?> <?php echo _('Trackers') ?>
<a href="https://github.com/YGGverse/YGGtracker/blob/main/src/config/trackers.json" title="<?php echo _('Add') ?>">
<sub class="margin-l-4">
<svg class="width-13px" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>
</svg>
</sub>
</a>
</td> </td>
<?php foreach (json_decode(file_get_contents(__DIR__ . '/../config/trackers.json')) as $i => $tracker) { ?> <?php foreach (json_decode(file_get_contents(__DIR__ . '/../config/trackers.json')) as $i => $tracker) { ?>
<tr> <tr>

Loading…
Cancel
Save