summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authorConnor Thomson <blumatrikz@gmail.com>2026-09-18 18:02:14 -0700
committerConnor Thomson <blumatrikz@gmail.com>2026-09-18 18:02:14 -0700
commit432d9c318f44c89be0134ff518e3ea4d95f15ed7 (patch)
tree7a0bb8b30d8ec09ce6fbc79d2eeb0c99a6d519b8 /php
parent2dcc385ccd22bc2d70208d5cac2d2398a40ff34e (diff)
Add AGPL headers and remove unneeded files
Diffstat (limited to 'php')
-rw-r--r--php/footer.php17
-rw-r--r--php/replace.php17
-rw-r--r--php/templates.php17
3 files changed, 51 insertions, 0 deletions
diff --git a/php/footer.php b/php/footer.php
index 4a32baf..0d9c8b6 100644
--- a/php/footer.php
+++ b/php/footer.php
@@ -1,4 +1,21 @@
<?php
+/*
+ * GNUfault.org - GNUfault's website
+ * Copyright (C) 2026 Connor Thomson
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
require_once PHP_DIR . 'replace.php';
diff --git a/php/replace.php b/php/replace.php
index 70fdd25..9cdc5bf 100644
--- a/php/replace.php
+++ b/php/replace.php
@@ -1,4 +1,21 @@
<?php
+/*
+ * GNUfault.org - GNUfault's website
+ * Copyright (C) 2026 Connor Thomson
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
function replace(string $templatePath, array $replacements = []): string {
$html = file_get_contents($templatePath);
diff --git a/php/templates.php b/php/templates.php
index 4ead3f8..dfd4063 100644
--- a/php/templates.php
+++ b/php/templates.php
@@ -1,4 +1,21 @@
<?php
+/*
+ * GNUfault.org - GNUfault's website
+ * Copyright (C) 2026 Connor Thomson
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
function render_component(string $componentPath): string {
ob_start();