Description
This function displays the contents of server-wide news. It uses the following files as a source (in order):
/var/cpanel/news/global-news
/var/cpanel/news/global-resold
(If theroot
user does not own the cPanel user's account.)/var/cpanel/news/$owner/news
(If neither of the above files exist, the system attempts to display News for the account's owner.)
Warning:
- UAPI (recommended) — None.
- cPanel API 2 —
News::get_news
— This function retrieves the news of a specified type.
Examples
Parameters
This function does not accept parameters.
Returns
This function displays the server news files.