@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
php
/
lib
/
Path :
Upload File :
New :
File
Dir
//homepage/v-mt/php/lib/captcha_lib.php
<?php # Movable Type (r) (C) 2001-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id: captcha_lib.php 1174 2008-01-08 21:02:50Z bchoate $ global $_captcha_providers; $provider = new MTUtilCaptcha(); $_captcha_providers[$provider->get_key()] = $provider; class BaseCaptchaProvider { // Abstract Method (needs override) function get_key() { } function get_name() { } function get_classname() { } function form_fields($blog_id) { } } class MTUtilCaptcha extends BaseCaptchaProvider { function get_key() { return 'mt_default'; } function get_name() { return 'Movable Type default'; } function get_classname() { return 'MTUtilCaptcha'; } function form_fields($blog_id) { global $mt; $token = ''; if (floatval(PHP_VERSION) >= 4.3) { $token = @sha1(rand(0, 65535)); } else { if (extension_loaded('mtoken')) { $token = bin2hex(mtoken(Mtoken_SHA1, $token_src)); } } if (strlen($token) == 0) { return ''; } $cgipath = $mt->config('CGIPath'); $commentscript = $mt->config('CommentScript'); $caption = $mt->translate('Captcha'); $description = $mt->translate('Type the characters you see in the picture above.'); $form = " <div class=\"label\"><label for=\"captcha_code\">$caption:</label></div> <div class=\"field\"> <input type=\"hidden\" name=\"token\" value=\"$token\" /> <img src=\"$cgipath$commentscript/captcha/$blog_id/$token\" width=\"150\" height=\"35\" /><br /> <input name=\"captcha_code\" id=\"captcha-code\" value=\"\" autocomplete=\"off\" /> <p>$description</p> </div>"; return $form; } } ?>