<?php
/**
 *      [eminer] (C)20013-2099 eminer Inc.
 *      This is NOT a freeware, use is subject to license terms
 *      $Id: vdimgck.php  September 5, 2014, 8:28 am Hogan $
 */
require_once (dirname(__FILE__).'/common.inc.php'); require_once (eminerteconfig.'/inc_safe_config.php'); require_once (eminerteconfig.'/config.cache.inc.php'); $e22450232 = array( 'font_size' => 14, 'img_height' => $e4c96e1a0, 'word_type' => (int)$e682bcb07,  'img_width' => $ef2bbd932, 'use_boder' => TRUE, 'font_file' => dirname(__FILE__).'/data/fonts/ggbi.ttf', 'wordlist_file' => dirname(__FILE__).'/data/words/words.txt', 'filter_type' => 5); $e7f1ac989 = eminerDATA."/sessions/";  if(is_writeable($e7f1ac989) && is_readable($e7f1ac989)){ session_save_path($e7f1ac989); } if(!empty($e735717d5)) session_set_cookie_params(0,'/',$e735717d5); if (!e0ee34b0a($e22450232)) {  @session_start(); $_SESSION['securimage_code_value'] = strtolower('abcd'); $e73bebce3 = @imagecreatefromjpeg(dirname(__FILE__).'/data/vdcode.jpg'); header("Pragma:no-cache\r\n"); header("Cache-Control:no-cache\r\n"); header("Expires:0\r\n"); imagejpeg($e73bebce3); imagedestroy($e73bebce3); } function e0ee34b0a( $e22450232 = array() ) { @session_start();  $ec4db0b59 = isset($e22450232['font_size']) ? $e22450232['font_size'] : 14; $ea7d47620 = isset($e22450232['img_height']) ? $e22450232['img_height'] : 24; $e44386fa7 = isset($e22450232['img_width']) ? $e22450232['img_width'] : 68; $e412bec0b = isset($e22450232['font_file']) ? $e22450232['font_file'] : PATH_DATA.'/data/font/ggbi.ttf'; $e9c8612d8 = isset($e22450232['use_boder']) ? $e22450232['use_boder'] : TRUE; $e1ce97e38 = isset($e22450232['filter_type']) ? $e22450232['filter_type'] : 0;  $e73bebce3 = @imagecreate($e44386fa7, $ea7d47620); imagecolorallocate($e73bebce3, 255,255,255);  $e6f0446df[] = imagecolorallocate($e73bebce3, 0x15, 0x15, 0x15); $e6f0446df[] = imagecolorallocate($e73bebce3, 0x95, 0x1e, 0x04); $e6f0446df[] = imagecolorallocate($e73bebce3, 0x93, 0x14, 0xa9); $e6f0446df[] = imagecolorallocate($e73bebce3, 0x12, 0x81, 0x0a); $e6f0446df[] = imagecolorallocate($e73bebce3, 0x06, 0x3a, 0xd5);  $ecffd033a = ''; if ($e22450232['word_type'] != 3) { for($e865c0c0b=0; $e865c0c0b<4; $e865c0c0b++) { if ($e22450232['word_type'] == 1) { $e4a8a08f0 = chr(mt_rand(48, 57)); } else if($e22450232['word_type'] == 2) { $e4a8a08f0 = chr(mt_rand(65, 90)); if( $e4a8a08f0=='I' ) $e4a8a08f0 = 'P'; if( $e4a8a08f0=='O' ) $e4a8a08f0 = 'N'; } $ecffd033a .= $e4a8a08f0; } } else { $e0666f0ac = @fopen($e22450232['wordlist_file'], 'rb'); if (!$e0666f0ac) return FALSE; $e88eacf45 = filesize($e22450232['wordlist_file']); if ($e88eacf45 < 32) return FALSE; if ($e88eacf45 < 128) { $e2ffe4e77 = $e88eacf45; } else { $e2ffe4e77 = 128; } fseek($e0666f0ac, rand(0, $e88eacf45 - $e2ffe4e77), SEEK_SET); $e8d777f38 = fread($e0666f0ac, 128); fclose($e0666f0ac); $e8d777f38 = preg_replace("/\r?\n/", "\n", $e8d777f38); $eea2b2676 = strpos($e8d777f38, "\n", rand(0, 100)) + 1; $e7f021a14 = strpos($e8d777f38, "\n", $eea2b2676); $ecffd033a = strtolower(substr($e8d777f38, $eea2b2676, $e7f021a14 - $eea2b2676)); } $_SESSION['securimage_code_value'] = strtolower($ecffd033a); $e73fd05a6 = strlen($ecffd033a);  $e5e44ef88 = imagecolorallocate($e73bebce3, 0xda, 0xd9, 0xd1); for($e363b122c=3; $e363b122c<=$ea7d47620-3; $e363b122c=$e363b122c+3) { imageline($e73bebce3, 2, $e363b122c, $e44386fa7 - 2, $e363b122c, $e5e44ef88); }  $ef992a6ba = imagecolorallocate($e73bebce3, 0xda,0xd9,0xd1); for($e363b122c=2;$e363b122c<100;$e363b122c=$e363b122c+6) { imageline($e73bebce3, $e363b122c, 0, $e363b122c+8, $ea7d47620, $ef992a6ba); }  if( $e9c8612d8 && $e1ce97e38 == 0 ) { $e551bff15 = imagecolorallocate($e73bebce3, 0x9d, 0x9e, 0x96); imagerectangle($e73bebce3, 0, 0, $e44386fa7-1, $ea7d47620-1, $e551bff15); }  $e5ea61e1f = ''; for($e865c0c0b=0;$e865c0c0b<$e73fd05a6;$e865c0c0b++) { $e5360af35 = mt_rand(0, 1); $ecffd033a[$e865c0c0b] = strtoupper($ecffd033a[$e865c0c0b]); $e2e6070e8 = $e6f0446df[mt_rand(0,4)]; $ef0483fd0 = $e865c0c0b==0 ? 4 : $e865c0c0b*($ec4db0b59+2); $e4a8a08f0 = mt_rand(0, 15); @imagettftext($e73bebce3, $ec4db0b59, $e4a8a08f0, $ef0483fd0, 19, $e2e6070e8, $e412bec0b, $ecffd033a[$e865c0c0b]); $e5ea61e1f = $ecffd033a[$e865c0c0b]; }  switch($e1ce97e38) { case 1: imagefilter ( $e73bebce3, IMG_FILTER_NEGATE); break; case 2: imagefilter ( $e73bebce3, IMG_FILTER_EMBOSS); break; case 3: imagefilter ( $e73bebce3, IMG_FILTER_EDGEDETECT); break; default: break; } header("Pragma:no-cache\r\n"); header("Cache-Control:no-cache\r\n"); header("Expires:0\r\n");   if(function_exists("imagejpeg")) { header("content-type:image/jpeg\r\n"); imagejpeg($e73bebce3); } else { header("content-type:image/png\r\n"); imagepng($e73bebce3); } imagedestroy($e73bebce3); exit(); } 