summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-07-16 13:22:13 +0100
committerAndrew Dolgov <[email protected]>2007-07-16 13:22:13 +0100
commitbf7fcde8d56640e63994df528fd59631a4f58946 (patch)
tree25efd79b9dc5834aa8d35c230900c8b9b2d3ca90 /functions.php
parentaf6f8bf241674e177a6ecc0eac77bb267aca3b94 (diff)
daemon: periodically create stampfile
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php13
1 files changed, 13 insertions, 0 deletions
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()";