summaryrefslogtreecommitdiffstats
path: root/www/index.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-01-12 23:15:09 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-01-12 23:15:09 +0100
commit3d03649c1f3c572c39eee1a2453bc69c40decfa9 (patch)
tree7760df657a056c0059463c9011ec4c5a5f42b154 /www/index.php
parentattempts to fix ping flood and sybil attacks (diff)
downloadtravnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.tar
travnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.tar.gz
travnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.tar.bz2
travnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.tar.lz
travnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.tar.xz
travnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.tar.zst
travnik-3d03649c1f3c572c39eee1a2453bc69c40decfa9.zip
Diffstat (limited to 'www/index.php')
-rw-r--r--www/index.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/www/index.php b/www/index.php
index bc55638..ac4bb50 100644
--- a/www/index.php
+++ b/www/index.php
@@ -33,7 +33,7 @@ table, td, tr, th {
<table>
<tr>
<th>pridobljeno</th>
- <td><?= date("d. m. Y. H:i:s", $t->getCreationDate()) ?></td>
+ <td><?= date("d. m. Y H:i:s", $t->getCreationDate()) ?></td>
<tr>
<th>tip</th>
<td><?= $t->getProtocol() ?></td>
@@ -59,6 +59,14 @@ table, td, tr, th {
<th>odjemalec vira</th>
<td><?= htmlspecialchars($t->getRootData()["source"]["v"]) ?></td>
<?php } ?>
+ <tr>
+ <th>velikost koščka</th>
+ <td><?= $t->getPieceLength()/1024; ?> kB</td>
+<?php if (!empty($t->getSource())) { ?>
+ <tr>
+ <th>izvor</th>
+ <td><?= htmlspecialchars($t->getSource()) ?></td>
+<?php } ?>
</table>
<?php
function p ($k, $v) {
@@ -76,3 +84,6 @@ foreach ($t->getFileTree() as $k => $v)
p($k, $v);
echo "</ul>";
?>
+<?php if (preg_match("/Development Server/", $_SERVER["SERVER_SOFTWARE"])) { ?>
+<h1 style=color:red>interna stran, dostop prepovedan</h1>
+<?php } ?>