";
-
- echo "";
-}
-
-// Get content from file at path $path
-// $recnum keeps memory of numbers of recursion.
-// We need this ability to wrap the final string
-// in elements.
-function get_content($path, $recnum = 0) {
- $extracontent = "";
- $output = "";
- // Get contents of the file
- $fcontent = file_get_contents($path);
-
- // If the file has an comment,
- // then call this function on that path too.
- $includestart = strpos($fcontent, "") + 2;
- $includelen = $includeend - $includestart + 1;
- $include_str = substr($fcontent, $includestart, $includelen);
-
- // Then, check if the string has "include"
- $includestart = strpos($include_str, "include");
- if ($includestart) {
- // If it does, get the file to include
- // and put it in $include_str
- $include_str = substr(
- $include_str,
- $includestart + 7, // +7 removes "include"
- strlen($includestart) - 4); // -4 removes -->
- $include_str = trim($include_str);
- }
- // Call the function on this string as path,
- // increment recursion to ensure we don't get lost
- $extracontent = get_content($include_str, $recnum + 1);
- }
-
- $output = $fcontent . $extracontent . $output;
- if ($recnum == 0) {
- $output = "
" . $output . "
";
- }
- return $output;
-}
-
-// Remove filename endings from any string which is a file path.
-function clean_fn($string) {
- // To do this, we are going to move upwards from the
- // bottom of the string, looking for '.' and '/' characters.
- // When we find a '.' char, we then check if there is any '/'
- // placed after it. If this is true, we are dealing with a folder
- // that has a '.' in its name, which we do not want to alter.
- // If it is not true, we can remove all characters after the '.'
- // and then check the next '.' up the string.
-
- $exitcond = FALSE;
- $index = -1;
- $index_lastper = -1;
- $index_lastslash = 1;
- $final_index = 0;
-
- // Iterate over the string, looking for slashes and periods.
- while (abs($index) < strlen($string) && !$exitcond) {
- // If we find a period, save the index.
- if ($string[$index] == '.') {
- $index_lastper = $index;
- }
- // If we find a slash, save the index.
- else if ($string[$index] == '/') {
- $index_lastslash = $index;
- $exitcond = TRUE;
- }
-
- // Compare the indices. If there is no
- // slash before the period, that's our
- // final index.
- if ($index_lastper > $index_lastslash) {
- $final_index = $index_lastper;
- }
- $index--;
- }
- if (abs($final_index) > 0) {
- $output = substr($string, 0, $final_index);
-//$output = $output . " | " . $index_lastper . " | " . $index_lastslash;
- }
- else {
- $output = $string;
- }
- return $output;
-}
-
-// Quick function to build MOTD with optional delimiter
-function build_motd($strings, $delimiter = "\t") {
- $motd = $strings[0];
- for ($i = 1; $i < sizeof($strings); $i++) {
- $motd = $motd . $delimiter . $strings[$i];
- }
- return $motd;
-}
-?>
diff --git a/php/header.php b/php/header.php
deleted file mode 100644
index 95405d4..0000000
--- a/php/header.php
+++ /dev/null
@@ -1,62 +0,0 @@
- element.
-build_head();
-
-// Here, get the path of the HTML to display in the body, and save it
-// in a string.
-if (sizeof($_GET) == 0) {
- $path = "content/home.html";
-}
-else {
- $path = "content/" . $_GET['q'];
-}
-
-// Build title and top bar.
-$headhtml = <<
-
-
world-wide-witzeman
-
-
-
-
-EOF;
-
-// Build MOTD (Message of the Day.)
-$motd = build_motd(array(
-// $_SERVER['HTTP_X_FORWARDED_FOR'],
-// $datestr,
- clean_fn($path),
-));
-//$motd = $_SERVER['REMOTE_ADDR'] . "\t" . $datestr . "\t" . clean_fn($path);
-
-// We want the 'data' div to contain our message of the day
-// we're displaying. So, we insert that in the proper place.
-$findstr = "motd";
-$strindex = strpos($headhtml, $findstr) + 6;
-$headhtml = substr_replace($headhtml, $motd, $strindex, 0);
-
-echo $headhtml;
-?>
diff --git a/services.html b/services.html
new file mode 100644
index 0000000..9ea9c41
--- /dev/null
+++ b/services.html
@@ -0,0 +1,47 @@
+SERVICES
+|= IT SOLUTIONS
+It sounds really fancy phrased that way.
+If you need someone to maintain your website, fix
+your internet, write you some kind of program, or even
+fix up a broken/old PC, I'm your guy!
+
+
+
+My skillset is somewhat broad. I can do basic electronics
+repairs, I was trained in logic design in school. I know
+a lot of transistor math. I have experience programming in
+C, PHP, JavaScript, Python, CSS, etc. I can do pretty good
+web dev and also know how to work with Docker well. Here
+at home I have a nice media server full of **legally obtained**
+movies and shows. If you have a nasty old or cheap PC and want
+help getting it running better, I can speed it up. The secret
+is running Linux! Some things I can do:
+
+
+ - Hardware repair
+ - Website design and maintenance
+ - Speed up slow, old PCs
+ - Home networking
+ - Programming help in Python, C, PHP, JavaScript
+
+
+|= MATH TUTORING
+
+I am a trained computer engineer and know a lot of
+wicked maths. I can most likely help tutor you in any
+math up to Calculus III. Some classes I passed:
+
+
+ - Algebra I, II
+ - Pre-Calculus
+ - AP Calculus A,B,C
+ - Calculus I
+ - Calculus II
+ - Multivariable Calc/Calc III
+
+
+|= PIANO LESSONS
+I am also a proficient pianist! If you're trying to
+learn, or have a child looking to pick up music, I can
+help any beginner to intermediate player!
+