return round($o, 1) . $u[$p];
}
+// Convert UTC timestamp to a datetime field
+function jirafeau_get_datetimefield($timestamp)
+{
+ $content = '<span class="datetime" data-datetime="' . strftime('%Y-%m-%d %H:%M', $timestamp) . '">'
+ . strftime('%Y-%m-%d %H:%M', $timestamp) . ' (GMT)</span>';
+ return $content;
+}
+
function jirafeau_clean_rm_link($link)
{
$p = s2p("$link");
/* Print link informations. */
echo '<tr>';
echo '<td>' .
- '<strong><a id="upload_link" href="/f.php?h='. htmlspecialchars($node) .'" title="' .
+ '<strong><a id="upload_link" href="' . JIRAFEAU_ABSPREFIX . 'f.php?h='. htmlspecialchars($node) .'" title="' .
t('Download page') . '">' . htmlspecialchars($l['file_name']) . '</a></strong>';
echo '</td>';
echo '<td>' . $l['mime_type'] . '</td>';
echo '<td>' . jirafeau_human_size($l['file_size']) . '</td>';
- echo '<td>' . ($l['time'] == -1 ? '' : strftime('%c', $l['time'])) .
- '</td>';
+ echo '<td>' . ($l['time'] == -1 ? '∞' : jirafeau_get_datetimefield($l['time'])) . '</td>';
echo '<td>';
if ($l['onetime'] == 'O') {
echo 'Y';
echo 'N';
}
echo '</td>';
- echo '<td>' . strftime('%c', $l['upload_date']) . '</td>';
+ echo '<td>' . jirafeau_get_datetimefield($l['upload_date']) . '</td>';
echo '<td>' . $l['ip'] . '</td>';
echo '<td>' .
'<form method="post">' .
if (!jirafeau_has_upload_password($cfg)) {
return false;
}
-
+
foreach ($cfg['upload_password'] as $p) {
if ($password == $p) {
return true;