<?php
//
// +----------------------------------------------------------------------+
// | whxbb 基类 |
// +----------------------------------------------------------------------+
// | copyright (c) 2001 netfish software |
// | |
// | author: whxbb(whxbb@21cn.com) |
// +----------------------------------------------------------------------+
//
// $id: whxbb.class.php,v 0.1 2001/8/4 12:53:33 yf exp $
//
// 禁止直接访问该页面
if (basename($http_server_vars['php_self']) == "whxbb.class.php") {
header("http/1.0 404 not found");
}
// 调试标志,为1时,系统运行在调试状态
define('whxbb_debug_flag', 0);
// 出错代码的预定义
// 忽略错误
define('whxbb_error_ignore', 1);
// 在页面显示错误
define('whxbb_error_echo' , 2);
// 弹出错误警告并显示错误
define('whxbb_error_alert' , 4);
// 停止程序的运行
define('whxbb_error_die' , 8);
// 返回上页
define('whxbb_error_return', 16);
// 跳到指定页
define('whxbb_error_goto', 32);
/**
* purpose
* 基类, 在该类中封装了一些常用的方法
*
* @author : whxbb(whxbb@21cn.com)
* @version : 0.1
* @date : 2001/12/4
*/
class whxbb
{
/**
* 调试标志
* @access protected
*/
var $_debug;
/**
* 数据库连接标志
* @access protect
*/
var $_conn;
| 对此文章发表了评论 |
