function sdatetime($str){
$str=ereg_replace("-","/",$str);
$str=substr($str,5,strlen($str)-8);
return $str;
}
function reAnum($sid){ //罴莱绞计
$DROOT=getenv('DOCUMENT_ROOT');
include("sql.php3");
$db=MySQL(和PHP搭配之最佳组合)_connect($sql['host'], $sql['user'] , $sql['passwd']);
$qsql="SELECT id from bbs_docs where sid='$sid'";
$rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql);
return MySQL(和PHP搭配之最佳组合)_num_rows($rs);
}
function pagebar($pages) {
global $pgno;
//global $pages;
global $PHP_SELF;
global $aid;
global $OPEN_LIST;
echo "