]> git.bochard.net Git - mysite.git/commitdiff
entry 2
authorbochard <mail@bochard.net>
Mon, 14 Jul 2025 12:02:42 +0000 (20:02 +0800)
committerbochard <mail@bochard.net>
Mon, 14 Jul 2025 12:05:37 +0000 (20:05 +0800)
12 files changed:
.gitignore
.htaccess
index.php
journal/.htaccess [new file with mode: 0644]
journal/.template [new file with mode: 0644]
journal/entry-1.php
journal/entry-2.php [new file with mode: 0644]
parts/head.php
sitemap.xml [new file with mode: 0644]
stylesheets/component.css
stylesheets/journal.css [new file with mode: 0644]
stylesheets/root.css

index fbf7e8bd69fa6765f32eaf1aed02b68602707f36..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,2 +0,0 @@
-robots.txt
-works-tmp/
\ No newline at end of file
index 0cfcad32b23f94dfaaf5ad80f73925a496d09699..766344dffa089806699078cf1e3fc597abd1cfac 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -3,3 +3,8 @@ RewriteEngine On
 #Redirect root to www
 RewriteCond %{HTTP_HOST} ^bochard\.net [NC]
 RewriteRule ^(.*)$ http://www.bochard.net/$1 [R=301,L]
+
+#Forbidden access to works-tmp folder
+<Files "works-tmp">
+  Require all denied
+</Files>
\ No newline at end of file
index fb230c1c6a1ab9f2533daf83da4b93279e53912a..06e1b467e743bd046631dd0db393993afee98bf8 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -17,8 +17,7 @@
         <hr>\r
         <p>If you want to continue viewing my site. Please consider disabling your adblocker. some cool stuffs cannot be seen if you enable that thing. tnx. and...if you got lost for some reason. just go the homepage!</p>\r
         <h2>I am an avid book reader.</h2>\r
-        <p>I have a few books on my desk, mostly about japanese novels like 'the setting sun', 'no longer human', 'schoolgirl', etc...if you know these books, yes, the author are all mostly from Osamu Dazai. well...i'm not a huge fan of Dazai, but I like his works though. Well he is really a great and respected author, indeed. It's just that...he ended his own life, for a reason which I don't have any idea yet.</p>\r
-        <p>anyways...I'd like to read more and more books but I don't have money, im poor, so...if you will....please consider donating :D.</p>\r
+        <p>I have a few books on my desk, mostly about japanese novels like 'the setting sun', 'no longer human', 'schoolgirl', etc...if you know these books, yes, the author are all mostly from Osamu Dazai. well...i'm not a huge fan of Dazai, but I like his works though. Well he is really a great and respected author, indeed. It's just that...he ended his own life, for a reason which I don't have any idea yet. anyways...I'd like to read more and more books but I don't have money, im poor, so...if you will....please consider donating :D.</p>\r
       </td>\r
     </tr>\r
   </table>\r
diff --git a/journal/.htaccess b/journal/.htaccess
new file mode 100644 (file)
index 0000000..e3621d9
--- /dev/null
@@ -0,0 +1,3 @@
+<Files ".template">
+  Require all denied
+</Files>
\ No newline at end of file
diff --git a/journal/.template b/journal/.template
new file mode 100644 (file)
index 0000000..73eadd8
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
+  $pgtitle = "Entry #1 - a dream.";
+  $pgdescription = "a dream.";
+  $pgcss = ["journal.css"];
+  head($pgtitle, $pgdescription, $pgcss);
+?>
+<body>    
+  <table>
+    <tr>
+      <?php include_once("$parts/sidebar.php");?>
+      
+      <!-- ...and this is for the content -->
+      <td id="body">
+        <h1>Entry title</h1>
+        <p class="written-date">Written in YYYY, DDst/th of M.</p>
+        <hr>
+        <p>Entry contents...</p>
+      </td>
+    </tr>
+  </table>
+</body>
+</html>
index 65824982f6235e2324a04f277f974c4e6f0b4260..119018b7027962f7d34d29313ba522283bbc569a 100644 (file)
@@ -2,7 +2,8 @@
   require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
   $pgtitle = "Entry #1 - a dream.";
   $pgdescription = "a dream.";
-  head($pgtitle, $pgdescription);
+  $pgcss = ["journal.css"];
+  head($pgtitle, $pgdescription, $pgcss);
 ?>
 <body>    
   <table>
       
       <!-- ...and this is for the content -->
       <td id="body">
-        <img src="/images/gifs/bulblights.gif" alt="bulb lights" width="100%">
         <h1>A Dream.</h1>
-        <p>...</p>
+        <p class="written-date">Written in 2025, 12th of July.</p>
         <hr>
+        <p>Apocalypse. A city. Inside the train. Love. Arcade. It must be another weird dream...</p>
       </td>
     </tr>
   </table>
