krz/ifconfig.php

A private ifconfig service.

clone: git clone https://gitbay.org/krz/ifconfig.php.git

7fe117815cb66cb2d5d5282ceb7cd188e5d10714

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-05-23T23:38:54Z

extract admin details out into top-level variables
 ifconfig.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ifconfig.php b/ifconfig.php
index c6fc39b..8b1e210 100644
--- a/ifconfig.php
+++ b/ifconfig.php
@@ -1,6 +1,9 @@
 <?php
 
 $site_title = 'ip.cleberg.net';
+$site_owner_name = 'Christian Cleberg';
+$site_owner_url = 'https://cleberg.net';
+$source_repository = 'https://git.sr.ht/~cmc/ifconfig.php';
 
 // Create array of values
 $user = array(
@@ -92,8 +95,8 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
 	$date = date("Y");
 	echo <<<EOD
 	<br>
-	<p class="small">Copyright &copy; {$date} <a href="https://cleberg.net">Christian Cleberg</a>.<br/>
-	<a target="_blank" rel="noreferrer" href="https://git.sr.ht/~cmc/ifconfig.php">Source Code</a></p>
+	<p class="small">Copyright &copy; {$date} <a href="{$site_owner_url}">{$site_owner_name}</a>.<br/>
+	<a target="_blank" rel="noreferrer" href="{$source_repository}">Source Code</a></p>
 	</body>
 	</html>
 	EOD;