Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $getPageName = function(){
- if($_SERVER["QUERY_STRING"] == ""){
- $pageName = "home";
- }else{
- $filename = $_SERVER['QUERY_STRING'];
- $parts = explode("=",$filename);
- $pageName = end($parts);
- }
- return $pageName;
- };
- //Use $pageName in title on index.php to identify the page you are on. Put function in content area on index.php
- ?>
Add Comment
Please, Sign In to add comment