From d9856c1c156fdb4969e4281d858edcc8565ae12b Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 11 Apr 2026 17:20:01 +0000 Subject: [PATCH] update privacy policy --- admin_profile.php | 21 +++++- checkout.php | 7 +- db/migrations/migrate_policy.php | 9 +++ db/migrations/schema.sql | 107 ++++++++++++++++--------------- includes/app.php | 10 +-- index.php | 2 +- policy.php | 33 ++++++++++ subscription.php | 2 +- terms.php | 33 ++++++++++ 9 files changed, 161 insertions(+), 63 deletions(-) create mode 100644 db/migrations/migrate_policy.php create mode 100644 policy.php create mode 100644 terms.php diff --git a/admin_profile.php b/admin_profile.php index 14e7a6d..004f501 100644 --- a/admin_profile.php +++ b/admin_profile.php @@ -40,7 +40,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['name'])) { $telephone_no = $_POST['telephone_no'] ?? ''; $email_id = $_POST['email_id'] ?? ''; - $stmt = db()->prepare("UPDATE platform_profile SET name = :name, description = :description, logo_path = :logo, favicon_path = :favicon, ctr_no = :ctr_no, telephone_no = :telephone_no, email_id = :email_id WHERE id = 1"); + $terms = $_POST['terms'] ?? ''; + $privacy_policy = $_POST['privacy_policy'] ?? ''; + + $stmt = db()->prepare("UPDATE platform_profile SET name = :name, description = :description, logo_path = :logo, favicon_path = :favicon, ctr_no = :ctr_no, telephone_no = :telephone_no, email_id = :email_id, terms = :terms, privacy_policy = :privacy_policy WHERE id = 1"); $stmt->execute([ 'name' => $name, 'description' => $description, @@ -48,7 +51,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['name'])) { 'favicon' => $favicon_path, 'ctr_no' => $ctr_no, 'telephone_no' => $telephone_no, - 'email_id' => $email_id + 'email_id' => $email_id, + 'terms' => $terms, + 'privacy_policy' => $privacy_policy ]); header('Location: ' . app_url('admin.php', ['page' => 'profile', 'saved' => 1])); @@ -112,7 +117,19 @@ $prof = get_platform_profile(); + +
+
+ + +
+
+ + +
+ diff --git a/checkout.php b/checkout.php index 6423723..22bf1da 100644 --- a/checkout.php +++ b/checkout.php @@ -177,7 +177,7 @@ render_nav('pricing.php');

-

+

    @@ -230,7 +230,7 @@ render_nav('pricing.php');
    >
@@ -270,9 +270,6 @@ render_nav('pricing.php');
-
Thawani
-
Wablas
-
Google Meet