aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-11 19:36:04 -0700
committerfriendica <info@friendica.com>2012-06-11 19:36:04 -0700
commit24e85c95b66dac2bd046ebec5c90bb7f2e2de0b8 (patch)
tree5a9ecdc8beb0c71fd49acb2181cc9110b0ad0d01 /include
parent75104416e07499316444041adfa51ba3c967fd59 (diff)
downloadvolse-hubzilla-24e85c95b66dac2bd046ebec5c90bb7f2e2de0b8.tar.gz
volse-hubzilla-24e85c95b66dac2bd046ebec5c90bb7f2e2de0b8.tar.bz2
volse-hubzilla-24e85c95b66dac2bd046ebec5c90bb7f2e2de0b8.zip
date based profile wall filter - backend
Diffstat (limited to 'include')
-rw-r--r--include/text.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index d4a4d5580..f408e0df6 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1541,3 +1541,16 @@ function protect_sprintf($s) {
return(str_replace('%','%%',$s));
}
+
+function is_a_date_arg($s) {
+ $i = intval($s);
+ if($i > 1900) {
+ $y = date('Y');
+ if($i <= $y+1 && strpos($s,'-') == 4) {
+ $m = intval(substr($s,5));
+ if($m > 0 && $m <= 12)
+ return true;
+ }
+ }
+ return false;
+}