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");
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;