diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-10 16:48:25 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-10 16:48:25 -0400 |
| commit | 4f8e27dde3cfb7d82180d8dfbfcadec74c5b7967 (patch) | |
| tree | e4cb5b70dfedf99c447ff8050fb105cf17e5673b | |
| parent | 79d8e480021dc94804084e684daa706409dc2149 (diff) | |
| download | webpage-4f8e27dde3cfb7d82180d8dfbfcadec74c5b7967.tar.gz webpage-4f8e27dde3cfb7d82180d8dfbfcadec74c5b7967.tar.bz2 webpage-4f8e27dde3cfb7d82180d8dfbfcadec74c5b7967.zip | |
gave captcha generation absolute paths
| -rw-r--r-- | ws2a/gencaptcha.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ws2a/gencaptcha.c b/ws2a/gencaptcha.c index 001e87b..cdb669d 100644 --- a/ws2a/gencaptcha.c +++ b/ws2a/gencaptcha.c @@ -70,11 +70,11 @@ int main(){ int arcdis = (rand()%99)+1; char command[1024]; unsigned long rhash = hash(randwords); - sprintf(command,"convert -background white -fill black -pointsize 48 label:\"%s\" \"../ws2a/captchas/%lu.png\"",randwords,rhash); + sprintf(command,"convert -background white -fill black -pointsize 48 label:\"%s\" \"/home/git/wswebpage/ws2a/captchas/%lu.png\"",randwords,rhash); system(command); - sprintf(command,"convert \"../ws2a/captchas/%lu.png\" -distort Barrel \"0.0%d 0.0 0.0%d\" \"../ws2a/captchas/%lu.png\"",rhash,barraldis1,barraldis2,rhash); + sprintf(command,"convert \"/home/git/wswebpage/ws2a/captchas/%lu.png\" -distort Barrel \"0.0%d 0.0 0.0%d\" \"/home/git/wswebpage/ws2a/captchas/%lu.png\"",rhash,barraldis1,barraldis2,rhash); system(command); - sprintf(command,"convert \"../ws2a/captchas/%lu.png\" -virtual-pixel White -distort Arc %d \"../ws2a/captchas/%lu.png\"",rhash,arcdis,rhash); + sprintf(command,"convert \"/home/git/wswebpage/ws2a/captchas/%lu.png\" -virtual-pixel White -distort Arc %d \"/home/git/wswebpage/ws2a/captchas/%lu.png\"",rhash,arcdis,rhash); system(command); printf("%s%c%c\n","Content-Type:text/html;charset=iso-8859-1",13,10); |
