|
|
@ -203,81 +203,83 @@ $placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|
<main> |
|
|
|
<main> |
|
|
|
<?php if ($hostPage = $db->getFoundHostPage($hp)) { ?> |
|
|
|
<?php if ($hostPage = $db->getHostPage($hp)) { ?> |
|
|
|
<div> |
|
|
|
<?php if ($host = $db->getHost($hostPage->hostId)) { ?> |
|
|
|
<?php if ($hostPageDescription = $db->getLastPageDescription($hp)) { ?> |
|
|
|
<div> |
|
|
|
<?php if (!empty($hostPageDescription->title)) { ?> |
|
|
|
<?php if ($hostPageDescription = $db->getLastPageDescription($hp)) { ?> |
|
|
|
<h2><?php echo htmlentities($hostPageDescription->title) ?></h2> |
|
|
|
<?php if (!empty($hostPageDescription->title)) { ?> |
|
|
|
|
|
|
|
<h2><?php echo htmlentities($hostPageDescription->title) ?></h2> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if (!empty($hostPageDescription->description)) { ?> |
|
|
|
|
|
|
|
<span><?php echo htmlentities($hostPageDescription->description) ?></span> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if (!empty($hostPageDescription->keywords)) { ?> |
|
|
|
|
|
|
|
<span><?php echo htmlentities($hostPageDescription->keywords) ?></span> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php if (!empty($hostPageDescription->description)) { ?> |
|
|
|
<a href="<?php echo urldecode($host->url . $hostPage->uri) ?>"> |
|
|
|
<span><?php echo htmlentities($hostPageDescription->description) ?></span> |
|
|
|
<img src="<?php echo WEBSITE_DOMAIN; ?>/file.php?type=identicon&query=<?php echo urlencode($host->name) ?>" alt="identicon" width="16" height="16" class="icon" /> |
|
|
|
|
|
|
|
<?php echo htmlentities(urldecode($host->url . $hostPage->uri)) ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<?php if (!empty($hostPage->mime)) { ?> |
|
|
|
|
|
|
|
<p><?php echo _('MIME') ?></p> |
|
|
|
|
|
|
|
<p><?php echo $hostPage->mime ?></p> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php if (!empty($hostPageDescription->keywords)) { ?> |
|
|
|
<?php if (!empty($hostPage->size)) { ?> |
|
|
|
<span><?php echo htmlentities($hostPageDescription->keywords) ?></span> |
|
|
|
<p><?php echo _('Size') ?></p> |
|
|
|
|
|
|
|
<p><?php echo $hostPage->size ?></p> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php if (!empty($hostPage->timeAdded)) { ?> |
|
|
|
<a href="<?php echo $hostPage->hostPageURL ?>"> |
|
|
|
<p><?php echo _('Time added') ?></p> |
|
|
|
<img src="<?php echo WEBSITE_DOMAIN; ?>/file.php?type=identicon&query=<?php echo urlencode($hostPage->name) ?>" alt="identicon" width="16" height="16" class="icon" /> |
|
|
|
<p><?php echo date('c', $hostPage->timeAdded) ?></p> |
|
|
|
<?php echo htmlentities(urldecode($hostPage->hostURL) . urldecode($hostPage->uri)) ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<?php if (!empty($hostPage->mime)) { ?> |
|
|
|
|
|
|
|
<p><?php echo _('MIME') ?></p> |
|
|
|
|
|
|
|
<p><?php echo $hostPage->mime ?></p> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if (!empty($hostPage->size)) { ?> |
|
|
|
|
|
|
|
<p><?php echo _('Size') ?></p> |
|
|
|
|
|
|
|
<p><?php echo $hostPage->size ?></p> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if (!empty($hostPage->timeAdded)) { ?> |
|
|
|
|
|
|
|
<p><?php echo _('Time added') ?></p> |
|
|
|
|
|
|
|
<p><?php echo date('c', $hostPage->timeAdded) ?></p> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php if (!empty($hostPage->timeUpdated)) { ?> |
|
|
|
|
|
|
|
<p><?php echo _('Time updated') ?></p> |
|
|
|
|
|
|
|
<p><?php echo date('c', $hostPage->timeUpdated) ?></p> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php $totalHostPageSnaps = $db->getTotalHostPageSnaps($hp); ?> |
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
|
|
<?php echo $totalHostPageSnaps ? Filter::plural($totalHostPageSnaps, [sprintf(_('%s snap'), $totalHostPageSnaps), |
|
|
|
|
|
|
|
sprintf(_('%s snaps'), $totalHostPageSnaps), |
|
|
|
|
|
|
|
sprintf(_('%s snaps'), $totalHostPageSnaps)]) : false ?> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<?php if ($totalHostPageSnaps) { ?> |
|
|
|
|
|
|
|
<?php foreach ($db->getHostPageSnaps($hp) as $hostPageSnap) { ?> |
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
|
|
<a href="<?php echo WEBSITE_DOMAIN . '/file.php?type=snap&hps=' . $hostPageSnap->hostPageSnapId ?>"> |
|
|
|
|
|
|
|
<?php echo date('c', $hostPageSnap->timeAdded) ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php if (!empty($hostPage->timeUpdated)) { ?> |
|
|
|
<?php $totalHostPageIdSources = $db->getTotalHostPagesToHostPageByHostPageIdTarget($hp); ?> |
|
|
|
<p><?php echo _('Time updated') ?></p> |
|
|
|
<p> |
|
|
|
<p><?php echo date('c', $hostPage->timeUpdated) ?></p> |
|
|
|
<?php echo $totalHostPageIdSources ? Filter::plural($totalHostPageIdSources, [sprintf(_('%s referrer'), $totalHostPageIdSources), |
|
|
|
<?php } ?> |
|
|
|
sprintf(_('%s referrers'), $totalHostPageIdSources), |
|
|
|
<?php $totalHostPageSnaps = $db->getTotalHostPageSnaps($hp); ?> |
|
|
|
sprintf(_('%s referrers'), $totalHostPageIdSources)]) : false ?> |
|
|
|
<p> |
|
|
|
</p> |
|
|
|
<?php echo $totalHostPageSnaps ? Filter::plural($totalHostPageSnaps, [sprintf(_('%s snap'), $totalHostPageSnaps), |
|
|
|
<?php if ($totalHostPageIdSources) { ?> |
|
|
|
sprintf(_('%s snaps'), $totalHostPageSnaps), |
|
|
|
<?php foreach ($db->getHostPagesToHostPageByHostPageIdTarget($hp) as $hostPageIdSource) { ?> |
|
|
|
sprintf(_('%s snaps'), $totalHostPageSnaps)]) : false ?> |
|
|
|
<?php if ($hostPage = $db->getFoundHostPage($hostPageIdSource->hostPageIdSource)) { ?> |
|
|
|
</p> |
|
|
|
<?php $hostPageDescription = $db->getLastPageDescription($hostPageIdSource->hostPageIdSource); ?> |
|
|
|
<?php if ($totalHostPageSnaps) { ?> |
|
|
|
|
|
|
|
<?php foreach ($db->getHostPageSnaps($hp) as $hostPageSnap) { ?> |
|
|
|
<p> |
|
|
|
<p> |
|
|
|
<a href="<?php echo $hostPage->hostPageURL ?>" |
|
|
|
<a href="<?php echo WEBSITE_DOMAIN . '/file.php?type=snap&hps=' . $hostPageSnap->hostPageSnapId ?>"> |
|
|
|
title="<?php echo (!empty($hostPageDescription->title) ? $hostPageDescription->title : (!empty($hostPageDescription->description) ? $hostPageDescription->description : false)) ?>"> |
|
|
|
<?php echo date('c', $hostPageSnap->timeAdded) ?> |
|
|
|
<img src="<?php echo WEBSITE_DOMAIN; ?>/file.php?type=identicon&query=<?php echo urlencode($hostPage->name) ?>" alt="identicon" width="16" height="16" class="icon" /> |
|
|
|
|
|
|
|
<?php echo htmlentities(urldecode($hostPage->hostURL) . (mb_strlen(urldecode($hostPage->uri)) > 32 ? '...' . mb_substr(urldecode($hostPage->uri), -32) : urldecode($hostPage->uri))) ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
<a href="<?php echo WEBSITE_DOMAIN; ?>/explore.php?hp=<?php echo $hostPage->hostPageId ?>"> |
|
|
|
|
|
|
|
<?php echo _('explore'); ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|
<?php $totalHostPageIdSources = $db->getTotalHostPagesToHostPageByHostPageIdTarget($hp); ?> |
|
|
|
</div> |
|
|
|
<p> |
|
|
|
|
|
|
|
<?php echo $totalHostPageIdSources ? Filter::plural($totalHostPageIdSources, [sprintf(_('%s referrer'), $totalHostPageIdSources), |
|
|
|
|
|
|
|
sprintf(_('%s referrers'), $totalHostPageIdSources), |
|
|
|
|
|
|
|
sprintf(_('%s referrers'), $totalHostPageIdSources)]) : false ?> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<?php if ($totalHostPageIdSources) { ?> |
|
|
|
|
|
|
|
<?php foreach ($db->getHostPagesToHostPageByHostPageIdTarget($hp) as $hostPageIdSource) { ?> |
|
|
|
|
|
|
|
<?php if ($hostPage = $db->getHostPage($hostPageIdSource->hostPageIdSource)) { ?> |
|
|
|
|
|
|
|
<?php if ($host = $db->getHost($hostPage->hostId)) { ?> |
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
|
|
<a href="<?php echo urldecode($host->url . $hostPage->uri) ?>"> |
|
|
|
|
|
|
|
<img src="<?php echo WEBSITE_DOMAIN; ?>/file.php?type=identicon&query=<?php echo urlencode($host->name) ?>" alt="identicon" width="16" height="16" class="icon" /> |
|
|
|
|
|
|
|
<?php echo htmlentities(urldecode($host->url) . (mb_strlen(urldecode($hostPage->uri)) > 28 ? '...' . mb_substr(urldecode($hostPage->uri), -28) : urldecode($hostPage->uri))) ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
<a href="<?php echo WEBSITE_DOMAIN; ?>/explore.php?hp=<?php echo $hostPage->hostPageId ?>"> |
|
|
|
|
|
|
|
<?php echo _('explore'); ?> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<?php } ?> |
|
|
|
<?php } else { ?> |
|
|
|
<?php } else { ?> |
|
|
|
<div style="text-align:center"> |
|
|
|
<div style="text-align:center"> |
|
|
|
<span><?php echo _('Not found') ?></span> |
|
|
|
<span><?php echo _('Not found') ?></span> |
|
|
|