1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(refactor): changed router file path (feat): added global host config

This commit is contained in:
2023-11-09 21:45:15 +05:30
parent c21d06a64d
commit 18753f116b
8 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
<?php
$currentHost = $_SERVER['HTTP_HOST'];
if($currentHost == "localhost") {
$basePath = "https://localhost/neosubhamoy/htdocs";
}
else {
$basePath = "https://" + $host;
}
?>