Add comments to header.php

This file needs it's Title() function cleaned up.
This commit is contained in:
manfromhuh 2022-07-05 14:36:54 -04:00
parent a00013d619
commit 4117b552f2

View File

@ -1,7 +1,8 @@
<!DOCTYPE html>
<html lang="en-US">
<?php
function Title() {
//Sets the page title based on the name of the current directory
function Title() {//Needs cleanup.
//~ $new_title = $_SERVER['REQUEST_URI'];
//~ $new_title = preg_replace("/^^\//i", "", $new_title);
@ -27,7 +28,7 @@
?>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<?php
<?php//If a tags file is present parse it and add any tags found to the renderd page's metadata.
if(file_exists('tags')){
$tag_data_raw = fopen('tags',"r");
$tag_data = fread($tag_data_raw, filesize('tags'));