From ce0ee5d5caea4037c036497912eae9855636a79d Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Fri, 2 Feb 2024 01:12:56 +0530 Subject: [PATCH] (refactor): added write_dataset function to every page --- htdocs/blog.php | 2 ++ htdocs/contact.php | 2 ++ htdocs/dmca.php | 2 ++ htdocs/policy.php | 2 ++ htdocs/projects.php | 2 ++ htdocs/terms.php | 2 ++ 6 files changed, 12 insertions(+) diff --git a/htdocs/blog.php b/htdocs/blog.php index fbe1651..fe2afd8 100644 --- a/htdocs/blog.php +++ b/htdocs/blog.php @@ -6,6 +6,8 @@ $dotenv->load(); require 'core/connection.php'; require 'core/host_config.php'; require 'core/query_functions.php'; +require 'core/write_dataset.php'; +write_dataset($conn); ?> diff --git a/htdocs/contact.php b/htdocs/contact.php index 1695d6a..e99c57f 100644 --- a/htdocs/contact.php +++ b/htdocs/contact.php @@ -6,6 +6,8 @@ $dotenv->load(); require 'core/connection.php'; require 'core/host_config.php'; require 'core/query_functions.php'; +require 'core/write_dataset.php'; +write_dataset($conn); ?> diff --git a/htdocs/dmca.php b/htdocs/dmca.php index 292453e..57480d8 100644 --- a/htdocs/dmca.php +++ b/htdocs/dmca.php @@ -6,6 +6,8 @@ $dotenv->load(); require 'core/connection.php'; require 'core/host_config.php'; require 'core/query_functions.php'; +require 'core/write_dataset.php'; +write_dataset($conn); ?> diff --git a/htdocs/policy.php b/htdocs/policy.php index e4f4201..b8caf79 100644 --- a/htdocs/policy.php +++ b/htdocs/policy.php @@ -6,6 +6,8 @@ $dotenv->load(); require 'core/connection.php'; require 'core/host_config.php'; require 'core/query_functions.php'; +require 'core/write_dataset.php'; +write_dataset($conn); ?> diff --git a/htdocs/projects.php b/htdocs/projects.php index aee7e16..ac3bc35 100644 --- a/htdocs/projects.php +++ b/htdocs/projects.php @@ -6,6 +6,8 @@ $dotenv->load(); require 'core/connection.php'; require 'core/host_config.php'; require 'core/query_functions.php'; +require 'core/write_dataset.php'; +write_dataset($conn); $years = create_project_years_array($conn); ?> diff --git a/htdocs/terms.php b/htdocs/terms.php index 33907b5..f789f98 100644 --- a/htdocs/terms.php +++ b/htdocs/terms.php @@ -6,6 +6,8 @@ $dotenv->load(); require 'core/connection.php'; require 'core/host_config.php'; require 'core/query_functions.php'; +require 'core/write_dataset.php'; +write_dataset($conn); ?>