diff --git a/journal/entry-2.php b/journal/entry-2.php
new file mode 100644 (file)
index 0000000..88d015e
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
+  $pgtitle = "Entry #2 - The rain.";
+  $pgdescription = "ame.";
+  $pgcss = ["journal.css"];
+  head($pgtitle, $pgdescription, $pgcss);
+?>
+<body>    
+  <table>
+    <tr>
+      <?php include_once("$parts/sidebar.php");?>
+      
+      <!-- ...and this is for the content -->
+      <td id="body">
+        <h1>The rain.</h1>
+        <p class="written-date">Written in 2025, 14th of July.</p>
+        <hr>
+        <p>Monday, somewhere around 3 in the afternoon. It's hot, even though it is already July—rainy season. Well, my cousins, even my sister is out on the high school and elemtary nearby. They started their classes this past month, while mine, would be this upcoming August—as a freshman college—still a month left. Having nothing much to do, I'm usually on the living room on the afternoon. I can't take a nap in my bed, it is blazingly hot inside like I'm in a sauna, yet I don't even know how hot inside sauna is—much likely, our bedroom is significantly hotter.</p>
+        <p>I made a coffee.</p>
+        <p>Then, it rained.</p>
+        <p>The sound of raindrops hitting the thin roof of our house, little-by-little getting louder. I got off the chair, then go to our garage. I put my head on my crossed arm laid above the gate which is almost the same height as my shoulder. I stared on the rain slowly getting heavier...It's just so majestic. I like rain, and I mean it...no, I don't just like it, but I LOVE it. It gives me a feeling or serenity, a peace that I cannot explain through words.</p>
+        <p>I like rain so much that I always look forward to it every single day, especially in the afternoon. Although, that might sounds selfish to many...others might say "Won't you think of others...how about those ones who is out and need to work, or those beggars whom doesn't have a shelter?". Yes!...I feel pity to them, really. It's just that, I love rain, even though the reality that many people doesn't like rain as much as I do.</p>
+      </td>
+    </tr>
+  </table>
+</body>
+</html>
index 3d5164f792f564a75b46dd911fc084f58059c6c1..5aaab51e7197c3c6d28fa66ce51d860f4a216307 100644 (file)
@@ -14,8 +14,8 @@ function head($pgtitle, $pgdescription, $pgcss = []){?>
     <!-- stylesheet/s i use -->
     <link rel="stylesheet" href="/stylesheets/root.css?v=<?= filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/root.css");?>">
     <link rel="stylesheet" href="/stylesheets/component.css?v=<?= filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/component.css");?>">
-    <?php foreach($pgcss as $filepath):?>
-      <link rel="stylesheet" href="<?= htmlspecialchars("$filepath?v="), filemtime($filepath);?>">
+    <?php foreach($pgcss as $filename):?>
+      <link rel="stylesheet" href="<?= htmlspecialchars("/stylesheets/$filename?v="), filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/$filename");?>">
     <?php endforeach;?>
   </head>
 <?php }
diff --git a/sitemap.xml b/sitemap.xml
new file mode 100644 (file)
index 0000000..d4b22db
--- /dev/null
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<urlset\r
+      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"\r
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9\r
+            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">\r
+<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->\r
+\r
+
+<url>
+  <loc>https://www.bochard.net/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>1.00</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/about-me.php</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.80</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/journal/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.80</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/gallery/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.80</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.80</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/files/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.80</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/how-to/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.80</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=N;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=M;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=S;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=D;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/basic-calc/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/circle/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/drum-ka-dum/</loc>
+  <lastmod>2025-07-11T11:59:13+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/palindrome-checker/</loc>
+  <lastmod>2025-07-11T11:59:13+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/roman-numeral-converter/</loc>
+  <lastmod>2025-07-11T11:59:13+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/signup-login-system/</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/simple-cash-register/</loc>
+  <lastmod>2025-07-11T11:59:14+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/temperature-converter/</loc>
+  <lastmod>2025-07-11T11:59:14+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/tick-clock/</loc>
+  <lastmod>2025-07-11T11:59:14+00:00</lastmod>
+  <priority>0.64</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=N;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=M;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=S;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/?C=D;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=N;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=M;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=S;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=D;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=N;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=M;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=S;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=D;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=N;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=M;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=S;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=D;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.51</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=N;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=M;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=S;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/atm-program-in-c/?C=D;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=N;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=M;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=S;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/number-guessing-game-in-c/?C=D;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=N;O=A</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=M;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=S;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>
+<url>
+  <loc>https://www.bochard.net/works/rock-paper-scissors-in-c/?C=D;O=D</loc>
+  <lastmod>2025-07-14T12:03:57+00:00</lastmod>
+  <priority>0.41</priority>
+</url>\r
+\r
+\r
+</urlset>
\ No newline at end of file
index e024a84bf82abbac98861b71917fab8e75b32c9a..4fa7d7a5d80bce0c5f1e6fee69d380a7f49974c2 100644 (file)
@@ -9,18 +9,18 @@
 }
 #sidebar > ul {
   margin-top: 0;
-  padding-left: 5px;
+  padding-left: 7px;
 }
 #sidebar li {
   list-style-type: none;
-  padding: 1px;
+  padding: 3px;
 }
 #sidebar a {
   color: inherit;
 }
 #body {
   vertical-align: top;
-  padding: 0 20px;
+  padding: 0 100px 0 70px;
 }
 #underconstruction-container {
   text-align: center;
diff --git a/stylesheets/journal.css b/stylesheets/journal.css
new file mode 100644 (file)
index 0000000..d4de5c4
--- /dev/null
@@ -0,0 +1,4 @@
+.written-date {
+  text-indent: unset;
+  font-style: italic;
+}
\ No newline at end of file
index 382e17fd1390628ff24dedd7fb12bf010258b612..22ad6a42f97f6557802064f6c634096d13825b30 100644 (file)
@@ -8,7 +8,16 @@ body {
   font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
   margin: 0 auto;
 }
+p {
+  line-height: 2;
+  text-indent: 20px;
+  margin-bottom: 10px;
+  margin-top: 0;
+}
 table {
   height: 100%;
   width: 100%;
+}
+h1, h2, h3, h4, h5, h6 {
+  margin-bottom: 0;
 }
\ No newline at end of file