<?php\r
- $parts = $_SERVER['DOCUMENT_ROOT'] . '/parts';\r
- require_once($parts . '/head.php');\r
+ require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");\r
$pgtitle = "bochard's net home";\r
$pgdescription = "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
head($pgtitle, $pgdescription);\r
<body> \r
<table>\r
<tr>\r
- <?php include_once($parts . '/sidebar.php');?>\r
+ <?php include_once("$parts/sidebar.php");?>\r
\r
<!-- ...and this is for the content -->\r
<td id="body">\r
<?php
+$parts = "{$_SERVER['DOCUMENT_ROOT']}/parts";
function head($pgtitle, $pgdescription, $pgcss = []){ ?>
<!DOCTYPE html>
<html lang="en">
<meta name="description" content="<?= htmlspecialchars($pgdescription, ENT_COMPAT); ?>">
<!-- stylesheet/s i use -->
- <link rel="stylesheet" href="/stylesheets/root.css?v=<?= filemtime($_SERVER['DOCUMENT_ROOT']. '/stylesheets/root.css'); ?>">
+ <link rel="stylesheet" href="/stylesheets/root.css?v=<?= filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/root.css"); ?>">
<?php foreach($pgcss as $filepath): ?>
- <link rel="stylesheet" href="<?= htmlspecialchars($filepath) . '?v=' . filemtime($filepath); ?>">
+ <link rel="stylesheet" href="<?= htmlspecialchars("$filepath?v="), filemtime($filepath); ?>">
<?php endforeach; ?>
</head>
<?php }
<li><a href="mailto:mail@bochard.net">email me!</a></li>
</ul>
<hr>
- <?php include_once($parts . '/scribbles.php');?>
+ <?php include_once("$parts/scribbles.php");?>
<hr>
<!-- cute badges and other cool things goes here -->
<!-- hitwebcounter Code START -->
User-agent: *
Disallow:
-Sitemap: https://bochard.net/sitemap.xml
+Sitemap: http://www.bochard.net/sitemap.xml
# ________
# __,_, | |