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_connect($sql['host'], $sql['user'] , $sql['passwd']); $qsql="SELECT id from bbs_docs where sid='$sid'"; $rs=mysql_db_query($sql['db'],$qsql); return mysql_num_rows($rs); }