--- 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 @@ - Starter Template for Bootstrap + <?= $title ?> @@ -55,7 +59,13 @@ - +