aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrankie B <floppydisk05@aol.com>2022-12-20 20:55:38 +0000
committerFrankie B <floppydisk05@aol.com>2022-12-20 20:55:38 +0000
commit2195834edbc91935b70f937ce7a168d3a2e0c3b8 (patch)
tree501fe6ca2d4dbf3cb14dccae99e0d9994fe25b20
parent907203d6f73ea8aa9de82126b57b9f694d24dd99 (diff)
Move title path thing to page title
-rwxr-xr-xblank/index.php2
-rwxr-xr-xbookmarks/index.php2
-rwxr-xr-xcalculators/index.php2
-rwxr-xr-xcomputers/index.php2
-rwxr-xr-xguestbook/index.php2
-rwxr-xr-xguestbook/submit.php2
-rw-r--r--inc/nav.inc.php27
-rw-r--r--inc/title.inc.php22
-rwxr-xr-xindex.php2
-rwxr-xr-xme/index.php2
-rwxr-xr-xpics/index.php2
-rwxr-xr-xprojects/index.php2
12 files changed, 32 insertions, 37 deletions
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Bookmarks</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<meta property="og:title" content="title">
<meta property="og:description" content="description">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Bookmarks</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<meta property="og:title" content="Bookmarks">
<meta property="og:description" content="friends' websites or sites I just find cool">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Calculators</title>
+ <?php require_once('../inc/title.inc.php') ?>
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:title" content="Calculators">
<meta property="og:description" content="C a l c u l a t o r s">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Computers</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<meta property="og:title" content="Computers">
<meta property="og:description" content="Computers I own or have owned.">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Guestbook</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<meta property="og:title" content="Guestbook">
<meta property="og:description" content="h">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Guestbook</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<!--<meta property="og:image" content="/res/img/icons/png/computer.png">-->
</head>
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 @@
<a href="/guestbook/">guestbook</a>
</div>
</nav>
- <div class="pagetree">
- <span class="title">
- <?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 = '<a href="/">~floppydisk</a> / ';
- $currentDir = basename(getcwd());
- foreach($uriArr as $page) {
- if ($page !== $currentDir) {
- if ($link !== '/') $link = $link . '/' . $page;
- else $link = $link . $page;
- $links = $links . '<a href="' . $link . '">' . $page . '</a> / ';
- }
- }
- $links = substr($links, 0, -3) . ' / ' . $currentDir;
- echo $links;
- }
- }
- ?>
-
- </span>
- </div> <!-- pagetree -->
</div> <!-- header --> \ 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 @@
+<title><?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;
+ }
+}
+?></title>
diff --git a/index.php b/index.php
index 08a2761..284f52b 100755
--- a/index.php
+++ b/index.php
@@ -7,7 +7,7 @@
<?php require('./inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>~floppydisk</title>
+ <?php require_once('./inc/title.inc.php') ?>
<meta property="og:title" content="~floppydisk">
<meta property="og:description" content="This is the personal homepage of floppydisk.">
<meta property="og:image" content="/favicon.png">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Calculators</title>
+ <?php require_once('../inc/title.inc.php') ?>
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:title" content="Calculators">
<meta property="og:description" content="C a l c u l a t o r s">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Pictures</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<meta property="og:title" content="Pictures">
<meta property="og:description" content="description">
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 @@
<?php require('../inc/header.inc.php'); ?>
<!-- Page-specific -->
- <title>Projects</title>
+ <?php require_once('../inc/title.inc.php') ?>
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
<meta property="og:title" content="Projects">
<meta property="og:description" content="Personal and group projects">