Miscellaneous functions
authorJoey Schulze <joey@infodrom.org>
Fri, 8 Aug 2008 13:51:10 +0000 (13:51 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 8 Aug 2008 13:51:10 +0000 (13:51 +0000)
lib/misc.inc [new file with mode: 0644]

diff --git a/lib/misc.inc b/lib/misc.inc
new file mode 100644 (file)
index 0000000..55cf877
--- /dev/null
@@ -0,0 +1,15 @@
+<?
+
+function ajax_check_email()
+{
+  global $POST;
+
+  include_once('extern/rfc822.php');
+
+  if (!empty($_POST['email']) && is_valid_email_address($_POST['email']))
+    return true;
+
+  return false;
+}
+
+?>
\ No newline at end of file