www.gusucode.com > baigo CMS PHP开源网站管理系统 v1.2.2源码程序 > baigocms_v1.2.2/bg_core/control/admin/ajax/seccode.class.php
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if(!defined("IN_BAIGO")) { exit("Access Denied"); } class AJAX_SECCODE { function __construct() { //构造函数 $this->obj_base = $GLOBALS["obj_base"]; //获取界面类型 $this->config = $this->obj_base->config; $this->alert = include_once(BG_PATH_LANG . $this->config["lang"] . "/alert.php"); //载入返回代码 } /** * ajax_check function. * * @access public * @return void */ function ajax_check() { $seccode = fn_getSafe(fn_get("seccode"), "txt", ""); if (strtolower($seccode) == fn_session("seccode")) { $_str_alert = "ok"; } else { $_str_alert = $this->alert["x030205"]; } $arr_re = array( "re" => $_str_alert ); exit(json_encode($arr_re)); } }