From bf7fcde8d56640e63994df528fd59631a4f58946 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 16 Jul 2007 13:22:13 +0100 Subject: daemon: periodically create stampfile --- functions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index b00c6b0dd..fff1b9151 100644 --- a/functions.php +++ b/functions.php @@ -1505,6 +1505,19 @@ } } + function make_stampfile($filename) { + $fp = fopen($filename, "w"); + + if ($fp) { + fwrite($fp, time() . "\n"); + fclose($fp); + return true; + } else { + return false; + } + } + + function sql_random_function() { if (DB_TYPE == "mysql") { return "RAND()"; -- cgit v1.2.3