1
Discussion & Troubleshooting / How do I remove 10 day viewing limit on postcard?
« on: July 24, 2012, 08:12:11 PM »
It would be great to make no limit on how many days to view the postcard. I use 4images Gallery for a stock site. So if someone sends a postcard but then wants to look at it a month, they no longer can. I found this code:
if ($action == "sendcard") {
$expiry = time() - 60 * 60 * 24 * POSTCARD_EXPIRY;
$sql = "DELETE FROM ".POSTCARDS_TABLE."
WHERE (postcard_date < $expiry)";
$site_db->query($sql);
and this code
if ($action == "showcard") {
$expiry = time() - 60 * 60 * 24 * POSTCARD_EXPIRY;
$sql = "DELETE FROM ".POSTCARDS_TABLE."
WHERE (postcard_date < $expiry)";
$site_db->query($sql);
What do I change to make the time unlimited for viewing?
if ($action == "sendcard") {
$expiry = time() - 60 * 60 * 24 * POSTCARD_EXPIRY;
$sql = "DELETE FROM ".POSTCARDS_TABLE."
WHERE (postcard_date < $expiry)";
$site_db->query($sql);
and this code
if ($action == "showcard") {
$expiry = time() - 60 * 60 * 24 * POSTCARD_EXPIRY;
$sql = "DELETE FROM ".POSTCARDS_TABLE."
WHERE (postcard_date < $expiry)";
$site_db->query($sql);
What do I change to make the time unlimited for viewing?