diff --git a/blank/index.php b/blank/index.php index ae08eb1..9962303 100755 --- a/blank/index.php +++ b/blank/index.php @@ -6,7 +6,7 @@ - Bookmarks + diff --git a/bookmarks/index.php b/bookmarks/index.php index cdfa7bc..94ab09b 100755 --- a/bookmarks/index.php +++ b/bookmarks/index.php @@ -6,7 +6,7 @@ - Bookmarks + diff --git a/calculators/index.php b/calculators/index.php index c320f46..3fef317 100755 --- a/calculators/index.php +++ b/calculators/index.php @@ -5,7 +5,7 @@ - Calculators + diff --git a/computers/index.php b/computers/index.php index e140dd4..e1d010a 100755 --- a/computers/index.php +++ b/computers/index.php @@ -6,7 +6,7 @@ - Computers + diff --git a/guestbook/index.php b/guestbook/index.php index f8e3085..42e156b 100755 --- a/guestbook/index.php +++ b/guestbook/index.php @@ -6,7 +6,7 @@ - Guestbook + diff --git a/guestbook/submit.php b/guestbook/submit.php index 6c377b3..dfe22f7 100755 --- a/guestbook/submit.php +++ b/guestbook/submit.php @@ -6,7 +6,7 @@ - Guestbook + diff --git a/inc/nav.inc.php b/inc/nav.inc.php index e75445c..c626142 100644 --- a/inc/nav.inc.php +++ b/inc/nav.inc.php @@ -9,31 +9,4 @@ guestbook -
- - ~floppydisk / '; - $currentDir = basename(getcwd()); - foreach($uriArr as $page) { - if ($page !== $currentDir) { - if ($link !== '/') $link = $link . '/' . $page; - else $link = $link . $page; - $links = $links . '' . $page . ' / '; - } - } - $links = substr($links, 0, -3) . ' / ' . $currentDir; - echo $links; - } - } - ?> - - -
\ No newline at end of file diff --git a/inc/title.inc.php b/inc/title.inc.php new file mode 100644 index 0000000..149f0c8 --- /dev/null +++ b/inc/title.inc.php @@ -0,0 +1,22 @@ +<?php +$uri = $_SERVER['REQUEST_URI']; +if ($uri === '/') { echo '~floppydisk'; } +else { + $uri = substr(substr($uri, 1), 0, -1); + if (!strpos($uri, '/')) { + $uriArr = explode('/', $uri); + $link = "/"; + $links = '~floppydisk / '; + $currentDir = basename(getcwd()); + foreach($uriArr as $page) { + if ($page !== $currentDir) { + if ($link !== '/') $link = $link . '/' . $page; + else $link = $link . $page; + $links = $links . $link . $page . ' / '; + } + } + $links = substr($links, 0, -3) . ' / ' . $currentDir; + echo $links; + } +} +?> diff --git a/index.php b/index.php index 08a2761..284f52b 100755 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ - ~floppydisk + diff --git a/me/index.php b/me/index.php index 7cfdff3..183a51e 100755 --- a/me/index.php +++ b/me/index.php @@ -6,7 +6,7 @@ - Calculators + diff --git a/pics/index.php b/pics/index.php index 7d578c2..efa8405 100755 --- a/pics/index.php +++ b/pics/index.php @@ -6,7 +6,7 @@ - Pictures + diff --git a/projects/index.php b/projects/index.php index 18f89b1..2285138 100755 --- a/projects/index.php +++ b/projects/index.php @@ -6,7 +6,7 @@ - Projects +