Update bbs_func.php