Browse Source

make link href absolute

yggdrasil-0.4.7
ghost 1 year ago
parent
commit
32129f12f6
  1. 18
      src/public/index.php
  2. 6
      src/public/peer.php

18
src/public/index.php

@ -176,27 +176,27 @@ $peers = $memory->getByMethodCallback(
<thead> <thead>
<tr> <tr>
<th class="text-left"> <th class="text-left">
<a href="index.php?sort=address&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>"> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=address&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>">
<?php echo _('Address') ?> <?php echo _('Address') ?>
</a> </a>
</th> </th>
<th class="text-center"> <th class="text-center">
<a href="index.php?sort=uptimeAvg&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>"> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=uptimeAvg&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>">
<?php echo _('Uptime,h') ?> <?php echo _('Uptime,h') ?>
</a> </a>
</th> </th>
<th class="text-center"> <th class="text-center">
<a href="index.php?sort=sentSum&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>"> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=sentSum&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>">
<?php echo _('Sent,Mb') ?> <?php echo _('Sent,Mb') ?>
</a> </a>
</th> </th>
<th class="text-center"> <th class="text-center">
<a href="index.php?sort=receivedSum&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>"> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=receivedSum&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>">
<?php echo _('Received,Mb') ?> <?php echo _('Received,Mb') ?>
</a> </a>
</th> </th>
<th class="text-center"> <th class="text-center">
<a href="index.php?sort=timeOnline&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>"> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=timeOnline&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>">
<?php echo _('Online') ?> <?php echo _('Online') ?>
</a> </a>
</th> </th>
@ -226,10 +226,10 @@ $peers = $memory->getByMethodCallback(
<tr> <tr>
<td colspan="5" class="text-left"> <td colspan="5" class="text-left">
<?php if ($requestPage > 1) { ?> <?php if ($requestPage > 1) { ?>
<a href="index.php?sort=<?php echo $requestSort ?>&page=<?php echo $requestPage - 1 ?>"><?php echo _('&larr;') ?></a> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=<?php echo $requestSort ?>&page=<?php echo $requestPage - 1 ?>"><?php echo _('&larr;') ?></a>
<?php } ?> <?php } ?>
<?php echo sprintf(_('page %s'), $requestPage) ?> <?php echo sprintf(_('page %s'), $requestPage) ?>
<a href="index.php?sort=<?php echo $requestSort ?>&page=<?php echo $requestPage + 1 ?>"><?php echo _('&rarr;') ?></a> <a href="<?php echo WEBSITE_URL ?>/index.php?sort=<?php echo $requestSort ?>&page=<?php echo $requestPage + 1 ?>"><?php echo _('&rarr;') ?></a>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
@ -306,9 +306,9 @@ $peers = $memory->getByMethodCallback(
</div> </div>
<h2> <h2>
<?php if ($requestCalendar == 'peers') { ?> <?php if ($requestCalendar == 'peers') { ?>
<?php echo _('Peers') ?> | <a href="index.php?calendar=traffic"><?php echo _('Traffic') ?></a> <?php echo _('Peers') ?> | <a href="<?php echo WEBSITE_URL ?>/index.php?calendar=traffic"><?php echo _('Traffic') ?></a>
<?php } else { ?> <?php } else { ?>
<a href="index.php?calendar=peers"><?php echo _('Peers') ?></a> | <?php echo _('Traffic') ?> <a href="<?php echo WEBSITE_URL ?>/index.php?calendar=peers"><?php echo _('Peers') ?></a> | <?php echo _('Traffic') ?>
<?php } ?> <?php } ?>
<div class="float-right"> <div class="float-right">
<?php echo sprintf(_('%s - %s'), date('Y.m.d', strtotime(sprintf('%s-%s-%s 00:00', date('Y', $requestTime), date('n', $requestTime), 1), $requestTime)), <?php echo sprintf(_('%s - %s'), date('Y.m.d', strtotime(sprintf('%s-%s-%s 00:00', date('Y', $requestTime), date('n', $requestTime), 1), $requestTime)),

6
src/public/peer.php

@ -145,7 +145,7 @@ $peerInfo = $memory->getByMethodCallback($db, 'getPeerInfo', [$requestPeerId]);
<thead> <thead>
<tr> <tr>
<th class="text-left"> <th class="text-left">
<a href="?peerId=<?php echo $requestPeerId ?>&sort=peerConnection.timeAdded&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>"> <a href="<?php echo WEBSITE_URL ?>/peer.php?peerId=<?php echo $requestPeerId ?>&sort=peerConnection.timeAdded&order=<?php echo $requestOrder == 'DESC' ? 'ASC' : 'DESC' ?>">
<?php echo _('Time') ?> <?php echo _('Time') ?>
</a> </a>
</th> </th>
@ -183,10 +183,10 @@ $peerInfo = $memory->getByMethodCallback($db, 'getPeerInfo', [$requestPeerId]);
<tr> <tr>
<td colspan="5" class="text-left"> <td colspan="5" class="text-left">
<?php if ($requestPage > 1) { ?> <?php if ($requestPage > 1) { ?>
<a href="?peerId=<?php echo $requestPeerId ?>&sort=<?php echo $requestSort ?>&page=<?php echo $requestPage - 1 ?>"><?php echo _('&larr;') ?></a> <a href="<?php echo WEBSITE_URL ?>/peer.php?peerId=<?php echo $requestPeerId ?>&sort=<?php echo $requestSort ?>&page=<?php echo $requestPage - 1 ?>"><?php echo _('&larr;') ?></a>
<?php } ?> <?php } ?>
<?php echo sprintf(_('page %s'), $requestPage) ?> <?php echo sprintf(_('page %s'), $requestPage) ?>
<a href="?peerId=<?php echo $requestPeerId ?>&sort=<?php echo $requestSort ?>&page=<?php echo $requestPage + 1 ?>"><?php echo _('&rarr;') ?></a> <a href="<?php echo WEBSITE_URL ?>/peer.php?peerId=<?php echo $requestPeerId ?>&sort=<?php echo $requestSort ?>&page=<?php echo $requestPage + 1 ?>"><?php echo _('&rarr;') ?></a>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>

Loading…
Cancel
Save