From fc07d00bbb2f5b7178d001db0564c4d901dbcbe2 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 27 Feb 2026 17:32:01 +0000 Subject: [PATCH] add profile --- db/migrations/002_add_profiles.sql | 15 ++ inbound.php | 88 ++++--- includes/footer.php | 8 +- includes/header.php | 70 +++++- outbound.php | 170 +++++++++----- profile.php | 165 ++++++++++++++ uploads/attachments/1772212176_Invoice_8.pdf | Bin 0 -> 248838 bytes .../attachments/1772212948_Invoice_8 (1).pdf | Bin 0 -> 254952 bytes users.php | 215 ++++++++++-------- view_mail.php | 149 +++++++++++- 10 files changed, 679 insertions(+), 201 deletions(-) create mode 100644 db/migrations/002_add_profiles.sql create mode 100644 profile.php create mode 100644 uploads/attachments/1772212176_Invoice_8.pdf create mode 100644 uploads/attachments/1772212948_Invoice_8 (1).pdf diff --git a/db/migrations/002_add_profiles.sql b/db/migrations/002_add_profiles.sql new file mode 100644 index 0000000..c612886 --- /dev/null +++ b/db/migrations/002_add_profiles.sql @@ -0,0 +1,15 @@ +-- Migration: Add User and Charity Profiles +ALTER TABLE users ADD COLUMN profile_image VARCHAR(255) DEFAULT NULL AFTER full_name; + +CREATE TABLE IF NOT EXISTS charity_settings ( + id INT PRIMARY KEY DEFAULT 1, + charity_name VARCHAR(255) NOT NULL DEFAULT 'جمعية خيرية', + charity_logo VARCHAR(255) DEFAULT NULL, + charity_favicon VARCHAR(255) DEFAULT NULL, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + CONSTRAINT single_row CHECK (id = 1) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Initial Charity Settings +INSERT INTO charity_settings (id, charity_name) VALUES (1, 'بريد الجمعية الخيرية') +ON DUPLICATE KEY UPDATE charity_name=charity_name; diff --git a/inbound.php b/inbound.php index 2974ae3..cc1dbef 100644 --- a/inbound.php +++ b/inbound.php @@ -74,7 +74,7 @@ if (isset($_GET['action']) && $_GET['action'] === 'edit' && isset($_GET['id']))

البريد الوارد

-
@@ -136,7 +136,7 @@ if (isset($_GET['action']) && $_GET['action'] === 'edit' && isset($_GET['id'])) @@ -156,43 +156,43 @@ if (isset($_GET['action']) && $_GET['action'] === 'edit' && isset($_GET['id']))