summaryrefslogtreecommitdiff
path: root/modules/backend-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-12-13 12:57:53 +0100
committerAndrew Dolgov <[email protected]>2008-12-13 12:57:53 +0100
commitd0da85c27c2a97173dd997f7f2a29f09556698ed (patch)
tree839608b369dc33c8b84bc15fecae1aa0447b614c /modules/backend-rpc.php
parent75fa1e31266b55ea502876dae9b14474bd58bf9a (diff)
preliminary UI work on date checking filter (refs #225)
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r--modules/backend-rpc.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 2b3fe8726..75e4f946e 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -429,6 +429,24 @@
return;
}
+ if ($subop == "checkDate") {
+
+ $date = db_escape_string($_REQUEST["date"]);
+ $date_parsed = strtotime($date);
+
+ print "<rpc-reply>";
+
+ if ($date_parsed) {
+ print "<result>1</result>";
+ } else {
+ print "<result>0</result>";
+ }
+
+ print "</rpc-reply>";
+
+ return;
+ }
+
print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>";
}
?>