www/ss: Don't try to get snapshot timestamp if it don't exist
SVN revision: 84522
This commit is contained in:
parent
a31d0addb7
commit
80672095ec
|
@ -21,7 +21,8 @@
|
||||||
$auth_file = $_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img;
|
$auth_file = $_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img;
|
||||||
$auth_expire = 60 * 60; // You have one hour to remove your content
|
$auth_expire = 60 * 60; // You have one hour to remove your content
|
||||||
|
|
||||||
if (time() - filemtime($auth_file) < $auth_expire)
|
if (file_exists($auth_file) &&
|
||||||
|
time() - filemtime($auth_file) < $auth_expire)
|
||||||
{
|
{
|
||||||
$auth = md5($img . get_ip());
|
$auth = md5($img . get_ip());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue