+++ /dev/null
-<?php
-$urlPath = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
-$urlPath = rtrim($urlPath, "/");
-$fullPath = $urlPath === "" ? "/" : $urlPath;
-
-if ($handle = opendir(".")) {
- echo "<html>";
- echo "<head><title>Index of $fullPath</title></head>";
- echo "<body>";
- echo "<h1>Index of $fullPath</h1><hr><pre>";
- echo '<a href="../">../</a>' . PHP_EOL;
-
- $items = [];
- while (false !== ($entry = readdir($handle))) {
- if ($entry != "." && $entry != ".." && $entry != "index.php") {
- $items[] = $entry;
- }
- }
- closedir($handle);
-
- sort($items);
-
- foreach ($items as $entry) {
- $filePath = "./" . $entry;
- $lastModified = date("d-M-Y H:i", filemtime($filePath));
- $size = is_dir($filePath) ? "-" : filesize($filePath);
- $link = htmlspecialchars($entry);
-
- if (is_dir($filePath)) {
- $link .= '/';
- }
-
- echo "<a href=\"$entry\">$link</a>" . str_repeat(" ", 50 - strlen($link)) . "$lastModified" . str_repeat(" ", 10 - strlen($size)) . "$size" . PHP_EOL;
- }
-
- echo "</pre><hr>";
- echo "</body>";
- echo "</html>";
-} else {
- echo "Unable to open directory.";
-}
-?>
\ No newline at end of file
+++ /dev/null
-<?php
- $path = $_SERVER['DOCUMENT_ROOT'];
- $path .= '/files';
-?>
-<?php include_once($path . '/index.php');?>
\ No newline at end of file
+++ /dev/null
-<?php
- $path = $_SERVER['DOCUMENT_ROOT'];
- $path .= '/files';
-?>
-<?php include_once($path . '/index.php');?>
\ No newline at end of file
+++ /dev/null
-<?php
- $path = $_SERVER['DOCUMENT_ROOT'];
- $path .= '/files';
-?>
-<?php include_once($path . '/index.php');?>
\ No newline at end of file
<?php\r
- $path = $_SERVER['DOCUMENT_ROOT'];\r
- $path .= '/includes';\r
+ $parts = $_SERVER['DOCUMENT_ROOT'] . '/parts';\r
?>\r
<!DOCTYPE html>\r
<html lang="en">\r
<title>bochard's net home</title>\r
<meta name="description" content="Welcome to my net home! this website are my space to show my hobbies, thoughts, and other fun stuffs. I am an 18 years old who learned how to code just by myself. Hope you enjoy visiting my site! :)">\r
\r
-<!-- some styles, i want to keep the site simple. -->\r
- <link rel="stylesheet" href="/styles/root.css">\r
-<style>\r
-html, body {\r
- height: 100%;\r
- width: 100%;\r
-}\r
-body {\r
- font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;\r
- margin: 0 auto;\r
-}\r
-table {\r
- height: 100%;\r
- width: 100%;\r
-}\r
-.sidebar {\r
- background-image: url(./images/backgrounds/backgroundclouds.gif);\r
- background-repeat: repeat-y;\r
- vertical-align: top;\r
- height: 100%;\r
- width: 120px;\r
- padding: 15px 10px;\r
-}\r
-.sidebar > ul {\r
- margin-top: 0;\r
- padding-left: 20px;\r
-}\r
-.sidebar p {\r
- margin-bottom: 5px;\r
-}\r
-.sidebar a {\r
- color: inherit;\r
-}\r
-.sidebar-footer {\r
- width: 10px;\r
-}\r
-.body {\r
- vertical-align: top;\r
- padding-left: 15px;\r
-}\r
-.content-wrap {\r
- width: 700px;\r
- padding: 0 10px;\r
-}\r
-</style>\r
+ <!-- stylesheet/s i use -->\r
+ <link rel="stylesheet" href="/stylesheets/root.css">\r
</head>\r
<body> \r
<table> \r
<tr>\r
- <!-- this is for the sidebar -->\r
- <td class="sidebar">\r
- <p><strong>Site Menu</strong></p>\r
- <ul> \r
- <li><a href="/">home</a></li>\r
- <li><a href="./about-me.php">about bochard</a></li>\r
- <li><a href="./files">my files</a></li>\r
- <li><a href="mailto:mail@tenkyuu.dev">email me</a></li>\r
- </ul>\r
- <p><strong>Stuffs I Made</strong></p>\r
- <ul> \r
- <li><a href="https://questlog.tenkyuu.dev">QuestLog</a></li>\r
- <li><a href="./projects/temperature-converter">temperature converter</a></li>\r
- <li><a href="./projects/roman-numeral-converter">roman numeral converter</a></li>\r
- <li><a href="./projects/palindrome-checker">palindrome checker</a></li>\r
- <li><a href="./projects">check all here...</a></li>\r
- </ul> \r
- \r
- <hr>\r
- <!-- cute badges and other cool things goes here -->\r
- <!-- hitwebcounter Code START -->\r
- <a href="https://www.hitwebcounter.com" target="_blank"><img src="https://hitwebcounter.com/counter/counter.php?page=20998791&style=0019&nbdigits=5&type=ip&initCount=231" title="Counter Widget" Alt="Visit counter For Websites" border="0" width="100"></a>\r
- <a href="http://www.anybrowser.org/campaign/"><img src="./images/gifs/badges/anybrowser.gif" alt="Viewable With Any Browser" width="100"></a>\r
- <img src="./images/gifs/badges/handcode.png" alt="completely hand-coded" width="100">\r
- <img src="./images/gifs/badges/mullvad.avif" alt="hand coded" width="100">\r
- </td>\r
+ <?php include_once($parts . '/sidebar.php');?>\r
\r
<!-- ...and this is for the content -->\r
- <td class="body">\r
- <div class="content-wrap">\r
- <h1>welcome to bochard's net home!'</h1>\r
- <p>i don't really have much to say. but try to explore the site. it is not big but, i like it. it is my corner of the internet. here you can see what i do, some fun things, and my thoughts to certain topics. hope you'll have fun! :)</p>\r
+ <td id="body">\r
+ <h1>welcome to bochard's net home!</h1>\r
+ <p>i don't really have much to say. but try to explore the site. it is not big but, i like it. it is my corner of the internet. here you can see what i usually do, some fun things, and my thoughts to certain topics. hope you'll have some fun! :)</p>\r
+ <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
+ \r
+ <div style="width: 300px;">\r
+ <script async src="https://cse.google.com/cse.js?cx=41bb325316c57447c">\r
+ </script>\r
+ <b>Search my site here...</b>\r
+ <div class="gcse-search"></div>\r
</div>\r
</td>\r
</tr>\r
--- /dev/null
+<!-- this is for the sidebar -->
+<td id="sidebar">
+ <p><strong>Site Menu</strong></p>
+ <ul>
+ <li><a href="/">homepage</a></li>
+ <li><a href="/about-me.php">about me...</a></li>
+ <li><a href="/files">my files</a></li>
+ <li><a href="mailto:mail@tenkyuu.dev">email me!</a></li>
+ </ul>
+ <p><strong>Stuffs I Made</strong></p>
+ <ul>
+ <li><a href="https://questlog.tenkyuu.dev">QuestLog</a></li>
+ <li><a href="/works/temperature-converter">temperature converter</a></li>
+ <li><a href="/works/roman-numeral-converter">roman numeral converter</a></li>
+ <li><a href="/works/palindrome-checker">palindrome checker</a></li>
+ <li><a href="/works">check all here...</a></li>
+ </ul>
+
+ <hr>
+ <!-- cute badges and other cool things goes here -->
+ <!-- hitwebcounter Code START -->
+ <a href="https://www.hitwebcounter.com" target="_blank"><img src="https://hitwebcounter.com/counter/counter.php?page=20998791&style=0019&nbdigits=5&type=ip&initCount=231" title="Counter Widget" Alt="Visit counter For Websites" border="0" width="100"></a>
+ <a href="http://www.anybrowser.org/campaign/"><img src="./images/gifs/badges/anybrowser.gif" alt="Viewable With Any Browser" width="100"></a>
+ <img src="/images/gifs/badges/handcode.png" alt="completely hand-coded" width="100">
+ <img src="/images/gifs/badges/mullvad.avif" alt="free the internet" width="100">
+</td>
\ No newline at end of file
+++ /dev/null
-Subproject commit 493c6df4598459fdacb4f7b909cc49f956343ffe
+++ /dev/null
-Subproject commit e0d75ced202fb755ef5fd5f7bdd74dc1c45e2b3e
+++ /dev/null
-<?php
- $path = $_SERVER['DOCUMENT_ROOT'];
- $path .= '/includes';
-?>
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="my coding projects.">
- <meta name="robots" content="index, follow">
- <title>bochard's projects list</title>
- <link rel="icon" type="image/ico" href="/images/">
-
- <link rel="stylesheet" href="/styles/root.css">
-</head>
-<body>
- <?php include_once($path . '/header.php');?>
-
- <main>
- <img src="/images/gifs/titles/projectspageburning.gif" class="page-title">
- <?php include_once($path . '/nav.php');?>
- <section style="text-align: center;">
- <h1>My projects' list</h1>
- <p>below are some of the coding projects I made, some of them are left unfinished.</p>
- </section>
- <section>
- <h2>self-learn</h2>
- <p>these ones are made for learning purpose.</p>
- <ul>
- <li>
- <a href="./palindrome-checker">palindrome checker</a>
- <p>this checks if a word is the same even when reversed, regardless of any punctuations.</p>
- </li>
- <li>
- <a href="./roman-numeral-converter">roman numeral converter</a>
- <p>converts integers to a roman type. for instance, "28" becomes "XXVIII".</p>
- </li>
- <li>
- <a href="./temperature-converter">temperature converter</a>
- <p>this one is actually inspired from a physics class in my 12th grade. our topic that time is about gas laws.</p>
- </li>
- <li>
- <a href="./simple-cash-register">temperature converter</a>
- <p>a cash register, the one you commonly see on malls and konbini.</p>
- </li>
- <li>
- <a href="./drum-ka-dum">drum ka dum!</a>
- <p>not that much, just a basic drum that uses a keyboard. (only works when you have keyboard)</p>
- </li>
- <li>
- <a href="./basic-calc">basic calc</a>
- <p>simple calculator. pls don't compare on ur phone calculator. i know, it's far from it xd.</p>
- </li>
- </ul>
- </section>
- <section>
- <h2>work related</h2>
- <p>websites I created for my clients.</p>
- <ul>
- <li>
- <a href="https://mohsinsolutions.com">Mohsin Business Solutions</a>
- <p>a simple landing page for Mohsin.</p>
- </li>
- </ul>
- </section>
- </main>
-
- <?php include_once($path . '/footer.php');?>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-Subproject commit e8449e21868dcdccd581d3db3df491e53cbdd69c
+++ /dev/null
-Subproject commit 2457a3a1e4c7530c00890d2d2ab727538e6a06e4
+++ /dev/null
-Subproject commit 2c4be24e0e0a5348f27d513d01bf96aa4eeb7bb8
+++ /dev/null
-Subproject commit e2467d7d864c2488034bcadafed2b5e5f1dea0a8
+++ /dev/null
-Subproject commit 374b61a8f7fc19c1503c985f806980b8fd44ca8c
--- /dev/null
+html, body {
+ height: 100%;
+ width: 100%;
+}
+body {
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
+ margin: 0 auto;
+}
+table {
+ height: 100%;
+ width: 100%;
+}
+#sidebar {
+ background-image: url(/images/backgrounds/backgroundclouds.gif);
+ background-repeat: repeat;
+ vertical-align: top;
+ height: 100%;
+ width: 200px;
+ padding: 15px 10px;
+}
+#sidebar > ul {
+ margin-top: 0;
+ padding-left: 10px;
+}
+#sidebar li {
+ list-style-type: none;
+ padding: 2px;
+}
+#sidebar p {
+ margin-bottom: 5px;
+}
+#sidebar a {
+ color: inherit;
+}
+#body {
+ vertical-align: top;
+ padding: 0 20px;
+}
\ No newline at end of file