Xiuno BBS棣栭〉鍥炲鍒楄〃 30澶╁墠鐨勫笘瀛愬洖澶嶄笉缃墠璁剧疆锛屾壘鍒版枃浠禱model\post.func.php
鎵撅細// todo: 濡傛灉鏄佸笘锛屼笉鏇存柊 lastpid
鏌ユ壘浠ヤ笅浠g爜锛
thread__update($tid, array('posts+'=>1, 'lastpid'=>$pid, 'lastuid'=>$uid, 'last_date'=>$time));
淇敼鎴愪互涓嬩唬鐮侊細
// 澧炲姞30澶╁悗鐨勪富棰 涓嶆洿鏂 lastpid $create = db_find_one('thread', array('tid'=>$tid)); $create_date = $create['create_date'] + (30 * 24 * 60 * 60); if($create_date > $time){ thread__update($tid, array('posts+'=>1, 'lastpid'=>$pid, 'lastuid'=>$uid, 'last_date'=>$time)); }else{ thread__update($tid, array('posts+'=>1, 'lastuid'=>$uid, 'last_date'=>$time)); } // 澧炲姞30澶╁悗鐨勪富棰 涓嶆洿鏂 lastpid
濡傛灉鎯虫敼鎴愬叾浠栨棩鏈燂紝鍙互灏30 * 24 * 60 * 60 鐨30鏀规垚浣犳兂瑕佺殑澶╂暟锛屾敼鎴7灏辨槸涓鍛ㄦ椂闂村唴鐨勫笘瀛愬洖澶嶄細缃墠銆
鏆傛棤鍥炲锛屽揩鏉ユ姠娌欏彂鍚
璇峰厛鐧诲綍鍚庡彂琛ㄨ瘎璁猴紒