--- a/config.php +++ b/config.php @@ -18,6 +18,10 @@ // Print PDOException message echo $e->getMessage(); } +function local_url() +{ + return "http://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') . "/"; +} function includeHeader($title) { @@ -32,7 +36,7 @@ <meta name="author" content=""> <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png"> - <title>Starter Template for Bootstrap</title> + <title><?= $title ?></title> <!-- Bootstrap core CSS --> @@ -55,7 +59,13 @@ <![endif]--> </head> - <body> + <body xmlns="http://www.w3.org/1999/xhtml" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:xsd="http://www.w3.org/2001/XMLSchema#" + xmlns:gr="http://purl.org/goodrelations/v1#" + xmlns:foaf="http://xmlns.com/foaf/0.1/" + xmlns:vcard="http://www.w3.org/2006/vcard/ns#" > <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container">