How content is displayed

How content is displayed

All of the content displayed in a sNews website is created by the Site Administrator using a set of Administration Panels. The Administrator is automatically directed to the main Admin panel once he or she logs in. Information added to or changed in these Admin panels is submitted to the database.

Every article, page, admin panel and the login panel, is created by functions located in the snews.php file. These functions store and retrieve data from their respective tables in the database, and send it all to one big function we call “Function Center”. This function then determines what needs to be displayed in the website based on requests it gets from the site’s viewers when links are clicked on.

Content is displayed through a short, simple PHP statement embedded in the HTML of the template file, index.php. All of the links for the site are also created by functions in the “engine” file and displayed through other PHP statements embedded in the index.php file script. In fact, there are several such statements embedded in there, all linked back to their respective content-generating functions in the snews.php (engine) file.