From d6e6f65a1cf8723a398689b549dd970121655053 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 19 Apr 2015 21:08:54 +0200 Subject: integrated libcaptcha and working on captcha in login form --- 3rdParty/captcha/unfont.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 3rdParty/captcha/unfont.c (limited to '3rdParty/captcha/unfont.c') diff --git a/3rdParty/captcha/unfont.c b/3rdParty/captcha/unfont.c new file mode 100644 index 0000000..724f7a8 --- /dev/null +++ b/3rdParty/captcha/unfont.c @@ -0,0 +1,58 @@ +#include +#include "font.h" + +void copy(int s, int e, int idx) { + int r,i; + for(i=s;is;i--) { + for(r=0;r<50;r++) { + if(im[r][i]!=' ') goto go; + } + } + + go: e=i+1; + + printf("static int8_t lt%u[]={",idx); + + for(r=0;r<50;r++) { + int l=0; + for(i=s;i