From 1da5cc539f75721b956ea53174b70d7e52cc5e57 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 5 Sep 2025 14:57:17 +0000 Subject: [PATCH] Initial version --- .gitignore | 3 ++ .htaccess | 18 +++++++ .perm_test_apache | 0 .perm_test_exec | 0 db/config.php | 17 ++++++ index.php | 131 ++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 169 insertions(+) create mode 100644 .gitignore create mode 100644 .htaccess create mode 100644 .perm_test_apache create mode 100644 .perm_test_exec create mode 100644 db/config.php create mode 100644 index.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e427ff3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +*/node_modules/ +*/build/ diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..e2bbc23 --- /dev/null +++ b/.htaccess @@ -0,0 +1,18 @@ +DirectoryIndex index.php index.html +Options -Indexes +Options -MultiViews + +RewriteEngine On + +# 0) Serve existing files/directories as-is +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule ^ - [L] + +# 1) Internal map: /page or /page/ -> /page.php (if such PHP file exists) +RewriteCond %{REQUEST_FILENAME}.php -f +RewriteRule ^(.+?)/?$ $1.php [L] + +# 2) Optional: strip trailing slash for non-directories (keeps .php links working) +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.+)/$ $1 [R=301,L] diff --git a/.perm_test_apache b/.perm_test_apache new file mode 100644 index 0000000..e69de29 diff --git a/.perm_test_exec b/.perm_test_exec new file mode 100644 index 0000000..e69de29 diff --git a/db/config.php b/db/config.php new file mode 100644 index 0000000..60f7caa --- /dev/null +++ b/db/config.php @@ -0,0 +1,17 @@ + PDO::ERRMODE_EXCEPTION, + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, + ]); + } + return $pdo; +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..57f953e --- /dev/null +++ b/index.php @@ -0,0 +1,131 @@ + + + + + + + New Style + + + + + + +
+
+

Preparing Your Working Environment…

+
+ Loading… +
+

Flatlogic AI is collecting your requirements and applying the first changes.

+

This page will update automatically as the plan is implemented.

+

Runtime: PHP — UTC

+
+
+ + +