<?php
class VerificationCode {
public static function in_Verfiout() {
global $espcms_command;
require_once( ESPCMS_FILE_ROOT . 'espcms_public/ESPCMS_VerificationCode.php' );
$seccode = rand(100000, 999999);
espcms_set_cookie('espcms_web_login_verification_code', espcms_encrypt($seccode, ESPCMS_ENCRYPT_CODE));
$code = new ESPCMS_VerificationCode();
$code->code = $seccode;
$code->type = 0;
$code->width = 70;
$code->height = 27;
$code->background = 30;
$code->adulterate = $espcms_command['SAFETY_VERIFICATION_SIDEWORD'];
$code->ttf = 0;
$code->angle = 0;
$code->color = 0;
$code->size = 2;
$code->shadow = 0;
$code->animator = 0;
$code->bgcolor = $espcms_command['SAFETY_VERIFICATION_BACKGROUND_COLOR'];
$code->fontcolor = $espcms_command['SAFETY_VERIFICATION_FONT_COLOR'];
$code->datapath = ESPCMS_FILE_ROOT . 'espcms_includes/verfont/';
$code->includepath = '';
$code->display();
}
}