Skip to content

Commit

Permalink
updated .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
NikDrosakis committed Jan 27, 2025
1 parent f9ee327 commit 44821a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ backup/
# Ignore everything in public/
gaia/public/*
# Allow these specific folders
!gaiapublic/_phpdomain.local/
!gaia/public/_phpdomain.local/
!gaia/public/_reactdomain.local/
# Ignore node_modules inside public/_reactdomain.local
gaia/public/_reactdomain.local/node_modules/
Expand Down
17 changes: 17 additions & 0 deletions gaia/public/_phpdomain.local/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
use Core\Gen;
define('DOMAIN', $_SERVER['SERVER_NAME']);
$servernameArray = explode('.', DOMAIN);
if (!empty($servernameArray)) {
$template = $servernameArray[0].$servernameArray[1];
define('TEMPLATE', $template);
define('ROOT', dirname(dirname(__DIR__)).'/');
define('ADMIN_ROOT', ROOT . 'admin/');
// Ensure the autoload file is included first
require ROOT.'vendor/autoload.php';
$gaia = new Gen();
} else {
echo "Run bash install.sh";
}
?>

0 comments on commit 44821a9

Please sign in to comment.