forked from huaciwei-git2/HongYuDSC-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
captcha.php
22 lines (19 loc) · 642 Bytes
/
captcha.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
//zend by QQ:1527200768 鸿宇科技 禁止倒卖 一经发现停止任何服务
define('IN_ECS', true);
define('INIT_NO_SMARTY', true);
require dirname(__FILE__) . '/includes/init.php';
require ROOT_PATH . 'includes/cls_captcha.php';
$img = new captcha(ROOT_PATH . 'data/captcha/', $_CFG['captcha_width'], $_CFG['captcha_height']);
@ob_end_clean();
if (isset($_REQUEST['is_login'])) {
$img->session_word = 'captcha_login';
}
else if (isset($_REQUEST['is_discuss'])) {
$img->session_word = 'captcha_discuss';
}
else if (isset($_REQUEST['is_user_comment'])) {
$img->session_word = 'is_user_comment';
}
$img->generate_image();
?>