commit - a6962af1d4bb8effac2f6374d926627f246b4230
commit + 0ffa3d30b59b22cbb11a29c4d7d6cc403e4f9c3a
blob - 8e493e381bf84cd19829231fc097117b2ddfb4ca
blob + 16ca95142cd12d4a68adf8b7199c0d618db8e9a5
--- paste.pl
+++ paste.pl
my $current_time = time();
if ($expires > $current_time) {
- my $remaining_seconds = $expires - $current_time;
- my $remaining_days = int($remaining_seconds / (60 * 60 * 24));
- return "In $remaining_days days";
- } else {
- return "Expired";
+ my $seconds_remaining = $expires - $current_time;
+ my $days = int($seconds_remaining / (60 * 60 * 24));
+ my $hours = int(($seconds_remaining % (60 * 60 * 24)) / (60 * 60));
+ my $minutes = int(($seconds_remaining % (60 * 60)) / 60);
+ return sprintf("%d days, %02d:%02d", $days, $hours, $minutes);
}
+
+ return 'Expired';
}
__DATA__
@@ index.html.ep
+
<!DOCTYPE html>
<html>
<head>
.footer {
text-align: center;
margin-top: 50px;
+ background-color: #007bff;
+ color: #fff;
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ padding: 15px;
}
+ .footer a {
+ color: #ffc107; /* Set the link color to bright yellow */
+ }
</style>
</head>
<body>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>
</html>
-
@@ paste.html.ep
+
<!DOCTYPE html>
<html>
<head>
.footer {
text-align: center;
margin-top: 50px;
+ background-color: #007bff;
+ color: #fff;
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ padding: 15px;
}
+ .footer a {
+ color: #ffc107; /* Set the link color to bright yellow */
+ }
</style>
</head>
<body>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>
</html>
-
@@ invalid_content.html.ep
+
<!DOCTYPE html>
<html>
<head>
.footer {
text-align: center;
margin-top: 50px;
+ background-color: #007bff;
+ color: #fff;
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ padding: 15px;
}
+ .footer a {
+ color: #ffc107; /* Set the link color to bright yellow */
+ }
</style>
</head>
<body>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>
</html>
-
@@ invalid_link.html.ep
+
<!DOCTYPE html>
<html>
<head>
.footer {
text-align: center;
margin-top: 50px;
+ background-color: #007bff;
+ color: #fff;
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ padding: 15px;
}
+ .footer a {
+ color: #ffc107; /* Set the link color to bright yellow */
+ }
</style>
</head>
<body>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>
</html>
-
@@ not_found.html.ep
+
<!DOCTYPE html>
<html>
<head>
.footer {
text-align: center;
margin-top: 50px;
+ background-color: #007bff;
+ color: #fff;
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ padding: 15px;
}
+ .footer a {
+ color: #ffc107; /* Set the link color to bright yellow */
+ }
</style>
</head>
<body>
</ul>
</nav>
<div class="container">
- <h1>Invalid Link</h1>
+ <h1>Not Found</h1>
<div class="alert alert-danger" role="alert">
- The link you requested is invalid or has expired.
+ The page you requested was not found.
</div>
</div>
<footer class="footer">