www.gusucode.com > baigo CMS PHP开源网站管理系统 v1.2.2源码程序 > baigocms_v1.2.2/bg_sso/core/module/misc/ctl/seccode.php

    <?php
/*-----------------------------------------------------------------
!!!!警告!!!!
以下为系统文件,请勿修改
-----------------------------------------------------------------*/

//不能非法包含或直接执行
if(!defined("IN_BAIGO")) {
    exit("Access Denied");
}

include_once(BG_PATH_FUNC . "init.func.php"); //初始化
$arr_set = array(
    "ssin"      => true, //启用会话
    "header"    => "Content-type: image/png", //header
    "db"        => true, //连接数据库
    "type"      => "ajax", //模块类型
);
fn_init($arr_set);

include_once(BG_PATH_CONTROL . "misc/ctl/seccode.class.php"); //载入验证码类

$ctl_seccode = new CONTROL_SECCODE(); //初始化验证对象

switch ($GLOBALS["act_get"]) {
    case "make":
        $ctl_seccode->ctl_make(); //生成验证码
    break;
}