Skip to content
Permalink
Browse files

make config more portable

  • Loading branch information
bpd01001 committed Sep 12, 2017
1 parent 154f8a5 commit c6f03f2be9d8ac83ee35b779c7fe3f67777068dd
Showing with 7 additions and 7 deletions.
  1. +7 −7 www/config.php
@@ -13,20 +13,20 @@
* Site Navigation * Site Navigation
*/ */
$navigation = array( $navigation = array(
'Home' => '/www/index.php', 'Home' => 'index.php',
'About' => '/www/about.php', 'About' => 'about.php',
'Contact' => '/www/contact.php' 'Contact' => 'contact.php'
); );


/** /**
* Store the URI for the current page (as requested by the user) * Store the URI for the current page (as requested by the user)
* *
* This should set $current to one of the following * This should set $current to one of the following
* - /www/index.php' * - index.php'
* - /www/about.php' * - about.php'
* - /www/contact.php * - contact.php
*/ */
$current = $_SERVER['REQUEST_URI']; $current = basename($_SERVER['REQUEST_URI']);




/** /**

0 comments on commit c6f03f2

Please sign in to comment.
You can’t perform that action at this time.