Update news.php

Recoded some functions.