| <?include("123robotspoiler.php");?> |
| <? if ($CAPTCHA_VALID!='') { echo "<span><strong>You are validated</strong></span>"; //add your business logic here }else { echo "<span><strong>You are NOT validated</strong></span>"; }>? |
| <jsp:include page="123robotspoiler.jsp"> |
| <% if (CAPTCHA_VALID) { out.println("<span><strong>You are validated</strong></span>"); //add your business logic here }else { out.println("<span><strong>You are NOT validated</strong></span>"); }%> |
import httplib, urllib def _check_captcha(self, req): answer = req.args.get('_captcha_answer') if answer != '' : params = urllib.urlencode({'_captcha_answer': answer, '_captcha_account': 'null', '_captcha_via_host': req.remote_addr }) headers = { 'Content-type': 'application/x-www-form-urlencoded', 'Destination': req.href} conn = httplib.HTTPConnection('www.mofokom.biz') conn.request('POST', '/captcha/robot-spoiler.html', params, headers) r1 = conn.getresponse() conn.close() if r1.status == 200: captcha_valid = 1 else: captcha_valid = 0 return captcha_valid |