fix: remove Post-ERG branding → XAMXAM; drop legacy posterg nginx symlink in deploy script; rename posterg.db → xamxam.db

This commit is contained in:
Pontoporeia
2026-04-30 11:10:07 +02:00
parent c949cf9481
commit 68e30abb56
20 changed files with 36 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
# Admin Panel Structure
This directory contains the admin panel for managing Post-ERG thesis database.
This directory contains the admin panel for managing XAMXAM thesis database.
## Directory Structure

View File

@@ -39,7 +39,7 @@ if ($section === 'formulaire') {
'encryption' => $_POST['smtp_encryption'] ?? 'tls',
'username' => $_POST['smtp_username'] ?? '',
'from_email' => $_POST['smtp_from_email'] ?? '',
'from_name' => $_POST['smtp_from_name'] ?? 'Post-ERG',
'from_name' => $_POST['smtp_from_name'] ?? 'XAMXAM',
];
// Only update password when user actually typed something.
$pwd = $_POST['smtp_password'] ?? '';

View File

@@ -32,16 +32,16 @@ if (!SmtpRelay::isConfigured($db)) {
exit;
}
$subject = 'Test SMTP — Post-ERG';
$subject = 'Test SMTP — XAMXAM';
$sentDate = date('d/m/Y à H:i:s');
$toSafe = htmlspecialchars($to);
$body = <<<HTML
<html>
<body style="font-family: sans-serif; color: #222; max-width: 600px; margin: 0 auto; padding: 24px;">
<h1 style="font-size: 1.4rem; border-bottom: 2px solid #c00; padding-bottom: 8px;">
Test d'envoi SMTP — Post-ERG
Test d'envoi SMTP — XAMXAM
</h1>
<p>Ceci est un e-mail de test envoyé depuis l'interface d'administration de <strong>Post-ERG</strong>.</p>
<p>Ceci est un e-mail de test envoyé depuis l'interface d'administration de <strong>XAMXAM</strong>.</p>
<p>Si vous recevez ce message, la configuration du relay SMTP est correcte.</p>
<hr style="border:none; border-top:1px solid #ddd; margin: 24px 0;">
<p style="font-size: 0.85rem; color: #666;">

View File

@@ -1,7 +1,7 @@
<?php
/**
* Unified Database connection class for Post-ERG thesis database
* Unified Database connection class for XAMXAM thesis database
* Combines functionality from both front-backend and formulaire
* Supports both singleton (front-backend) and direct instantiation (formulaire)
*/

View File

@@ -34,7 +34,7 @@ class SmtpRelay {
'username' => '',
'password' => '',
'from_email' => '',
'from_name' => 'Post-ERG',
'from_name' => 'XAMXAM',
];
}

View File

@@ -1,6 +1,6 @@
# Database Documentation
Complete documentation for the Post-ERG thesis database.
Complete documentation for the XAMXAM thesis database.
## 📚 Available Documentation

View File

@@ -1,4 +1,4 @@
-- Post-ERG Thesis Database Schema
-- XAMXAM Thesis Database Schema
-- SQLite Database for managing final thesis projects (TFE) and doctoral theses
-- ============================================================================
@@ -359,7 +359,7 @@ CREATE TABLE IF NOT EXISTS smtp_settings (
username TEXT NOT NULL DEFAULT '',
password TEXT NOT NULL DEFAULT '', -- stored in clear for now; encrypt later
from_email TEXT NOT NULL DEFAULT '',
from_name TEXT NOT NULL DEFAULT 'Post-ERG',
from_name TEXT NOT NULL DEFAULT 'XAMXAM',
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
);

View File

@@ -1,6 +1,6 @@
# Post-ERG Test Suite
# XAMXAM Test Suite
Centralized test suite for the Post-ERG thesis management system.
Centralized test suite for the XAMXAM thesis management system.
## 📁 Structure
@@ -145,7 +145,7 @@ just reset-db
Successful test run:
```
╔════════════════════════════════════════════╗
Post-ERG Test Suite ║
XAMXAM Test Suite ║
╚════════════════════════════════════════════╝
┌─────────────────────────────────────────┐

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env php
<?php
/**
* Post-ERG Test Runner
* XAMXAM Test Runner
* Runs all tests in the tests/ directory
*/
echo "╔════════════════════════════════════════════╗\n";
echo "Post-ERG Test Suite ║\n";
echo "XAMXAM Test Suite ║\n";
echo "╚════════════════════════════════════════════╝\n\n";
$testFiles = [