Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* * * * * * * * * * * * * * *
- * Author: Carlos Rodrigues *
- * Version: 1.0 *
- * Release: 7 July 2013 *
- * Description: PAGE module. *
- * * * * * * * * * * * * * * *
- */
- class PAGE {
- static public function EXISTS() {
- if(!isset($_GET['p'])) {
- return false;
- }
- if(!file_exists("system/pages/".strtolower($_GET['p']).".php") && !is_readable("system/pages/".strtolower($_GET['p']).".php")) {
- return false;
- }
- return true;
- }
- static public function TOP() {
- include("design/pages/top.php");
- return true;
- }
- static public function FOOTER() {
- include("design/pages/footer.php");
- return true;
- }
- static public function BODY() {
- include("system/pages/".strtolower($_GET['p']).".php");
- return true;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement