summaryrefslogtreecommitdiffstats
path: root/captcha.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-12-09 10:31:37 +0900
committerFreeArtMan <dos21h@gmail.com>2014-12-09 10:31:37 +0900
commita57c6bed8f6ab7d0f4355190c0cff7cd913da6a0 (patch)
treec8b85b9de364cb63678d05625bdff6a2cf12ecda /captcha.c
parentdc4bbe5366d6c733f9f77b7c9fee0cbba3e0d92b (diff)
downloadmicrobbs-a57c6bed8f6ab7d0f4355190c0cff7cd913da6a0.tar.gz
microbbs-a57c6bed8f6ab7d0f4355190c0cff7cd913da6a0.zip
New planned functionality. Menuconfig support. Simple captcha.
Diffstat (limited to 'captcha.c')
-rw-r--r--captcha.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/captcha.c b/captcha.c
new file mode 100644
index 0000000..ad614be
--- /dev/null
+++ b/captcha.c
@@ -0,0 +1,16 @@
+#include "captcha.h"
+
+#ifdef CONFIG_CAPTCHA
+
+int captcha_test1()
+{
+ int ret = 0;
+ char s[2];
+ printf("Are you bot?(y/n):\n");
+ fgets(s,2,stdin);
+ if ( s[0] == 'n' || s[0] == 'N')
+ ret = 1;
+ return ret;
+}
+
+#endif \ No newline at end of file