日期:2013-04-07  浏览次数:20465 次

<?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;