| authen :: pluggableCaptcha :: Æ©Å丮¾ó Authen :: PlugGableCaptcha :: Tutorial CAPTCHA ½Ã½ºÅÛÀ» »ç¿ëÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ½À¼°¡ µé¾î ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
authen :: pluggableCaptcha :: Æ©Å丮¾ó ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Jonathan Vanasco
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~jvanasco/Authen-PluggableCaptcha-0.05/lib/Authen/PluggableCaptcha/Tutorial.pm
authen :: pluggableCaptcha :: Æ©Å丮¾ó ű×
authen :: pluggableCaptcha :: Æ©Å丮¾ó ¼³¸í
authen :: PlugGableCaptcha :: Tutorial CAPTCHA ½Ã½ºÅÛÀ» »ç¿ëÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ½À¼°¡ µé¾î ÀÖ½À´Ï´Ù. authen :: pluggableCaptcha :: Æ©Å丮¾ó CAPTCHA ½Ã½ºÅÛÀ» »ç¿ëÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ½À¼°¡ µé¾î ÀÖ½À´Ï´Ù. »õ Å°¸¦ ´©¸£½Ê½Ã¿À ... MY $ CAPTCHA = authen :: PlugGableCaptcha-> New (type => 'new', seed => 'a' , site_secret => 'z';); MY $ CAPTCHA_PUBLICKEY = $ CAPTCHA-> get_publickey (); ³» $ captcha = authen :: pluggableCaptcha-> new (type => ±âÁ¸ ', publicKey => $ captcha_publickey, seed =>'a ') site_secret => 'z'); $ as_string = $ captcha-> render (challency_class => authen :: pluggableCaptcha :: challency :: tepestring ', render_class => authen :: pluggableCaptcha :: render :: image :: imager', font_filename => '/ USR / X11R6 / lib / x11 / fonts / ttf / veramoit.ttf ', format =>'jpeg '); # Á÷Á¢ Á¦°øÇϰųª ¿±â (write, "> / path/to/dest.jpg")¸¦ ¾¹´Ï´Ù. Àμâ $ as_string ¾²±â; ´Ý±â (¾²±â); ³µ¶ È µÈ HTML Ç׸ñÀ» »ý¼ºÇϽʽÿÀ ... ´Ù½Ã »õ ¿ÀºêÁ§Æ®¸¦ »ý¼ºÇϽʽÿÀ. $ CAPTCHA = authen :: pluggablecaptcha-> new (type => ±âÁ¸ ', publicKey => $ captcha_publickey, seed =>'a ' , site_secret => 'z'); ³» $ as_string = $ captcha-> render (challency_class => authen :: pluggableCaptcha :: challency :: domath ', render_class =>'authen :: pluggablecaptcha :: render :: render_class => ' text :: html '); ÀÌÁ¦ Á÷Á¢ÀûÀ¸·Î Á¦°øÇϰųª ±ÛÀ» ¾µ ¼ö ÀÖ½À´Ï´Ù. authen :: pluggableCaptcha :: render :: text :: plain, ³µ¶ È°¡ ¾Æ´Õ´Ï´Ù (³ª»Ý! ³ª»Û!) ¿±â (¾²±â "> / path/to/dest.html"); Àμâ $ as_string ¾²±â; ´Ý±â (¾²±â); ¿ä±¸ »çÇ× : ¡¤ Perl.
authen :: pluggableCaptcha :: Æ©Å丮¾ó °ü·Ã ¼ÒÇÁÆ®¿þ¾î