]> git.bochard.net Git - mysite.git/commitdiff
scribbles.php update
authorbochard <mail@bochard.net>
Sun, 13 Jul 2025 11:06:50 +0000 (19:06 +0800)
committerbochard <mail@bochard.net>
Sun, 13 Jul 2025 11:06:50 +0000 (19:06 +0800)
parts/scribbles.php

index cca1f80dd7d7a805f65b0cbc2c65f2f4db670624..eca78dbf7b18ad99a34e8226ccb4ef3ee143a8cc 100644 (file)
@@ -1,14 +1,16 @@
 <strong>Journal</strong>
-<!-- <ul>  
-  <li><a href="/">nothing here yet...</a></li>
-</ul> -->
+<ul>
 <?php
-  $files = glob("{$_SERVER['DOCUMENT_ROOT']}/journal/*");
+  $journals = glob("{$_SERVER['DOCUMENT_ROOT']}/journal/*");
 
-  foreach($files as $file){
-    echo $file . "\n";
+  foreach($journals as $journal){
+    $strippedURL = strstr($journal, 'journal/');
+    $fileName = pathinfo($journal, PATHINFO_FILENAME);
+    echo "<li><a href=\"http://www.bochard.net/{$strippedURL}\">$fileName</a></li>\n";
   }
 ?>
+</ul>
+
 
 <strong>How Tos</strong>
 <ul>