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