1/05/26 V.20

This commit is contained in:
Flatlogic Bot 2026-01-05 10:25:17 +00:00
parent f87d8bee23
commit 16acaf4771
11 changed files with 242 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/ node_modules/
*/node_modules/ */node_modules/
*/build/ */build/
sessions/

View File

@ -75,7 +75,7 @@ try {
exit; exit;
} }
$to = getenv('MAIL_TO') ?: 'default-recipient@example.com'; // Fallback recipient $to = getenv('MAIL_TO');
$subject = 'New FinMox Beta Application'; $subject = 'New FinMox Beta Application';
$htmlBody = "" $htmlBody = ""

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -1,4 +1,5 @@
<?php <?php
ini_set('session.save_path', __DIR__ . '/sessions');
session_start(); session_start();
if (!isset($_SESSION['user'])) { if (!isset($_SESSION['user'])) {

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,5 @@
<?php <?php
ini_set('session.save_path', __DIR__ . '/sessions');
session_start(); session_start();
// Hardcoded credentials for demonstration. // Hardcoded credentials for demonstration.
@ -17,6 +18,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$response['message'] = 'Please enter both email and password.'; $response['message'] = 'Please enter both email and password.';
} elseif ($email === $valid_email && $password === $valid_password) { } elseif ($email === $valid_email && $password === $valid_password) {
$_SESSION['user'] = ['email' => $email]; $_SESSION['user'] = ['email' => $email];
session_write_close(); // Force session to save
$response['success'] = true; $response['success'] = true;
} else { } else {
$response['message'] = 'Invalid credentials.'; $response['message'] = 'Invalid credentials.';

5
test_php.php Normal file
View File

@ -0,0 +1,5 @@
<?php
echo "<h1>PHP is working!</h1>";
phpinfo();