* 作者:Earclink E-mail:sv@earclink.com QQ:6326420 * http://www.ecisp.cn 官方网址 * http://www.easysitepm.com 系统演示网址 */ error_reporting(0); ini_set("magic_quotes_runtime", 0); ini_set('memory_limit', '640M'); define('adminfile', 'public'); define('admin_ClassURL', 'http://' . $_SERVER['HTTP_HOST'] . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))); define('admin_URL', str_replace(adminfile, '', admin_ClassURL) . '/'); define('admin_ROOT', substr(__FILE__, 0, strrpos(__FILE__, adminfile))); define('admin_FROM', true); define('admin_AGENT', $_SERVER['HTTP_USER_AGENT']); require_once admin_ROOT . 'datacache/command.php'; require_once admin_ROOT . 'public/class_function.php'; $fun = new functioninc(); $seccode = rand(100000, 999999); $secode = $fun->accept('secode', 'R'); if ($secode == 'ecisp_seccode') { $secode_name = 'ecisp_seccode'; } else { $secode_name = 'ecisp_home_seccode'; } $fun->setcookie($secode_name, $fun->eccode($seccode . "\t" . time(), 'ENCODE')); @header("Expires: -1"); @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE); @header("Pragma: no-cache"); include_once admin_ROOT . 'public/class_seccode.php'; $code = new seccode(); $code->code = $seccode; $code->type = 0;
* 作者:Earclink E-mail:sv@earclink.com QQ:6326420 * http://www.ecisp.cn 官方网址 * http://www.easysitepm.com 系统演示网址 * 作用:验证码文件 */ error_reporting(0); set_magic_quotes_runtime(0); ini_set('memory_limit', '640M'); define('adminfile', 'public'); define('admin_ClassURL', 'http://' . $_SERVER['HTTP_HOST'] . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))); define('admin_URL', str_replace(adminfile, '', admin_ClassURL) . '/'); define('admin_ROOT', substr(__FILE__, 0, strrpos(__FILE__, adminfile))); define('admin_FROM', true); define('admin_AGENT', $_SERVER['HTTP_USER_AGENT']); require_once admin_ROOT . 'public/class_function.php'; $fun = new functioninc(); require admin_ROOT . 'public/barcode/Color.php'; require admin_ROOT . 'public/barcode/Barcode.php'; require admin_ROOT . 'public/barcode/Drawing.php'; require admin_ROOT . 'public/barcode/Font.php'; require admin_ROOT . 'public/barcode/code128.barcode.php'; $fontname = admin_ROOT . 'public/fonts/en/FetteSteinschrif.ttf'; $text = $fun->accept('text', 'R'); $o = $fun->accept('o', 'R'); $o = empty($o) ? 1 : $o; $t = $fun->accept('codeheight', 'R'); $t = empty($t) ? 35 : $t; $r = $fun->accept('codesize', 'R'); $r = empty($r) ? 1 : $r; $f1 = $fun->accept('f1', 'R'); $f1 = empty($f1) ? $fontname : $f1;