1/05/26 V.20
This commit is contained in:
parent
f87d8bee23
commit
16acaf4771
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
node_modules/
|
||||
*/node_modules/
|
||||
*/build/
|
||||
sessions/
|
||||
|
||||
@ -75,7 +75,7 @@ try {
|
||||
exit;
|
||||
}
|
||||
|
||||
$to = getenv('MAIL_TO') ?: 'default-recipient@example.com'; // Fallback recipient
|
||||
$to = getenv('MAIL_TO');
|
||||
$subject = 'New FinMox Beta Application';
|
||||
|
||||
$htmlBody = ""
|
||||
|
||||
BIN
assets/pasted-20251228-085051-8f59cd4f.png
Normal file
BIN
assets/pasted-20251228-085051-8f59cd4f.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
BIN
assets/pasted-20251228-090450-078be66c.png
Normal file
BIN
assets/pasted-20251228-090450-078be66c.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
BIN
assets/pasted-20251228-205232-3a1e7c99.png
Normal file
BIN
assets/pasted-20251228-205232-3a1e7c99.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/pasted-20251228-205432-bbeacf37.png
Normal file
BIN
assets/pasted-20251228-205432-bbeacf37.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/pasted-20251228-205604-792bf2e9.png
Normal file
BIN
assets/pasted-20251228-205604-792bf2e9.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
ini_set('session.save_path', __DIR__ . '/sessions');
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['user'])) {
|
||||
|
||||
234
dashboard.php
234
dashboard.php
File diff suppressed because one or more lines are too long
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
ini_set('session.save_path', __DIR__ . '/sessions');
|
||||
session_start();
|
||||
|
||||
// Hardcoded credentials for demonstration.
|
||||
@ -17,6 +18,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$response['message'] = 'Please enter both email and password.';
|
||||
} elseif ($email === $valid_email && $password === $valid_password) {
|
||||
$_SESSION['user'] = ['email' => $email];
|
||||
session_write_close(); // Force session to save
|
||||
$response['success'] = true;
|
||||
} else {
|
||||
$response['message'] = 'Invalid credentials.';
|
||||
|
||||
5
test_php.php
Normal file
5
test_php.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo "<h1>PHP is working!</h1>";
|
||||
|
||||
phpinfo();
|
||||
Loading…
x
Reference in New Issue
Block a user